-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'pycam.errors' FreeBSD12.2 #187
Comments
Ubuntu 20.04: having the same problem. |
What operations do you do to trigger this error? Can you provide a backtrace? |
The operation that triggers this is "starting the program". I think, the conclusion for me was: pycam requires python 3.x Now dpkg gets told to install python-2, and helpfully installs the link /usr/bin/python to point at python 2. This makes the program you're working with at that moment function perfectly, but sets things up for failure later down the line when you are no longer aware you installed something a while back. Anyway... Suggestion:
Python is a language that throws unusable error messages for end users when things go wrong. rm: file not found means I mistyped the file I wanted to remove. pycam -> page full of shit seems to mean: "this program requires python3 and you're running it under python 2". Windows users are used to memorizing "Did not get an IP address from the router" means: "There is a patch you forgot to install" or something like that. I'm a Unix / Linux user and I'm used to programs just telling me what the problem is. |
Tell setup.py to require python >= 3.0, and throw a RuntimeError if the sys.version_info.major is below 3. Fixes SebKuzminsky#187.
This occurs to me, when trying to run from uninstalled source:
(It seems to be a 'trivial' sys.path issue, but I could not figure it out in a hurry.) The procedure that works for me on Ubuntu 20.04 is installing with setup.py like this:
|
No description provided.
The text was updated successfully, but these errors were encountered: