lefakkomies / pynomo

Python nomographs (nomograms).
GNU General Public License v3.0
88 stars 24 forks source link

ModuleNotFoundError: No module named 'nomo_wrapper' #7

Closed adam-funk closed 5 years ago

adam-funk commented 5 years ago

Hi, I've tried installing pynomo using pip3 as well as git clone + "python3 setup.py install --user", but I can't get past this:

$ python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from pynomo.nomographer import * Traceback (most recent call last): File "", line 1, in File "/home/adam/.local/lib/python3.6/site-packages/PyNomo-0.3.0-py3.6.egg/pynomo/nomographer.py", line 16, in ModuleNotFoundError: No module named 'nomo_wrapper'

Any idea what I'm doing wrong?

lefakkomies commented 5 years ago

Did you check which packages exist in your installation directory: home/adam/.local/lib/python3.6/site-packages/PyNomo-0.3.0-py3.6.egg/pynomo/ There should be file nomo_wrapper.py ?

adam-funk commented 5 years ago

I have a file '.../site-packages/PyNomo-0.3.0-py3.6.egg' and a directory 'site-packages/PyNomo-0.3.0.dist-info' but no subdirectories of them. The egg file has 'pynomo/nomo_wrapper.py' (and others) zipped up inside.

Wlodarski commented 5 years ago

Pynomo never worked for me on Python 3.6, despite following the installation instructions carefully. I believe the modules are not properly declared by the installer. Always gave me import errors. With Python 3,x, I don't think "from x import *" are allowed in most circumstances. It might be the reason. It's a bad practice anyway.

My solution was, and still is, to install Python 2.7 just to use Pynomo.

adam-funk commented 5 years ago

Yes, that's the problem. It does work for me in Python 2. Thanks.

lefakkomies commented 5 years ago

Latest version 0.3.1 now in GitHub should be compatible with python 3.7.

adam-funk commented 5 years ago

Great, thanks!