-
-
Notifications
You must be signed in to change notification settings - Fork 480
ModuleNotFoundError: No module named 'encodings' #310
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
Comments
I expected all dependencies to be managed by the package manager when installing the .rpm. Having to install a global package afterwards seems unusual, that's why I suspected some dependency might be missing in the package setup and created this issue.
The system setup is quite new and clean and I did not meddle with any python configuration. How is the environment set up for heroic? I have never done packaging myself but I guess you must somehow be shipping other python packages as well. Couldn't it be included there? Otherwise any other system which does not have this package installed by default (or coincidence) will run into this issue.
|
The OpenSUSE Python packages are incompatible with Legendary. Please use a compatible version. This is the error you're getting. Closing as this is not a Heroic issue. |
@Nocccer thanks for your help. i can import the module on my system like you did: @adityaruplaha could you please elaborate? is it a conflict of module versions? shouldn't pip manage python modules independantly of the used distro? It would be great if you could give me some pointers. |
I checked legendary repository https://github.com/derrod/legendary. Heroic is just a gui around legendary and this is a problem of legendary, so maybe open your problem there? |
@buxel try to install Legendary standalone. If it works, please provide the output. In that case we'll have to look into what happened. If it doesn't, Legendary is incompatible, nothing we can do about it. Also side note, never use pip to update global Python packages. Use your distros package manager. |
It is an issue with legendary, as you suspected. Running it directly gives the same error. Thanks for checking, though! 👍 |
I too faced this issue, the fix was to add the directory(ies) containing the missing module(s) to pythonpath. |
Had the same issue after moving to Tumbleweed, so only to make it clear: |
I'm testing with the Heroic 2.0.0 AppImage and getting the same issue on Mageia 9, RPM-based.
I don't have My system Python is Python 3.9.8, but the log below refers to Example log from attempting to run Limbo with Proton Experimental from Steam:
Edit: I tested two other
So the problem seems to be specific to the bundled version in the Heroic distribution. I tested both the AppImage and the |
Describe the bug
After installing heroic-1.5.7.x86_64.rpm on OpenSuse, it fails to launch any games. It looks like a python dependency is missing.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: