question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

main.py throws "ImportError: cannot import name 'SyntheticData'"

See original GitHub issue
(venv3) ➜  MP-2018 git:(master) python main.py
Traceback (most recent call last):
  File "main.py", line 5, in <module>
    from src.datasets.synthetic_data_generator import SyntheticData
ImportError: cannot import name 'SyntheticData'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
danthe96commented, May 30, 2018

Fixed. Commit

0reactions
WGierkecommented, May 30, 2018

I had to install it in my virtual environment using the -e flag with pip

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix ImportError: Cannot Import Name in Python
This error generally occurs when a class cannot be imported due to one of the following reasons: The imported class is in a...
Read more >
Facing ImportError: cannot import name 'ModelParameters ...
The new virtual environment I am using has python version of 3.6 and I successfully installed the ydata_synthetic package. – Sam1729. Apr 13...
Read more >
How to Fix : “ImportError: Cannot import name X” in Python
The following are the major reasons for the occurrence of "ImportError: cannot import name": The imported class is in a circular dependency.
Read more >
tf_cnn_benchmarks.py does not support --data_dir with my ...
I can run the tf_cnn_benchmarks.py with synthetic data like this: ... import collective_ops ImportError: cannot import name 'collective_ops'.
Read more >
[Solved] ImportError: Cannot Import Name - Python Pool
To solve the error, you need to install it first and then import it. To install it, use the following command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found