google-research/lottery-ticket-hypothesis

ModuleNotFoundError: No module named 'lottery_ticket'

eece-23 opened this issue · 5 comments

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

Same error here. Did you found something?

Same error here. Did you found something?

Do some guys solve it?

@ActonMartin @joaolcaas @snowzjy
Duplicate of #2 . Remove lottery_ticket from the setup.py file.

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!

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