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

No module named 'register_files_to_profile' #273

Closed
HansBambel opened this issue Sep 28, 2021 · 4 comments
Closed

No module named 'register_files_to_profile' #273

HansBambel opened this issue Sep 28, 2021 · 4 comments
Assignees

Comments

@HansBambel
Copy link

Describe the bug
I installed the latest version of Scalene using python3 -m pip install -U git+https://github.com/plasma-umass/scalene.git as was advised in #110 in order to get rid of a SIGSEGV error.

When running scalene -m my-script.py I receive the following error:

Scalene failed to initialize.
Traceback (most recent call last):
  File "/Users/Hans/opt/anaconda3/envs/ai-models/lib/python3.8/site-packages/scalene/scalene_profiler.py", line 1433, in run_profiler
    import register_files_to_profile
ModuleNotFoundError: No module named 'register_files_to_profile'

I managed to get the profiler working by using the cpu-only flag:
scalene --cpu-only -m my-script.py

I am assuming scalene wants to use the "GPU" of the M1 chip?

Desktop (please complete the following information):

  • OS: macOS 11.6
  • Chip: M1
@jaltmayerpizzorno
Copy link
Collaborator

This is an issue loading libscalene.dylib, which is required for memory and memcpy profiling but not for CPU profiling. It has nothing to do with a built-in GPU (our GPU support is for NVIDIA GPUs). I'm on it...

@jaltmayerpizzorno
Copy link
Collaborator

We're almost there... our next release should fix it. BTW, the problem is anaconda specific (and stems from their static linking of the Python library).

@HansBambel
Copy link
Author

Great, thanks for fixing!

@jaltmayerpizzorno
Copy link
Collaborator

It should be fixed on github now, and I expect we'll release to pypi soon. Please re-open if it doesn't work.

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