google-research / lottery-ticket-hypothesis

A reimplementation of "The Lottery Ticket Hypothesis" (Frankle and Carbin) on MNIST.
https://arxiv.org/abs/1803.03635
Apache License 2.0
707 stars 136 forks source link

ModuleNotFoundError: No module named 'lottery_ticket' #5

Open eece-23 opened 5 years ago

eece-23 commented 5 years ago

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 https://github.com/google-research/lottery-ticket-hypothesis/pull/3

joaolcaas commented 5 years ago

Same error here. Did you found something?

ActonMartin commented 5 years ago

Same error here. Did you found something?

Do some guys solve it?

rahulvigneswaran commented 5 years ago

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

nonobott commented 5 years ago

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 4 years ago

You can do this: