windows-10

How to fix TypeError: cannot unpack non-iterable Button object

How to fix TypeError: cannot unpack non-iterable Button object Question: I was writing my PySimpleGUI program and it (Still) does not load This is the error it gives me: Traceback (most recent call last): File "D:PythonLavoro.py", line 89, in <module> event = window.read() ^^^^^^^^^^^^^ File "D:PythonvenvLibsite-packagesPySimpleGUIPySimpleGUI.py", line 10075, in read results = self._read(timeout=timeout, timeout_key=timeout_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ …

Total answers: 2

How do I import a .pyd module written in C++ to Python using PyBind11

How do I import a .pyd module written in C++ to Python using PyBind11 Question: I am working on Windows 10 with Python 3.9.7 and have anaconda setup on my laptop. I have compiled a C++ code calcSim.cpp where the module name is calJaccSimm and am able to successfully generate a .pyd file with the …

Total answers: 1

Why do I get traceback erros when using python on CMD?

Why do I get traceback erros when using python on CMD? Question: I dont really know what’s happening here. I installed python 3.10.6 but I can seem to any python commands in windows cmd. I was trying to install opencv for a project. But can seem to use pip or any other python commands. Need …

Total answers: 2

Interrupt (NOT prevent from starting) screensaver

Interrupt (NOT prevent from starting) screensaver Question: I am trying to programmatically interrupt the screensaver by moving the cursor like this: win32api.SetCursorPos((random.choice(range(100)),random.choice(range(100)))) And it fails with the message: pywintypes.error: (0, ‘SetCursorPos’, ‘No error message is available’) This error only occurs if the screensaver is actively running. The reason for this request is that the computer …

Total answers: 3

Windows 10, Datatable install issue 'Preparing metadata (pyproject.toml) did not run successfully.'

Windows 10, Datatable install issue 'Preparing metadata (pyproject.toml) did not run successfully.' Question: I have Python 3.10.2, pip 22.0.3, and pyqt5.15.2 . I run into this error when I try to install datatable: pip install datatable Collecting datatable Using cached datatable-1.0.0.tar.gz (1.1 MB) Getting requirements to build wheel … done Preparing metadata (pyproject.toml) … error …

Total answers: 2

Control Windows app (HMA VPN) using PyWinAuto

Control Windows app (HMA VPN) using PyWinAuto Question: I am trying to write Python code to request my vpn software to connect / disconnect upon certain conditions. I use HMA VPN and am running on Windows 10. Python 3.9.5. The PyWinAuto module would appear to have the required functionality, but I cannot get it to …

Total answers: 1

Spyder 5 (Standalone) – Does not Start

Spyder 5 (Standalone) – Does not Start Question: Pretty newbe in Python programming and completely with Spyder IDE, am I trying to install the software on windows 10 64 but I cannot start it. It crashes at launch when the splashscreen shows "Loading toolbars" I tried to start the software through the terminal using: python …

Total answers: 1

In Django project, Python says Pillow is not installed but it is installed

In Django project, Python says Pillow is not installed but it is installed Question: After upgrading Python 3.8 to 3.9 this error has happened and says pillow is not installed. I tried to uninstall and reinstall pillow, but it did not worked. I’m using Django 3.1 on a Windows 10 pro. The output of pip …

Total answers: 3