[openstack-dev] [ceilometer] gate-ceilometer-python33 failed because of wrong setup.py in happybase

Osanai, Hisashi osanai.hisashi at jp.fujitsu.com
Tue Aug 12 09:23:44 UTC 2014


Hi,

# I'm sending same content email again because previous subject is not suitable.

I did cherry-pick for "https://bugs.launchpad.net/ceilometer/+bug/1326250" and 
executed git review (https://review.openstack.org/#/c/112806/).

In review phase I got the error message from Jenkins.
The reason of the error is happybase-0.8 (latest one) uses "execfile" function and 
the usage of the function is removed from python.

The happybase is not OpenStack components so I would like to have advices for 
how to deal with this. 

- console.html
2014-08-08 09:17:45.901 | Downloading/unpacking happybase>=0.5,!=0.7 (from -r /home/jenkins/workspace/gate-ceilometer-python33/requirements.txt (line 7))
2014-08-08 09:17:45.901 |   http://pypi.openstack.org/simple/happybase/ uses an insecure transport scheme (http). Consider using https if pypi.openstack.org has it available
2014-08-08 09:17:45.901 |   Storing download in cache at ./.tox/_download/http%3A%2F%2Fpypi.openstack.org%2Fpackages%2Fsource%2Fh%2Fhappybase%2Fhappybase-0.8.tar.gz
2014-08-08 09:17:45.901 |   Running setup.py (path:/home/jenkins/workspace/gate-ceilometer-python33/.tox/py33/build/happybase/setup.py) egg_info for package happybase
2014-08-08 09:17:45.902 |     Traceback (most recent call last):
2014-08-08 09:17:45.902 |       File "<string>", line 17, in <module>
2014-08-08 09:17:45.902 |       File "/home/jenkins/workspace/gate-ceilometer-python33/.tox/py33/build/happybase/setup.py", line 5, in <module>
2014-08-08 09:17:45.902 |         execfile('happybase/_version.py')
2014-08-08 09:17:45.902 |     NameError: name 'execfile' is not defined
2014-08-08 09:17:45.902 |     Complete output from command python setup.py egg_info:
2014-08-08 09:17:45.902 |     Traceback (most recent call last):
2014-08-08 09:17:45.902 | 
2014-08-08 09:17:45.902 |   File "<string>", line 17, in <module>
2014-08-08 09:17:45.902 | 
2014-08-08 09:17:45.902 |   File "/home/jenkins/workspace/gate-ceilometer-python33/.tox/py33/build/happybase/setup.py", line 5, in <module>
2014-08-08 09:17:45.903 | 
2014-08-08 09:17:45.903 |     execfile('happybase/_version.py')
2014-08-08 09:17:45.903 | 
2014-08-08 09:17:45.903 | NameError: name 'execfile' is not defined

- happybase-0.8/setup.py
1 from os.path import join, dirname
2 from setuptools import find_packages, setup
3
4 __version__ = None
5 execfile('happybase/_version.py')

- python's doc
https://docs.python.org/3.3/library/2to3.html?highlight=execfile#2to3fixer-execfile

Best Regards,
Hisashi Osanai



More information about the OpenStack-dev mailing list