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

ModuleNotFoundError: No module named 'protonets.utils' #14

Open
Chibuikem709 opened this issue Oct 10, 2019 · 3 comments
Open

ModuleNotFoundError: No module named 'protonets.utils' #14

Chibuikem709 opened this issue Oct 10, 2019 · 3 comments

Comments

@Chibuikem709
Copy link

Hello!

I am trying to replicate this experiment, but when I run the following command:
python scripts/train/few_shot/run_train.py --data.cuda --log.exp_dir results

I get the following error:

Traceback (most recent call last): File "scripts/train/few_shot/run_train.py", line 3, in <module> from train import main File "/gpfs/data/lcrawfo1/cnwizu/PythonSandbox/prototypical-networks-master/scripts/train/few_shot/train.py", line 16, in <module> import protonets.utils.data as data_utils ModuleNotFoundError: No module named 'protonets.utils'

I followed the readme exactly. What is the solution?

Thanks in advance!

@SherryWang00
Copy link

Hello!

I am trying to replicate this experiment, but when I run the following command:
python scripts/train/few_shot/run_train.py --data.cuda --log.exp_dir results

I get the following error:

Traceback (most recent call last): File "scripts/train/few_shot/run_train.py", line 3, in <module> from train import main File "/gpfs/data/lcrawfo1/cnwizu/PythonSandbox/prototypical-networks-master/scripts/train/few_shot/train.py", line 16, in <module> import protonets.utils.data as data_utils ModuleNotFoundError: No module named 'protonets.utils'

I followed the readme exactly. What is the solution?

Thanks in advance!

I think you may need to edit the setup.py file: change the command line "packages=['protonets']" into "packages=['protonets', 'protonets.utils', 'protonets.data', 'protonets.models']"

@Ha0Tang
Copy link

Ha0Tang commented Dec 27, 2019

I am meeting the same problem, have you solved it?

@SherryWang00
Copy link

I am meeting the same problem, have you solved it?

Yeah,,, I made it work by editting the setup.py file: change the command line "packages=['protonets']" into "packages=['protonets', 'protonets.utils', 'protonets.data', 'protonets.models']".

kiclent added a commit to kiclent/prototypical-networks that referenced this issue Jan 17, 2020
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

3 participants