03-07-2023, 02:29 AM
Sam,
I am reopening this thread because I encountered another issue (on a different machine) when attempting to apply this fix.
This new machine runs Python 3.11.1, which I believe caused the issue.
I would like to continue using 3.11.1 because all my other code is written for 3.11.1 and match case is awesome. Is there a workaround for this besides switching Python versions to 3.7.3?
I am reopening this thread because I encountered another issue (on a different machine) when attempting to apply this fix.
Code:
C:\RoboDK\Python311>python.exe -m pip install pythonnet==2.5.2
收集pythonnet = = 2.5.2
Using cached pythonnet-2.5.2.tar.gz (1.9 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pycparser in c:\robodk\python311\lib\site-packages (from pythonnet==2.5.2) (2.21)
Installing collected packages: pythonnet
DEPRECATION: pythonnet is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for pythonnet ... error
error: subprocess-exited-with-error
× Running setup.py install for pythonnet did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pythonnet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
C:\RoboDK\Python311>echo DONE
DONE
C:\RoboDK\Python311>pause
Press any key to continue . . .
This new machine runs Python 3.11.1, which I believe caused the issue.
I would like to continue using 3.11.1 because all my other code is written for 3.11.1 and match case is awesome. Is there a workaround for this besides switching Python versions to 3.7.3?