Running tox -efast8 fails on Python 3.7 due to zVMConnector installation issues

Bug #1782851 reported by Jay Pipes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
zVM Cloud Connector
Confirmed
Undecided
Unassigned

Bug Description

I can no longer run tox -efast8 on my local workstation. I've rm -rf .tox/fast8 and tried from scratch twice. Continue to get the same error:

```
Collecting zVMCloudConnector===1.2.1 (from -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt (line 144))
  Using cached https://files.pythonhosted.org/packages/a0/c2/b7ae60e75aea4c840de0a2a29b22e3949a2bc65aafce1e79baa35023f45d/zVMCloudConnector-1.2.1.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-3bfgba_y/zVMCloudConnector/setup.py", line 18, in <module>
        from zvmsdk import version as sdkversion
      File "/tmp/pip-install-3bfgba_y/zVMCloudConnector/zvmsdk/version.py", line 29, in <module>
        raise RuntimeError('On Python 3, zvm sdk supports to Python 3.5')
    RuntimeError: On Python 3, zvm sdk supports to Python 3.5
```

Tags: testing zvm
Jay Pipes (jaypipes)
summary: - Running tox -efast8 no longer works due to zKVMConnector installation
+ Running tox -efast8 no longer works due to zVMConnector installation
issues
Revision history for this message
Takashi Natsume (natsume-takashi) wrote : Re: Running tox -efast8 no longer works due to zVMConnector installation issues

What version pf python did you use? 3.6 or 3.7?

In zVMCloudConnector 1.2.2, python 3.6 can be used.

https://github.com/mfcloud/python-zvm-sdk/blob/1.2.2/zvmsdk/version.py#L28-L29

And in the latest, the version check for python3 has been removed.

https://github.com/mfcloud/python-zvm-sdk/blob/master/zvmsdk/version.py

Changed in nova:
status: New → Incomplete
tags: added: testing
Revision history for this message
Jay Pipes (jaypipes) wrote :

This was apparently only fixed 5 days ago:

https://github.com/mfcloud/python-zvm-sdk/commit/9e0fd24ce23148258f31cfff983163851e1fbc38

which is right at the time I was trying to run tox -efast8.

I'll re-run again today and see if this is fixed.

Revision history for this message
Jay Pipes (jaypipes) wrote :

tests ran successfully. marking as Fix Released.

Changed in nova:
status: Incomplete → Fix Released
Revision history for this message
Jay Pipes (jaypipes) wrote :
Download full text (3.9 KiB)

On MacOS, with Python 3.7 installed due to `brew install tox`'s pull-in of python3.7:

