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

Ryan Skraba commented on AVRO-2737:
-----------------------------------

The experiment with the four digit version seems to work: 

{code}
$ docker run -it python:3.8 pip install --index-url 
https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple 
'avro-python3'
Looking in indexes: https://test.pypi.org/simple/, https://pypi.org/simple
Collecting avro-python3
  Downloading 
https://test-files.pythonhosted.org/packages/5a/80/acd1455bea0a9fcdc60a748a97dcbb3ff624726fb90987a0fc1c19e7a5a5/avro-python3-1.9.2.1.tar.gz
 (37 kB)
Building wheels for collected packages: avro-python3
  Building wheel for avro-python3 (setup.py) ... done
  Created wheel for avro-python3: 
filename=avro_python3-1.9.2.1-py3-none-any.whl size=43513 
sha256=7613608303550874f5b61b30bd1e2abb6c07e8fdfc4beabd40d1aa7b38e6aef1
  Stored in directory: 
/root/.cache/pip/wheels/32/2b/a9/924e7a2c921a301fc4e52c26c5ee4eb255e7e3feb2d8f4cb62
Successfully built avro-python3
Installing collected packages: avro-python3
Successfully installed avro-python3-1.9.2.1
{code}

These are the *exact* release artifacts as 1.9.2, taken from 
https://dist.apache.org/repos/dist/release/avro/avro-1.9.2 with the following 
changes:

# Updated avro/VERSION.txt with 1.9.2.1
# Removed the import pycodestyle
# Pushed to test.pypi.org: twine upload --repository-url 
https://test.pypi.org/legacy/ dist/*

{code}
diff --git a/tmp/py3/avro-python3-1.9.2/avro/VERSION.txt 
b/tmp/py3/avro-python3-1.9.2/avro/VERSION.txt
index 8fdcf3869..a212c907c 100644
--- a/tmp/py3/avro-python3-1.9.2/avro/VERSION.txt
+++ b/tmp/py3/avro-python3-1.9.2/avro/VERSION.txt
@@ -1 +1 @@
-1.9.2
+1.9.2.1
diff --git a/tmp/py3/avro-python3-1.9.2/setup.py 
b/tmp/py3/avro-python3-1.9.2/setup.py
index 20dd4e240..f6297bb1b 100755
--- a/tmp/py3/avro-python3-1.9.2/setup.py
+++ b/tmp/py3/avro-python3-1.9.2/setup.py
@@ -38,8 +38,6 @@ import subprocess
 
 import setuptools
 
-import pycodestyle
-
 _HERE = os.path.dirname(os.path.abspath(__file__))
 _AVRO_DIR = os.path.join(_HERE, 'avro')
 _VERSION_FILE_NAME = 'VERSION.txt'
{code}

I think this could be a good short term solution.  Any comments?


> Avro Python3 - Unable to install after updating to 1.9.2
> --------------------------------------------------------
>
>                 Key: AVRO-2737
>                 URL: https://issues.apache.org/jira/browse/AVRO-2737
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.9.2
>         Environment: * Python 3.6.9 
>  * Ubuntu Release: 18.04
>  * pip 18.0
>            Reporter: Rinciog Octavian
>            Priority: Critical
>
> Hi!
> I am unable to install 1.9.2 version of avro-python3.
>  
> {code:java}
> octavian@machine:~/test$ pip install avro-python3
> Requirement already satisfied: avro-python3 in 
> /usr/local/lib/python3.6/dist-packages (1.9.1)
> octavian@machine:~/test$ pip install avro-python3==1.9.2
> Collecting avro-python3==1.9.2
>  Downloading 
> https://files.pythonhosted.org/packages/31/21/d98e2515e5ca0337d7e747e8065227ee77faf5c817bbb74391899613178a/avro-python3-1.9.2.tar.gz
>  Complete output from command python setup.py egg_info:
>  Traceback (most recent call last):
>  File "<string>", line 1, in <module>
>  File "/tmp/pip-install-y5ixn9gd/avro-python3/setup.py", line 41, in <module>
>  import pycodestyle
>  ModuleNotFoundError: No module named 'pycodestyle'
>  
>  ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in 
> /tmp/pip-install-y5ixn9gd/avro-python3/
> octavian@machine:~/test$ pip3 --version
> pip 18.0 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
>  
> {code}
> You can test it with the following dockerfile:
> {code:java}
> FROM python:3
> RUN pip install avro-python3==1.9.2{code}
> This affects all installs of *confluent-python[avro]* pip module. 
>   



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

Reply via email to