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

FileNotFoundError: [Errno 2] No such file or directory: #6

Open
NsiriRoua opened this issue May 19, 2022 · 12 comments
Open

FileNotFoundError: [Errno 2] No such file or directory: #6

NsiriRoua opened this issue May 19, 2022 · 12 comments

Comments

@NsiriRoua
Copy link

Hello , this error comes when I do the Training , Is there any solution

File "C:\Users\Labor\anaconda3\envs\Ditto\lib\runpy.py", line 234, in _get_code_from_file
with io.open_code(decoded_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Labor\Digital-Twin\Ditto\logs\runs\2022-05-19\Ditto_s2m-10-04-35\run.py'

@NsiriRoua
Copy link
Author

I found thqt the original problem is .
Error locating target 'src.models.geo_art_model_v0.GeoArtModelV0', see chained exception above.
full_key: model

@NsiriRoua
Copy link
Author

But I couldn´t resolve it

@Steve-Tod
Copy link
Collaborator

Hmm, that's wired. Because the datamodule is first instantiated here. If there's no problem with the datamodule, there should be no problem with the model. Can you post your running commands and the full error log here?

@NsiriRoua
Copy link
Author

the command is with single GPU only

image

the output

image

@Steve-Tod
Copy link
Collaborator

Hmmm that's weird, I run the same code but no such error. Can you try PYTHONPATH=. python run.py experiment=Ditto_s2m?

@NsiriRoua
Copy link
Author

Yes , I tried it, nothing is happend, the error is same

@Steve-Tod
Copy link
Collaborator

@NsiriRoua
Copy link
Author

Yes tried run it and I got this error

image

image

@Steve-Tod
Copy link
Collaborator

Steve-Tod commented Jun 8, 2022

Hmmm that's weird, it seems you can initialize the model in the notebook but not from the script.

One thing to try is run python in the root directory of the repo, then run import src.models.geo_art_model_v0.GeoArtModelV0 and see what happens.

@mumairhassan
Copy link

Yes , I tried it, nothing is happend, the error is same

The problem is with numpy version. If you are using conda env then follow the two steps below and you are good to go with training.
conda uninstall numpy
conda install numpy

@Steve-Tod
Copy link
Collaborator

Good to know that! Is there any other problem?

@Jianghanxiao
Copy link

Thanks for above solution. It seems that the default NumPy will report error. Use pip to upgrade doesn't work. But using conda to install can solve the problem
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

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

4 participants