Skip to content
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

No module found #26

Open
olluarb23 opened this issue Mar 12, 2024 · 1 comment
Open

No module found #26

olluarb23 opened this issue Mar 12, 2024 · 1 comment

Comments

@olluarb23
Copy link


ModuleNotFoundError Traceback (most recent call last)
Cell In[3], line 1
----> 1 from covidsimulation.regions.br_saopaulo import params as br_saopaulo_params
2 from covidsimulation import run_simulations, plot, Stats
3 from tqdm import tqdm

File ~/Documents/covidsimulation/covidsimulation/init.py:3
1 from .stats import Stats
2 from .plot import plot
----> 3 from .simulation import SimulationConstants, seed, choice, logit_transform_value
4 from .simulation_engine import run_simulations
5 from .parameters import Parameters

ModuleNotFoundError: No module named 'covidsimulation.simulation'

@olluarb23
Copy link
Author

Also an error when ! ./setup.sh was executed....See below:

Ignoring dataclasses: markers 'python_version < "3.7"' don't match your environment
Ignoring python-dateutil: markers 'python_version < "3.7"' don't match your environment
Requirement already satisfied: Cython==0.29.16 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (0.29.16)
Requirement already satisfied: ipywidgets in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (8.0.4)
Requirement already satisfied: matplotlib in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (3.8.0)
Requirement already satisfied: numpy in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 5)) (1.26.2)
Requirement already satisfied: pandas in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 6)) (2.1.1)
Requirement already satisfied: plotly in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 7)) (5.9.0)
Requirement already satisfied: pytest in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 8)) (7.4.0)
Requirement already satisfied: scipy in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 10)) (1.11.4)
Requirement already satisfied: simpy in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 11)) (4.1.1)
Requirement already satisfied: smart_open in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 12)) (5.2.1)
Requirement already satisfied: tqdm in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from -r requirements.txt (line 13)) (4.65.0)
Requirement already satisfied: ipykernel>=4.5.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipywidgets->-r requirements.txt (line 3)) (6.25.0)
Requirement already satisfied: ipython>=6.1.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipywidgets->-r requirements.txt (line 3)) (8.15.0)
Requirement already satisfied: traitlets>=4.3.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipywidgets->-r requirements.txt (line 3)) (5.7.1)
Requirement already satisfied: widgetsnbextension~=4.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipywidgets->-r requirements.txt (line 3)) (4.0.5)
Requirement already satisfied: jupyterlab-widgets~=3.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipywidgets->-r requirements.txt (line 3)) (3.0.9)
Requirement already satisfied: contourpy>=1.0.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (1.2.0)
Requirement already satisfied: cycler>=0.10 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (4.25.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (1.4.4)
Requirement already satisfied: packaging>=20.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (23.1)
Requirement already satisfied: pillow>=6.2.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (10.0.1)
Requirement already satisfied: pyparsing>=2.3.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from matplotlib->-r requirements.txt (line 4)) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from pandas->-r requirements.txt (line 6)) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from pandas->-r requirements.txt (line 6)) (2023.3)
Requirement already satisfied: tenacity>=6.2.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from plotly->-r requirements.txt (line 7)) (8.2.2)
Requirement already satisfied: iniconfig in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from pytest->-r requirements.txt (line 8)) (1.1.1)
Requirement already satisfied: pluggy<2.0,>=0.12 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from pytest->-r requirements.txt (line 8)) (1.0.0)
Requirement already satisfied: appnope in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (0.1.2)
Requirement already satisfied: comm>=0.1.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (0.1.2)
Requirement already satisfied: debugpy>=1.6.5 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (1.6.7)
Requirement already satisfied: jupyter-client>=6.1.12 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (8.6.0)
Requirement already satisfied: jupyter-core!=5.0.,>=4.12 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (5.5.0)
Requirement already satisfied: matplotlib-inline>=0.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (0.1.6)
Requirement already satisfied: nest-asyncio in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (1.5.6)
Requirement already satisfied: psutil in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (5.9.0)
Requirement already satisfied: pyzmq>=20 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (25.1.0)
Requirement already satisfied: tornado>=6.1 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (6.3.3)
Requirement already satisfied: backcall in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.2.0)
Requirement already satisfied: decorator in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (5.1.1)
Requirement already satisfied: jedi>=0.16 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.18.1)
Requirement already satisfied: pickleshare in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.7.5)
Requirement already satisfied: prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (3.0.36)
Requirement already satisfied: pygments>=2.4.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (2.15.1)
Requirement already satisfied: stack-data in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.2.0)
Requirement already satisfied: pexpect>4.3 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (4.8.0)
Requirement already satisfied: six>=1.5 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib->-r requirements.txt (line 4)) (1.16.0)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.8.3)
Requirement already satisfied: platformdirs>=2.5 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from jupyter-core!=5.0.
,>=4.12->ipykernel>=4.5.1->ipywidgets->-r requirements.txt (line 3)) (3.10.0)
Requirement already satisfied: ptyprocess>=0.5 in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from pexpect>4.3->ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.7.0)
Requirement already satisfied: wcwidth in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.2.5)
Requirement already satisfied: executing in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from stack-data->ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.8.3)
Requirement already satisfied: asttokens in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from stack-data->ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (2.0.5)
Requirement already satisfied: pure-eval in /Users/mathdept/anaconda3/lib/python3.11/site-packages (from stack-data->ipython>=6.1.0->ipywidgets->-r requirements.txt (line 3)) (0.2.2)
running build_ext
building 'covidsimulation.simulation' extension
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/mathdept/anaconda3/include -arch arm64 -fPIC -O2 -isystem /Users/mathdept/anaconda3/include -arch arm64 -I/Users/mathdept/anaconda3/lib/python3.11/site-packages/numpy/core/include -I/Users/mathdept/anaconda3/include/python3.11 -c covidsimulation/simulation.cpp -o build/temp.macosx-11.1-arm64-cpython-311/covidsimulation/simulation.o -O3 -std=c++11
covidsimulation/simulation.cpp:227:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
running install
/Users/mathdept/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
/Users/mathdept/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
running bdist_egg
running egg_info
writing covidsimulation.egg-info/PKG-INFO
writing dependency_links to covidsimulation.egg-info/dependency_links.txt
writing top-level names to covidsimulation.egg-info/top_level.txt
reading manifest file 'covidsimulation.egg-info/SOURCES.txt'
writing manifest file 'covidsimulation.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-11.1-arm64/egg
running install_lib
running build_py
running build_ext
building 'covidsimulation.simulation' extension
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/mathdept/anaconda3/include -arch arm64 -fPIC -O2 -isystem /Users/mathdept/anaconda3/include -arch arm64 -I/Users/mathdept/anaconda3/lib/python3.11/site-packages/numpy/core/include -I/Users/mathdept/anaconda3/include/python3.11 -c covidsimulation/simulation.cpp -o build/temp.macosx-11.1-arm64-cpython-311/covidsimulation/simulation.o -O3 -std=c++11
covidsimulation/simulation.cpp:227:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant