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: Error while finding loader for 'tensorflow' in ENV2 #5

Open
cvonholly opened this issue Mar 8, 2023 · 0 comments
Open

Comments

@cvonholly
Copy link

When installing all dependencies according to ENV 2, i get the following error:

Using TensorFlow backend.
Traceback (most recent call last):
  File "C:\PATH\Python\Python37\lib\pkgutil.py", line 493, in find_loader
    spec = importlib.util.find_spec(fullname)
  File "C:\PATH\Python\Python37\lib\importlib\util.py", line 114, in find_spec
    raise ValueError('{}.__spec__ is None'.format(name))
ValueError: tensorflow.__spec__ is None

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "recurrent.py", line 15, in <module>
    from dts import config
  File "c:\PATH\dts\dts\__init__.py", line 10, in <module>
    from dts.utils.logger import logger
  File "c:\PATH\dts\dts\utils\__init__.py", line 3, in <module>
    from dts.utils.experiments import DTSExperiment, log_metrics, run_single_experiment, run_grid_search
  File "c:\PATH\dts\dts\utils\experiments.py", line 1, in <module>
    from sacred import Experiment
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\__init__.py", line 13, in <m
odule>
    from sacred.experiment import Experiment
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\experiment.py", line 13, in
<module>
    from sacred.arg_parser import format_usage, get_config_updates
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\arg_parser.py", line 16, in
<module>
    from sacred.serializer import restore
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\serializer.py", line 8, in <
module>
    from sacred import optional as opt
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\optional.py", line 40, in <m
odule>
    has_tensorflow = modules_exist("tensorflow")
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\utils.py", line 656, in modu
les_exist
    return all(module_exists(m) for m in modnames)
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\utils.py", line 656, in <gen
expr>
    return all(module_exists(m) for m in modnames)
  File "C:\PATH\dts\.venv\lib\site-packages\sacred\utils.py", line 652, in modu
le_exists
    return pkgutil.find_loader(modname) is not None
  File "C:\Users\carlv\AppData\Local\Programs\Python\Python37\lib\pkgutil.py", line 499, in find_loader
    raise ImportError(msg.format(fullname, type(ex), ex)) from ex
ImportError: Error while finding loader for 'tensorflow' (<class 'ValueError'>: tensorflow.__spec__ is None)
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