Nkap23 / TensorFlow_with_Colab_tutorial

TensorFlow 2 Object Detection API with Google Colab!
MIT License
15 stars 23 forks source link

error: avro-python3 1.10.0 is installed but avro-python3!=1.9.2,<1.10.0,>=1.8.1 is required by {'apache-beam'} #4

Open arifyunan360 opened 3 years ago

arifyunan360 commented 3 years ago

Hi my name is Arif,

Currently I am trying to follow your project and train it with my own dataset..

at step 9, when I'm trying to install the setup.py there is an error like this when it trying to install avro-python3

error: avro-python3 1.10.0 is installed but avro-python3!=1.9.2,<1.10.0,>=1.8.1 is required by {'apache-beam'}

do you know how to handle this error?

Thank you, I am waiting for your response

Nkap23 commented 3 years ago

I am not sure, but I read a bit of documentation, it says "A package called "avro-python3" had been provided to support Python 3 previously, but the codebase was consolidated into the "avro" package and that supports both Python 2 and 3 now. The avro-python3 package will be removed in the near future, so users should use the "avro" package instead. They are mostly API compatible, but there's a few minor difference (e.g., function name capitalization, such as avro.schema.Parse vs avro.schema.parse)."

Link: https://avro.apache.org/docs/1.10.0/gettingstartedpython.html

Maybe try installing the latest version of this new package !

ericchen321 commented 3 years ago

Hi Arif, installing these dependencies before running setup.py worked for me:

# install apache-beam dependencies
!pip install avro-python3==1.9.2.1
!pip install dill==0.3.1.1
!pip install future==0.18.2
!pip install pyarrow==2.0.0
!pip install requests==2.25.1
!pip install pyyaml==5.3.1
IrfanAnNaufal commented 3 years ago

Hi ericchen321, I tried the code you suggested. and I still get the following error

python3: can't open file 'setup.py': [Errno 2] No such file or directory python3: can't open file 'setup.py': [Errno 2] No such file or directory