-
Notifications
You must be signed in to change notification settings - Fork 26
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 'PyNEC' #19
Comments
I have the same issue on MacOS Catalina 10.15.7. Python version is 3.9.1. It used to work last time I tried PyNEC in April 2020. |
As a workaround the previous version can be installed:
Something was broken between releases 1.7.3.4 (Aug 2019) and 1.7.3.6 (May 2020) |
I have the same issue on MacOS 10.14.6: $ pip freeze Works after downgrade (but got an error "RuntimeError: SYMMETRY ERROR - NROW: 1929734915 NCOL: 1778416642" - might be my own fault [2021-may-08: Was my fault. PyNEC works in this environment]): |
@glenndk try requirements.txt from this project https://github.com/afiskon/pynec-examples Worked for me. |
@afiskon Thanks for your comment. It was a fault in my test program. PyNEC==1.7.3.4 works in this environment: $ pip freeze |
Similar problem here. "No module named 'PyNEC'". :-( |
>>> import _PyNEC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define module export function (PyInit__PyNEC) |
This is because (on my system at least) the name of the swig binary has changed from If you look carefully at the output of the build process, swig isn't running at all. Making the above change fixed it for me. |
per solution tmolteno#19 (comment)
@daniel-ayers Oh good catch. The module specified installing building with version 3, whereas swig is currently at version 4. PR #26 generated. |
I know this is off-topic, but is PyNEC still being actively developed? If so, is there somewhere that provides documentation of the |
PyNEC is a Python wrapper around a C++ library that implements a very old (c. 1980) input & output format. To understand the PL card refer to the documentation of the original library - see #22 (comment) . |
Solved the problem ... |
I am on RHEL7. The shared library buids successfully but when I try to do "from PyNEC import *" it produces the error: ModuleNotFoundError: No module named 'PyNEC'
My PYTHONPATH includes $HOME/.local/lib/python3.8/site-packages as confirmed by print(sys.path).
The contents of that directory is:
easy-install.pth PyNEC-1.7.3.6-py3.8-linux-x86_64.egg
There is no directory called PyNEC containing an init.py file.
Here are the contents of the one directory:
$ ls PyNEC-1.7.3.6-py3.8-linux-x86_64.egg/
EGG-INFO examples pycache _PyNEC.cpython-38-x86_64-linux-gnu.so _PyNEC.py
The text was updated successfully, but these errors were encountered: