[ 
https://issues.apache.org/jira/browse/AVRO-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403105#comment-17403105
 ] 

Ryan Skraba edited comment on AVRO-3189 at 8/23/21, 10:27 AM:
--------------------------------------------------------------

Hello -- the python installation is usually pretty well tested before a 
release!  I can't reproduce your error. Is there anything special or specific 
about your python installation and system?

For example, I can try a very generic installation from inside the python 
docker container (which has pip 21.2.4).

{code}
$ docker run -it python:3.9 bash

# Inside the container...

root@6cdb4f8011e7:/# pip --version
pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

root@9d5a589b2e78:/# pip install avro==1.10.0
Collecting avro==1.10.0
  Downloading avro-1.10.0.tar.gz (67 kB)
     |████████████████████████████████| 67 kB 2.4 MB/s 
Building wheels for collected packages: avro
  Building wheel for avro (setup.py) ... done
  Created wheel for avro: filename=avro-1.10.0-py3-none-any.whl size=96735 
sha256=d1a1a2dc3f9ee3ce57ee6a93a4507e64c1a82024f1f5f907f23b21baeed242e4
  Stored in directory: 
/root/.cache/pip/wheels/e8/87/06/d634a391ddfacb21db1acc2e3b66b89c6f47fa3de016e253fd
Successfully built avro
Installing collected packages: avro
Successfully installed avro-1.10.0
WARNING: Running pip as the 'root' user can result in broken permissions and 
conflicting behaviour with the system package manager. It is recommended to use 
a virtual environment instead: https://pip.pypa.io/warnings/venv
{code}

I can also successfully {{pip install confluent-kafka apache-beam requests 
certifi}}

It seems doubtful, but maybe something is wrong with the cached version you 
have on your system.  Perhaps try again in a clean venv?  Any additional 
information might be helpful!


was (Author: ryanskraba):
Hello -- the python installation is usually pretty well tested before a 
release!  I can't reproduce your error. Is there anything special or specific 
about your python installation and system?

For example, I can try a very generic installation from inside the python 
docker container (which has pip 21.2.4).

{code}
$ docker run -it python:3.9 bash

# Inside the container...

root@6cdb4f8011e7:/# pip --version
pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

root@9d5a589b2e78:/# pip install avro==1.10.0
Collecting avro==1.10.0
  Downloading avro-1.10.0.tar.gz (67 kB)
     |████████████████████████████████| 67 kB 2.4 MB/s 
Building wheels for collected packages: avro
  Building wheel for avro (setup.py) ... done
  Created wheel for avro: filename=avro-1.10.0-py3-none-any.whl size=96735 
sha256=d1a1a2dc3f9ee3ce57ee6a93a4507e64c1a82024f1f5f907f23b21baeed242e4
  Stored in directory: 
/root/.cache/pip/wheels/e8/87/06/d634a391ddfacb21db1acc2e3b66b89c6f47fa3de016e253fd
Successfully built avro
Installing collected packages: avro
Successfully installed avro-1.10.0
WARNING: Running pip as the 'root' user can result in broken permissions and 
conflicting behaviour with the system package manager. It is recommended to use 
a virtual environment instead: https://pip.pypa.io/warnings/venv
{code}

I can also successfully {{pip install confluent-kafka apache-beam requests 
certifi}}

It seems doubtful, but maybe something is wrong with the cached version you 
have on your system.  Perhaps try again in a clean venv?  Any additional 
information might be helpful!

> Cannot seem to install any avro version
> ---------------------------------------
>
>                 Key: AVRO-3189
>                 URL: https://issues.apache.org/jira/browse/AVRO-3189
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.10.0, 1.10.1, 1.10.2
>            Reporter: Imad YOUBI IDRISSI
>            Priority: Blocker
>
> I cannot seem to install certain packages that have `avro` as a dependency. 
> In fact, I cannot install avro at all.
>  
> {code:java}
> $ pip install avro==1.10.0 
>  
> Collecting avro==1.10.0 
>     Using cached avro-1.10.0.tar.gz (67 kB) 
>     WARNING: Requested avro==1.10.0 from 
> https://files.pythonhosted.org/packages/3c/6f/75fb40defc4e2316d5088f635223b57518f59320a13fc12f430a17e4dc48/avro-1.10.0.tar.gz#sha256=bbf9f89fd20b4cf3156f10ec9fbce83579ece3e0403546c305957f9dac0d2f03,
>  but installing version file-.avro-VERSION.txt 
> WARNING: Discarding 
> https://files.pythonhosted.org/packages/3c/6f/75fb40defc4e2316d5088f635223b57518f59320a13fc12f430a17e4dc48/avro-1.10.0.tar.gz#sha256=bbf9f89fd20b4cf3156f10ec9fbce83579ece3e0403546c305957f9dac0d2f03
>  (from https://pypi.org/simple/avro/). Requested avro==1.10.0 from 
> https://files.pythonhosted.org/packages/3c/6f/75fb40defc4e2316d5088f635223b57518f59320a13fc12f430a17e4dc48/avro-1.10.0.tar.gz#sha256=bbf9f89fd20b4cf3156f10ec9fbce83579ece3e0403546c305957f9dac0d2f03
>  has inconsistent version: filename has '1.10.0', but metadata has 
> 'file-.avro-VERSION.txt' 
> ERROR: Could not find a version that satisfies the requirement avro==1.10.0 
> (from versions: 1.3.3, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 
> 1.6.1, 1.6.2, 1.6.3, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 
> 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.10.0, 1.10.1, 1.10.2) ERROR: No 
> matching distribution found for avro==1.10.0
> {code}
> I get the same results for `1.10.1` and `1.10.2`
> FYI, here are the packages I'm trying to install
> {code:java}
> confluent-kafka
> apache-beam
> requests
> certifi
> {code}
> I'm using `pip==21.2.4`, doesn't work with `pip==21.1.3` either.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to