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

PyPi version does not seem to work (v0.2) #10

Closed
eddiebergman opened this issue Mar 27, 2021 · 1 comment
Closed

PyPi version does not seem to work (v0.2) #10

eddiebergman opened this issue Mar 27, 2021 · 1 comment

Comments

@eddiebergman
Copy link
Contributor

eddiebergman commented Mar 27, 2021

The PyPi version does not seem to include most of the source code.

This can be confirmed by going to PyPi, looking up nasbench301, download files and then downloading and viewing the tar ball.

I can also confirm it happens locally:

> mkdir ~/test

> cd test

> python -m venv ./.myvenv

> source ./.myvenv/bin/activate

> pip install --no-cache-dir nasbench301
Collecting nasbench301
  Downloading nasbench301-0.2-py3-none-any.whl (9.7 kB)
Installing collected packages: nasbench301
Successfully installed nasbench301-0.2

> ls .myvenv/lib/python3.8/site-packages/nasbench301
__pycache__  .  ..  api.py  example.py  __init__.py  representations.py

> python -c "import nasbench301"        
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/eddiebergman/test/.myvenv/lib/python3.8/site-packages/nasbench301/__init__.py", line 1, in <module>
    from nasbench301.api import load_ensemble
  File "/home/eddiebergman/test/.myvenv/lib/python3.8/site-packages/nasbench301/api.py", line 6, in <module>
    from surrogate_models import utils
ModuleNotFoundError: No module named 'surrogate_models'

There are only the 4 files located in the installed package.

Unfortunately I have not actually released a package to PyPi so I am not sure of the fix but I would imagine it is a relatively straight forward issue to do with the setup.py file.

@arberzela
Copy link
Contributor

Hi Eddie,

We updated the PyPi files to nasbench301-0.3 now and after installing all the necessary dependencies from requirements.txt there should not be any errors.

Cheers,
Arber

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

2 participants