Error No module named 'circuit.liso' on fresh install
Hey, I managed to install using pip two days ago and it seemed to work fine. Now I am having issues on fresh pip install into a clean virtual environment.
When I run basic
$ circuit --help
I get errors importing module circuit.liso . My python version is 3.6.5 inside the environment.
I've copy-pasted the prompt below in case this helps.
awade@Deep-Thought:~/Git/electronics$ python3 -m venv env
awade@Deep-Thought:~/Git/electronics$ . env/bin/activate
(env) Deep-Thought:electronics awade$ pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
Successfully installed pip-10.0.1
(env) Deep-Thought:electronics awade$ pip --no-cache-dir install git+https://git.ligo.org/sean-leavey/circuit.git
Collecting git+https://git.ligo.org/sean-leavey/circuit.git
Cloning https://git.ligo.org/sean-leavey/circuit.git to /private/var/folders/28/469h9x852jj_lyf_td5xyptc0000gp/T/pip-req-build-r816i2aj
Collecting numpy (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/f6/cd/b2c50b5190b66c711c23ef23c41d450297eb5a54d2033f8dcb3b8b13ac85/numpy-1.14.5-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.7MB)
100% |████████████████████████████████| 4.7MB 434kB/s
Collecting scipy (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/a0/b6/70bf61c1badb5fea82d4c558e05e76c2dee5e77bb072fe465d7c7a87287d/scipy-1.1.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (16.7MB)
100% |████████████████████████████████| 16.7MB 1.5MB/s
Collecting matplotlib (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/8a/d5/5337662b714c65100f3545ed3909e9478614d1ebf1f692a52981f3f5167b/matplotlib-2.2.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (13.7MB)
100% |████████████████████████████████| 13.7MB 1.5MB/s
Collecting progressbar2 (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/4f/6f/acb2dd76f2c77527584bd3a4c2509782bb35c481c610521fc3656de5a9e0/progressbar2-3.38.0-py2.py3-none-any.whl
Collecting appdirs (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting tabulate (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/12/c2/11d6845db5edf1295bc08b2f488cf5937806586afe42936c3f34c097ebdc/tabulate-0.8.2.tar.gz (45kB)
100% |████████████████████████████████| 51kB 1.5MB/s
Collecting ply (from circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/a3/58/35da89ee790598a0700ea49b2a66594140f44dec458c07e8e3d4979137fc/ply-3.11-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 884kB/s
Collecting six>=1.10 (from matplotlib->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/dc/83/15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 646kB/s
Collecting python-dateutil>=2.1 (from matplotlib->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
100% |████████████████████████████████| 215kB 193kB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 350kB/s
Collecting kiwisolver>=1.0.1 (from matplotlib->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/fb/96/619db9bf08f652790fa9f3c3884a67dc43da4bdaa185a5aa2117eb4651e1/kiwisolver-1.0.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (108kB)
100% |████████████████████████████████| 112kB 368kB/s
Collecting cycler>=0.10 (from matplotlib->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting python-utils>=2.3.0 (from progressbar2->circuit.py==0.4.1)
Downloading https://files.pythonhosted.org/packages/eb/a0/19119d8b7c05be49baf6c593f11c432d571b70d805f2fe94c0585e55e4c8/python_utils-2.3.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./env/lib/python3.6/site-packages (from kiwisolver>=1.0.1->matplotlib->circuit.py==0.4.1) (39.0.1)
Installing collected packages: numpy, scipy, six, pytz, python-dateutil, pyparsing, kiwisolver, cycler, matplotlib, python-utils, progressbar2, appdirs, tabulate, ply, circuit.py
Running setup.py install for tabulate ... done
Running setup.py install for circuit.py ... done
Successfully installed appdirs-1.4.3 circuit.py-0.4.1 cycler-0.10.0 kiwisolver-1.0.1 matplotlib-2.2.2 numpy-1.14.5 ply-3.11 progressbar2-3.38.0 pyparsing-2.2.0 python-dateutil-2.7.3 python-utils-2.3.0 pytz-2018.4 scipy-1.1.0 six-1.11.0 tabulate-0.8.2
(env) Deep-Thought:electronics awade$ circuit --help
Traceback (most recent call last):
File "/Users/awade/Git/electronics/env/bin/circuit", line 11, in <module>
load_entry_point('circuit.py==0.4.1', 'console_scripts', 'circuit')()
File "/Users/awade/Git/electronics/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/awade/Git/electronics/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
return ep.load()
File "/Users/awade/Git/electronics/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in load
return self.resolve()
File "/Users/awade/Git/electronics/env/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Users/awade/Git/electronics/env/lib/python3.6/site-packages/circuit/__main__.py", line 11, in <module>
from .liso import LisoInputParser, LisoOutputParser, LisoRunner, LisoParserError
ModuleNotFoundError: No module named 'circuit.liso'
Not sure what is going on here as it worked the first time I tried it. I've also tried it on my MacMini to see if it was an issue with my local setup on my laptop. Reproduced the same error.