ImportError: libSM.so.6: cannot open shared object file: No such file or directory
This fixed the problem by having it as the first two lines of the script:
This fixed the problem by having it as the first two lines of the script:
Yes. You’re not using it as a package.
Run in command prompt. Check what version you have installed on your system if you have an old version. Try to uninstall the package… Try after to install it: You can also test if pip does not do the job.
I am trying to import urllib.request for python 2.7.10 on PyCharm 4.5.4 on Window 10 but getting the error “ImportError: No module named request”.
The bug is found in pip 10.0.0. In linux you need to modify file: /usr/bin/pip from: to this:
I have four different files named: main.py, vector.py, entity.py and physics.py. I will not post all the code, just the imports, because I think that’s where the error is (If you want, I can post more). main.py: entity.py: vector.py: physics.py: I then run from main.py and I get the following error: I’m guessing that the error is due to importing entity twice, … Read more
I have the following folder structure. I want to import some functions from file.py in some_file.py. I’ve tried and some other various attempts but so far I couldn’t manage to import properly. How can I do this?
I have the following folder structure. I want to import some functions from file.py in some_file.py. I’ve tried and some other various attempts but so far I couldn’t manage to import properly. How can I do this?
Based on your comments to orip’s post, I guess this is what happened: You edited __init__.py on windows. The windows editor added something non-printing, perhaps a carriage-return (end-of-line in Windows is CR/LF; in unix it is LF only), or perhaps a CTRL-Z (windows end-of-file). You used WinSCP to copy the file to your unix box. … Read more
Based on your comments to orip’s post, I guess this is what happened: You edited __init__.py on windows. The windows editor added something non-printing, perhaps a carriage-return (end-of-line in Windows is CR/LF; in unix it is LF only), or perhaps a CTRL-Z (windows end-of-file). You used WinSCP to copy the file to your unix box. … Read more