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

Referenced before assignment #25

Open
emilpaulitz opened this issue Oct 28, 2024 · 0 comments
Open

Referenced before assignment #25

emilpaulitz opened this issue Oct 28, 2024 · 0 comments

Comments

@emilpaulitz
Copy link

Bug Description

Running the tool with a fasta file with some thousand protein sequences, invokes DIAMOND, and then the error occurs and the tool stops. The tool is installed in its own conda environment.

Runtime Environment

  • Operation System: Linux Debian 6.1.106-3, exteranlly managed hpc
  • Python: Python 3.8.20
  • Tensorflow: tensorflow 2.6.5
  • PFmap: PFmap version, such as git commit id or git tag I'm guessing this should say annopro? annopro 0.2a0+2.g547770e

CUDA And GPU

No CUDA

Logs

2024-10-28 10:56:29.993233: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2024-10-28 10:56:29.995083: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2024-10-28 10:56:29.996659: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (n-hpc-ca4): /proc/driver/nvidia/version does not exist
2024-10-28 10:56:29.998566: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
  File "/home/paulitz/.conda/envs/annopro/bin/annopro", line 8, in <module>
    sys.exit(console_main())
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/annopro/__init__.py", line 27, in console_main
    main(
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/annopro/__init__.py", line 75, in main
    predict(output_dir=output_dir,
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/annopro/prediction.py", line 19, in predict
    init_evaluate(term_type=term_type,
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/annopro/prediction.py", line 160, in init_evaluate
    preds = model.predict(data_generator, steps=data_steps)
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/keras/engine/training.py", line 1720, in predict
    data_handler = data_adapter.get_data_handler(
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/keras/engine/data_adapter.py", line 1383, in get_data_handler
    return DataHandler(*args, **kwargs)
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/keras/engine/data_adapter.py", line 1138, in __init__
    self._adapter = adapter_cls(
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/keras/engine/data_adapter.py", line 917, in __init__
    super(KerasSequenceAdapter, self).__init__(
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/keras/engine/data_adapter.py", line 794, in __init__
    peek, x = self._peek_and_restore(x)
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/keras/engine/data_adapter.py", line 928, in _peek_and_restore
    return x[0], x
  File "/home/paulitz/.conda/envs/annopro/lib/python3.8/site-packages/annopro/prediction.py", line 50, in __getitem__
    return ([data_onehot, data_si])
UnboundLocalError: local variable 'data_onehot' referenced before assignment
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