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

Running Tests Creates ModuleNotFoundError for Demos in DataManager #31

Open
mdr223 opened this issue Oct 21, 2024 · 0 comments
Open

Running Tests Creates ModuleNotFoundError for Demos in DataManager #31

mdr223 opened this issue Oct 21, 2024 · 0 comments

Comments

@mdr223
Copy link
Collaborator

mdr223 commented Oct 21, 2024

After running tests with pytest -v tests/pytest, I've noticed that if I then run a demo script I'll see an error like:

(venv) matthewrusso@Matthews-MBP-2 palimpzest % python demos/imageDemo.py 
Traceback (most recent call last):
  File "/Users/matthewrusso/tmp/palimpzest/demos/imageDemo.py", line 36, in <module>
    if datasetid not in pz.DataDirectory().listRegisteredDatasets():
                        ^^^^^^^^^^^^^^^^^^
  File "/Users/matthewrusso/tmp/palimpzest/src/palimpzest/datamanager/datamanager.py", line 27, in __call__
    instance = super(DataDirectorySingletonMeta, cls).__call__(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/matthewrusso/tmp/palimpzest/src/palimpzest/datamanager/datamanager.py", line 93, in __init__
    self._registry = pickle.load(f)
                     ^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'fixtures'

Making a formal issue as a reminder to resolve this in the near-term.

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

1 participant