```
Collecting zVMCloudConnector===1.2.2 (from -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt (line 144))
  Downloading https://files.pythonhosted.org/packages/a1/da/f5a4432ebcbb630ce9a25d0ec81599fff7e473b5df7f73595783e39dba2d/zVMCloudConnector-1.2.2.tar.gz (183kB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/nv/_0qtnvt10tbdjp6gzftkq6dc0000gn/T/pip-install-0tbgqgae/zVMCloudConnector/setup.py", line 18, in <module>
        from zvmsdk import version as sdkversion
      File "/private/var/folders/nv/_0qtnvt10tbdjp6gzftkq6dc0000gn/T/pip-install-0tbgqgae/zVMCloudConnector/zvmsdk/version.py", line 29, in <module>
        raise RuntimeError('On Python 3, zvm sdk supports to Python 3.6')
    RuntimeError: On Python 3, zvm sdk supports to Python 3.6

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/nv/_0qtnvt10tbdjp6gzftkq6dc0000gn/T/pip-install-0tbgqgae/zVMCloudConnector/

fast8 installed: appdirs==1.4.3,asn1crypto==0.24.0,atomicwrites==1.1.5,attrs==18.1.0,Babel==2.6.0,bandit==1.4.0,certifi==2018.4.16,cffi==1.11.5,chardet==3.0.4,cliff==2.13.0,cmd2==0.9.3,colorama==0.3.9,coverage==4.5.1,cryptography==2.3,ddt==1.2.0,debtcollector==1.20.0,decorator==4.3.0,deprecation==2.0.5,dogpile.cache==0.6.6,enum-compat==0.0.2,eventlet==0.20.0,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==2.5.5,future==0.16.0,gabbi==1.44.0,gitdb2==2.0.4,GitPython==2.1.11,greenlet==0.4.14,hacking==0.12.0,idna==2.7,iso8601==0.1.12,jmespath==0.9.3,jsonpatch==1.23,jsonpath-rw==1.4.0,jsonpath-rw-ext==1.1.3,jsonpointer==2.0,jsonschema==2.6.0,keystoneauth1==3.10.0,linecache2==1.0.0,lxml==4.2.3,mccabe==0.2.1,mock==2.0.0,monotonic==1.5,more-itertools==4.2.0,mox3==0.26.0,msgpack==0.5.6,munch==2.3.2,netaddr==0.7.19,netifaces==0.10.7,openstacksdk==0.17.0,os-client-config==1.31.2,os-service-types==1.2.0,osc-lib==1.11.0,oslo.concurrency==3.27.0,oslo.config==6.4.0,oslo.i18n==3.21.0,oslo.serialization==2.27.0,oslo.utils==3.36.4,oslo.vmware==2.31.0,oslotest==3.6.0,osprofiler==2.3.0,packaging==17.1,pbr==4.1.1,pep8==1.5.7,pluggy==0.6.0,ply==3.11,prettytable==0.7.2,psycopg2==2.7.5,py==1.5.4,pycparser==2.18,pyflakes==0.8.1,PyMySQL==0.9.2,pyparsing==2.2.0,pyperclip==1.6.4,pytest==3.6.3,python-barbicanclient==4.6.0,python-ironicclient==2.4.0,python-mimeparse==1.6.0,python-subunit==1.3.0,pytz==2018.5,PyYAML==3.13,requests==2.19.1,requests-mock==1.5.2,requestsexceptions==1.4.0,rfc3986==1.1.0,simplejson==3.16.0,six==1.11.0,smmap2==2.0.4,stestr==2.1.0,stevedore==1.29.0,suds-jurko==0.6,testresources==2.0.1,testscenarios==0.5.0,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.23,voluptuous==0.11.1,wcwidth==0.1.7,WebOb==1.8.2,wrapt==1.10.11,wsgi-intercept==1.8.0
__________________________________________________________________________________________________________________________________________________________ summary ___________________________________...

Read more...

summary: - Running tox -efast8 no longer works due to zVMConnector installation
+ Running tox -efast8 fails on Python 3.7 due to zVMConnector installation
issues
Changed in nova:
status: Fix Released → Confirmed
Revision history for this message
Matt Riedemann (mriedem) wrote :

This isn't a nova bug, it's a bug in the zvm sdk, so it should be routed through whatever issue tracker they have.

Changed in nova:
status: Confirmed → Invalid
Changed in python-zvm-sdk:
status: New → Confirmed
tags: added: zvm
Revision history for this message
Jay Pipes (jaypipes) wrote :

It's a bug that makes building Nova impossible on MacOS. And Nova is the only thing that zVMConnector is useful for. So, frankly, I think this bug belongs on Nova.

Revision history for this message
jichenjc (jichenjc) wrote :

@Jay, sorry, we were told that py36 is the issue recently and we fixed that by using zVMConnector 1.2.2, and soon we are going to ship 1.2.3 in PyPI and that should fix your problem

Revision history for this message
jichenjc (jichenjc) wrote :

we had https://pypi.org/project/zVMCloudConnector/ 1.2.3 out and should fixed this issue
but we don't know how to test it as we use linux and seems install py36 now
and we need wait for upper constraint to 1.2.3 in order to make it work?

Revision history for this message
Jay Pipes (jaypipes) wrote :

Chen, what is the purpose of the version checking code here?

https://github.com/mfcloud/python-zvm-sdk/blob/23c3d4e47095203be66117fced74d7176c0347c2/zvmsdk/version.py#L23-L29

Why not just remove all of that?

Revision history for this message
jichenjc (jichenjc) wrote :

you are right, looks like we don't need keep them
and in 1.2.3 , we already remove py3 check and for py2 check, it's not urgent I guess
we will remove them and ship in next release... thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.