cjdrake / pyeda

Python EDA
BSD 2-Clause "Simplified" License
301 stars 55 forks source link

Error: Cannot import name 'exprnode' #145

Closed unboxedtype closed 6 years ago

unboxedtype commented 6 years ago

$ python3 --version Python 3.5.4

$ uname -a Linux oberon 4.13.16-100.fc25.x86_64 #1 SMP Mon Nov 27 19:52:46 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release Fedora release 25 (Twenty Five)

Tried to install using pip, but failed someway and installed using $ python3 setup.py install from sources.

Then, in the shell: $ python3 Python 3.5.4 (default, Oct 9 2017, 12:07:29) [GCC 6.4.1 20170727 (Red Hat 6.4.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. from pyeda.inter import * Traceback (most recent call last): File "", line 1, in File "/home/shishkin/src/pyeda/pyeda/inter.py", line 24, in from pyeda.boolalg.bdd import ( File "/home/shishkin/src/pyeda/pyeda/boolalg/bdd.py", line 27, in from pyeda.boolalg.expr import exprvar, Or, And File "/home/shishkin/src/pyeda/pyeda/boolalg/expr.py", line 114, in from pyeda.boolalg import exprnode ImportError: cannot import name 'exprnode'

a, b, c, d = map(exprvar, "abcd") Traceback (most recent call last): File "", line 1, in NameError: name 'exprvar' is not defined

Please help :-)

unboxedtype commented 6 years ago

Resolved. The issue was with permissions. Somehow I installed pyeda using the root account.