reilleya/openMotor

PyQt6 - Update from Stage

Opened this issue · 1 comments

Hi Andrew,
It's been a while since I updated from stage. Here's the bat file run to install/update from stage

git fetch
git checkout staging
pip install -r requirements.txt
python setup.py build_ui
python main.py

When I run it, I get the following errors

C:\openMotor>setupstage

C:\openMotor>git fetch

C:\openMotor>git checkout staging
Already on 'staging'
Your branch is up to date with 'origin/staging'.

C:\openMotor>pip install -r requirements.txt
Collecting appdirs==1.4.4 (from -r requirements.txt (line 1))
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting cycler==0.11.0 (from -r requirements.txt (line 2))
Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting decorator==5.1.1 (from -r requirements.txt (line 3))
Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Requirement already satisfied: docopt==0.6.2 in c:\users\ben\appdata\local\programs\python\python37-32\lib\site-packages (from -r requirements.txt (line 4)) (0.6.2)
Collecting ezdxf==1.0.3 (from -r requirements.txt (line 5))
Downloading ezdxf-1.0.3-py3-none-any.whl (1.2 MB)
---------------------------------------- 1.2/1.2 MB 2.2 MB/s eta 0:00:00
Collecting imageio==2.31.0 (from -r requirements.txt (line 6))
Downloading imageio-2.31.0-py3-none-any.whl.metadata (4.7 kB)
ERROR: Ignored the following versions that require a different python version: 0.12.0 Requires-Python >=3.8; 0.12.0rc1 Requires-Python >=3.8; 0.12.1 Requires-Python >=3.8; 1.1.0 Requires-Python >=3.8; 1.1.0b0 Requires-Python >=3.8; 1.1.0b1 Requires-Python >=3.8; 1.1.0b2 Requires-Python >=3.8; 1.1.0b3 Requires-Python >=3.8; 1.1.0b4 Requires-Python >=3.8; 1.1.0b5 Requires-Python >=3.8; 1.1.0rc0 Requires-Python >=3.8; 1.1.1 Requires-Python >=3.8; 1.1.1b0 Requires-Python >=3.8; 1.1.2 Requires-Python >=3.8; 1.1.2b0 Requires-Python >=3.8; 1.1.2rc0 Requires-Python >=3.8; 1.1.3b0 Requires-Python >=3.8; 2.31.3 Requires-Python >=3.8; 2.31.4 Requires-Python >=3.8; 2.31.5 Requires-Python >=3.8; 2.31.6 Requires-Python >=3.8; 2.32.0 Requires-Python >=3.8; 3.6.0 Requires-Python >=3.8; 3.6.0rc1 Requires-Python >=3.8; 3.6.0rc2 Requires-Python >=3.8; 3.6.1 Requires-Python >=3.8; 3.6.2 Requires-Python >=3.8; 3.6.3 Requires-Python >=3.8; 3.7.0 Requires-Python >=3.8; 3.7.0rc1 Requires-Python >=3.8; 3.7.1 Requires-Python >=3.8; 3.7.2 Requires-Python >=3.8; 3.7.3 Requires-Python >=3.8; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement matplotlib==3.7.1 (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0rc1, 3.1.0rc2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0rc1, 3.2.0rc3, 3.2.0, 3.2.1, 3.2.2, 3.3.0rc1, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0rc1, 3.4.0rc2, 3.4.0rc3, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.5.0b1, 3.5.0rc1, 3.5.0, 3.5.1, 3.5.2, 3.5.3)
ERROR: No matching distribution found for matplotlib==3.7.1

C:\openMotor>python setup.py build_ui
Traceback (most recent call last):
File "setup.py", line 2, in
from uilib.fileIO import appVersionStr
File "C:\openMotor\uilib\fileIO.py", line 5, in
from PyQt6.QtWidgets import QApplication
ModuleNotFoundError: No module named 'PyQt6'

C:\openMotor>python main.py
Traceback (most recent call last):
File "main.py", line 2, in
from app import App
File "C:\openMotor\app.py", line 3, in
from PyQt6.QtWidgets import QApplication, QMessageBox
ModuleNotFoundError: No module named 'PyQt6'

......

I tried to install PyQt6 using "pip" and got the following errors

C:\openMotor>pip install PyQt6
Collecting PyQt6
Using cached PyQt6-6.6.0.tar.gz (1.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Traceback (most recent call last):
File "c:\users\ben\appdata\local\programs\python\python37-32\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\users\ben\appdata\local\programs\python\python37-32\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\ben\appdata\local\programs\python\python37-32\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\ben\AppData\Local\Temp\pip-build-env-3cxngil1\overlay\Lib\site-packages\sipbuild\api.py", line 47, in build_wheel
arguments=_convert_config_settings(config_settings))
File "C:\Users\ben\AppData\Local\Temp\pip-build-env-3cxngil1\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\ben\AppData\Local\Temp\pip-build-env-3cxngil1\overlay\Lib\site-packages\sipbuild\project.py", line 586, in setup
self.apply_user_defaults(tool)
File "project.py", line 66, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\ben\AppData\Local\Temp\pip-build-env-3cxngil1\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\ben\AppData\Local\Temp\pip-build-env-3cxngil1\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\ben\AppData\Local\Temp\pip-build-env-3cxngil1\overlay\Lib\site-packages\pyqtbuild\builder.py", line 70, in apply_user_defaults
"specify a working qmake or add it to PATH")
sipbuild.pyproject.PyProjectOptionException
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Given I'm not familiar with the Python environment, my best guess is PyQt6 isn't installed. What do I need to do to resolve this?

Thanks,

Ben

Has this been solved???