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

Missing weights-py3.p file #67

Closed
GearoidM opened this issue May 19, 2023 · 1 comment
Closed

Missing weights-py3.p file #67

GearoidM opened this issue May 19, 2023 · 1 comment

Comments

@GearoidM
Copy link

I don't think this was posted before, but the weights-py3.p file was missing when I pip installed Instamatic. This prevents data acquisition: on attempting to collect data, the following error is returned:

**Traceback (most recent call last):
File "c:\python36\lib\site-packages\instamatic\gui\gui.py", line 71, in run
func(self, kwargs)
File "c:\python36\lib\site-packages\instamatic\gui\red_frame.py", line 110, in acquire_data_RED
from instamatic.experiments import RED
File "c:\python36\lib\site-packages\instamatic\experiments_init_.py", line 1, in
from .autocred import experiment as autocRED
File "c:\python36\lib\site-packages\instamatic\experiments\autocred\experiment.py", line 29, in
from instamatic.neural_network import predict, preprocess
File "c:\python36\lib\site-packages\instamatic\neural_network_init_.py", line 1, in
from .neural_network import predict
File "c:\python36\lib\site-packages\instamatic\neural_network\neural_network.py", line 6, in
with open(Path(file).parent / 'weights-py3.p', 'rb') as p_file:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\python36\lib\site-packages\instamatic\neural_network\weights-py3.p'

Not sure why this file is not downloaded with the package but it can be found here. So, a simple fix is to download the weights-py3.p file and put it in the appropriate folder.

@stefsmeets
Copy link
Member

Thanks, apparently this only shows up in the distribution from pypi, and not when installing the package locally. Turns out this was because of a typo in manifest.in.

Fixed by a0fdbca

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

2 participants