ModuleNotFoundError: No module named 'lottery_ticket'
eece-23 opened this issue · 5 comments
eece-23 commented
when I run "python mnist_fc/download_data.py", a error reported:
File "mnist_fc/download_data.py", line 23, in
from lottery_ticket.foundations import save_restore
ModuleNotFoundError: No module named 'lottery_ticket'
I had run "python setup.py install" according #3
joaolcaas commented
Same error here. Did you found something?
ActonMartin commented
Same error here. Did you found something?
Do some guys solve it?
rahulvigneswaran commented
@ActonMartin @joaolcaas @snowzjy
Duplicate of #2 . Remove lottery_ticket
from the setup.py
file.
nonobott commented
Hello, I have the same issue.
I have already remove lottery_ticket from setup.py , but still get:
Traceback (most recent call last):
File "mnist_fc/download_data.py", line 23, in <module>
from lottery_ticket.foundations import save_restore
ModuleNotFoundError: No module named 'lottery_ticket'
on
python download_data.py
my catalogs structure are:
/home/johny/lottery-ticket/mnist_fc
Im run python as
python
At the same time, commands
python setup.py install
pip3 install .
works successfully,
Is there any way to fix issue ?
Thank you!
NguyenVanThanhHust commented
You can do this:
- Create folder: "lottery_ticket"
- Copy folder "foundations" and "mnist_fc" into folder "lottery_ticket"
- Move file "download_data.py" to out of "mnist_fc" folder
- modify file "download_data.py": change line 33: from def main(unused_argv): to def main():
- Run cmd: python download_data.py