ncbi / AIONER

AIONER
MIT License
39 stars 12 forks source link

typing_extensions issue #2

Closed Khyati-Microcrispr closed 1 week ago

Khyati-Microcrispr commented 3 months ago

Hi, I followed this set up conda create -n tf2.3 python=3.7 conda activate tf2.3 conda install -c conda-forge cudatoolkit=10.1 cudnn=7.6 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/ then installed the requirements sucessfully but while running AIONER, I am getting this error. Please help resolving this issue as soon as possible. Thank you for this advance tool

AIONER-main$ python src/AIONER_Run.py -i ../example/input/ -m ../pretrained_models/AIONER/Bioformer-softmax-AIONER.h5 -v ../vocab/AIO_label.vocab -e ALL -o ../example/output/ 2024-05-31 16:20:56.266464: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1 2024-05-31 16:20:58.052726: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1 2024-05-31 16:20:58.093898: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties: pciBusID: 0000:31:00.0 name: NVIDIA GeForce RTX 4090 computeCapability: 8.9 coreClock: 2.52GHz coreCount: 128 deviceMemorySize: 23.64GiB deviceMemoryBandwidth: 938.86GiB/s 2024-05-31 16:20:58.093962: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1 2024-05-31 16:20:58.096369: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10 2024-05-31 16:20:58.098784: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10 2024-05-31 16:20:58.099218: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10 2024-05-31 16:20:58.101683: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10 2024-05-31 16:20:58.102992: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10 2024-05-31 16:20:58.108054: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7 2024-05-31 16:20:58.108705: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0 Num GPUs Available: 1 Traceback (most recent call last): File "src/AIONER_Run.py", line 27, in import stanza File "/home/khyati/anaconda3/envs/tf2.3/lib/python3.7/site-packages/stanza/init.py", line 1, in from stanza.pipeline.core import Pipeline File "/home/khyati/anaconda3/envs/tf2.3/lib/python3.7/site-packages/stanza/pipeline/core.py", line 20, in from stanza.pipeline.langid_processor import LangIDProcessor File "/home/khyati/anaconda3/envs/tf2.3/lib/python3.7/site-packages/stanza/pipeline/langid_processor.py", line 5, in import emoji File "/home/khyati/anaconda3/envs/tf2.3/lib/python3.7/site-packages/emoji/init.py", line 47, in from emoji.core import * File "/home/khyati/anaconda3/envs/tf2.3/lib/python3.7/site-packages/emoji/core.py", line 12, in from typing_extensions import Literal, Match, TypedDict ImportError: cannot import name 'Match' from 'typing_extensions' (/home/khyati/anaconda3/envs/tf2.3/lib/python3.7/site-packages/typing_extensions.py)

lingluodlut commented 3 months ago

Hi, this issue is likely due to an incompatibility between the versions of the emoji and typing_extensions libraries installed in your environment, but not AIONER. Could you list the versions of the libraries in your environment?