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

NNI installation issue with ConfigSpace-0.4.7 #3909

Closed
maxxx580 opened this issue Jul 6, 2021 · 2 comments
Closed

NNI installation issue with ConfigSpace-0.4.7 #3909

maxxx580 opened this issue Jul 6, 2021 · 2 comments

Comments

@maxxx580
Copy link

maxxx580 commented Jul 6, 2021

Describe the issue:

nni[BOHB] has a dependency ConfigSpace==0.4.7, which causes the installation to fail with the error below. The issue is originated from the ConfigSpace package. ConfigSpace uses the numpy in its setup.py without declare it as a setup_requires (source). If numpy is not installed in the current environment, the installation will fail.

Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-t78p1yeg/configspace_3b56d223c52b4c88851d1ac2a6c0dfa1/setup.py", line 4, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'

This problem has been addressed in ConfigSpace==0.4.11 and onwards. I am wondering if NNI could upgrade ConfigSpace to this version or later to avoid the installation error. thanks.

Environment:

  • NNI version: 2.2 with BOHB
  • Training service (local|remote|pai|aml|etc):local
  • Client OS: linux
  • Server OS (for remote mode only): linux
  • Python version: 3.7
  • PyTorch/TensorFlow version: 1.8
  • Is conda/virtualenv/venv used?: yes
  • Is running in Docker?: no

Configuration:

  • Experiment config (remember to remove secrets!): N/A
  • Search space: N/A

Log message:

  • nnimanager.log: N/A
  • dispatcher.log: N/A
  • nnictl stdout and stderr: N/A

How to reproduce it?:

  1. create an empty environment without numpy
  2. run pip install nni[BOHB]
@n810h
Copy link

n810h commented Sep 24, 2021

I'm also encountering this. Did you find any workarounds?

jexxers added a commit to jexxers/nni that referenced this issue Sep 24, 2021
As described in microsoft#3909, there is a missing dependency in ConfigSpace 0.4.7, which is fixed in 0.4.11
@liuzhe-lz
Copy link
Contributor

Fixed in v2.5.

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

No branches or pull requests

5 participants