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 import #7

Open
MatteoLacki opened this issue Nov 27, 2024 · 0 comments
Open

Missing import #7

MatteoLacki opened this issue Nov 27, 2024 · 0 comments

Comments

@MatteoLacki
Copy link

Hi,

In the latest version of im2deep (im2deep==0.3.1), it is impossible to do from im2deep.calibrate import im2ccs.
You might want to fix it for compatibility with ms2rescore.

(veve) [matteo@pingu pipelines]$ /tmp/veve/bin/ms2rescore
2024-11-27 10:10:55.685477: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1732698655.702421 1157024 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1732698655.707394 1157024 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
Traceback (most recent call last):
  File "/tmp/veve/bin/ms2rescore", line 5, in <module>
    from ms2rescore.__main__ import main
  File "/tmp/veve/lib64/python3.11/site-packages/ms2rescore/__init__.py", line 16, in <module>
    from ms2rescore.core import rescore  # noqa: F401 E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/veve/lib64/python3.11/site-packages/ms2rescore/core.py", line 12, in <module>
    from ms2rescore.feature_generators import FEATURE_GENERATORS
  File "/tmp/veve/lib64/python3.11/site-packages/ms2rescore/feature_generators/__init__.py", line 10, in <module>
    from ms2rescore.feature_generators.im2deep import IM2DeepFeatureGenerator
  File "/tmp/veve/lib64/python3.11/site-packages/ms2rescore/feature_generators/im2deep.py", line 20, in <module>
    from im2deep.calibrate import im2ccs
ImportError: cannot import name 'im2ccs' from 'im2deep.calibrate' (/tmp/veve/lib64/python3.11/site-packages/im2deep/calibrate.py)

That was not the case with im2deep==0.2.0.

User requirements.

(veve) [matteo@pingu pipelines]$ pip freeze
absl-py==2.1.0
annotated-types==0.7.0
astunparse==1.6.3
attrs==24.2.0
cascade-config==0.4.0
certifi==2024.8.30
charset-normalizer==3.4.0
click==8.1.7
contourpy==1.3.1
customtkinter==5.2.2
cycler==0.12.1
darkdetect==0.8.0
deeplc==3.0.8
deeplcretrainer==1.0.1
flatbuffers==24.3.25
fonttools==4.55.0
gast==0.6.0
google-pasta==0.2.0
greenlet==3.1.1
grpcio==1.68.0
h5py==3.12.1
hdf5plugin==5.0.0
idna==3.10
im2deep==0.3.1
importlib_metadata==8.5.0
Jinja2==3.1.4
job-pool==0.2.6
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
keras==3.7.0
kiwisolver==1.4.7
libclang==18.1.1
llvmlite==0.43.0
lxml==5.3.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.9.2
mdurl==0.1.2
ml-dtypes==0.4.1
mokapot==0.10.0
ms2pip==4.0.0
ms2rescore==3.1.3.post1
ms2rescore-rs==0.4.0.post1
namex==0.0.8
numba==0.60.0
numpy==1.26.4
opt_einsum==3.4.0
optree==0.13.1
packaging==24.2
pandas==1.5.3
pillow==11.0.0
plotly==5.24.1
progressbar2==4.5.0
protobuf==5.28.3
psims==1.3.4
psm-utils==1.2.0
pyarrow==18.1.0
pydantic==2.10.2
pydantic_core==2.27.1
pygam==0.9.1
Pygments==2.18.0
pyopenms==3.1.0
pyparsing==3.2.0
pyteomics==4.7.5
python-dateutil==2.9.0.post0
python-utils==3.9.1
pytz==2024.2
referencing==0.35.1
requests==2.32.3
rich==13.9.4
rpds-py==0.21.0
scikit-learn==1.5.2
scipy==1.11.4
six==1.16.0
SQLAlchemy==1.4.54
tenacity==9.0.0
tensorboard==2.18.0
tensorboard-data-server==0.7.2
tensorflow==2.18.0
tensorflow-io-gcs-filesystem==0.37.1
termcolor==2.5.0
threadpoolctl==3.5.0
tomlkit==0.13.2
tqdm==4.67.1
triqler==0.7.3
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
Werkzeug==3.1.3
wrapt==1.17.0
xgboost==1.7.6
zipp==3.21.0
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