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

Import error #1

Closed
mberr opened this issue Feb 1, 2022 · 2 comments
Closed

Import error #1

mberr opened this issue Feb 1, 2022 · 2 comments

Comments

@mberr
Copy link
Owner

mberr commented Feb 1, 2022

When trying to run the example from the README, I currently get the following error

Traceback (most recent call last):
  File ".../torch_max_mem/tmp.py", line 2, in <module>
    from torch_max_mem import maximize_memory_utilization
ModuleNotFoundError: No module named 'torch_max_mem'

When I check pip list, the package name appears to be the stylized name

$ pip list | grep max
torch-max-mem     0.0.1.dev0 .../torch_max_mem/src
@cthoyt
Copy link
Collaborator

cthoyt commented Feb 1, 2022

In b3470ff I added a unit test which seems to run alright (though the test currently fails ;) , maybe there's something funny with the way your installation/environment is working

@mberr
Copy link
Owner Author

mberr commented Feb 1, 2022

I was in the wrong Python venv 😅

@mberr mberr closed this as completed Feb 1, 2022
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