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

ImportError: cannot import name 'gcd' from 'fractions' #129

Open
Vero-Fran opened this issue Nov 16, 2020 · 1 comment
Open

ImportError: cannot import name 'gcd' from 'fractions' #129

Vero-Fran opened this issue Nov 16, 2020 · 1 comment

Comments

@Vero-Fran
Copy link

Hi,

I installed all the needed packages to use pyimp on Windows 10. Or so I tought :) However, when trying to run the pimp command, I get the following issue. Does someone know how to fix this?

I know there is a warning about smac that might not be ok with windows but smac seems to be installed just fine...

Thank you in advance for your time.

C:\Computing\HCT_tuning\exec_HCT_param_1\pyimp-input>pimp -S scenario.txt -H runhistory.json -M all

Detected unsupported operating system: win32. Please be aware, that SMAC might not run on this system.
Traceback (most recent call last):
  File "c:\computing\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\computing\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Computing\Python\Python39\Scripts\pimp.exe\__main__.py", line 4, in <module>
  File "c:\computing\python\python39\lib\site-packages\pimp\pimp.py", line 15, in <module>
    from smac.scenario.scenario import Scenario
  File "c:\computing\python\python39\lib\site-packages\smac\scenario\scenario.py", line 7, in <module>
    from smac.utils.io.input_reader import InputReader
  File "c:\computing\python\python39\lib\site-packages\smac\utils\io\input_reader.py", line 4, in <module>
    from smac.configspace import pcs, pcs_new, ConfigurationSpace
  File "c:\computing\python\python39\lib\site-packages\smac\configspace\__init__.py", line 3, in <module>
    from ConfigSpace import ConfigurationSpace, Configuration, Constant, \
  File "c:\computing\python\python39\lib\site-packages\ConfigSpace\__init__.py", line 37, in <module>
    from ConfigSpace.configuration_space import Configuration, \
  File "ConfigSpace\configuration_space.pyx", line 38, in init ConfigSpace.configuration_space
  File "c:\computing\python\python39\lib\site-packages\ConfigSpace\nx\__init__.py", line 36, in <module>
    from ConfigSpace.nx.algorithms import (
  File "c:\computing\python\python39\lib\site-packages\ConfigSpace\nx\algorithms\__init__.py", line 1, in <module>
    from ConfigSpace.nx.algorithms.dag import (
  File "c:\computing\python\python39\lib\site-packages\ConfigSpace\nx\algorithms\dag.py", line 2, in <module>
    from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (c:\computing\python\python39\lib\fractions.py)
@tirkarthi
Copy link

This seems to have been fixed in automl/ConfigSpace@5c18091

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