cournape / import-profiler

A basic python import profiler to find bottlenecks in import times
MIT License
15 stars 8 forks source link

Getting ValueError: level must be >= 0 #9

Open balandongiv opened 3 years ago

balandongiv commented 3 years ago

Thanks for the package.

May I know what is the issue for the error

ValueError: level must be >= 0

The code to produce the above error are

from import_profiler import profile_import

with profile_import() as context:
    import mne
    # from mne_features.feature_extraction import extract_features
    context.print_info ()

The two package can be installed

1) mne_feature pip install git+https://github.com/mne-tools/mne-features.git#egg=mne_features

2) mne-python

pip install -U https://github.com/mne-tools/mne-python/archive/main.zip

prashantsengar-cl commented 1 week ago

It looks like an issue because the profiler does not support Python 3. You can use https://github.com/prashantsengar-cl/import-profiler