jenkins - import python module fails -
I am unable to import this module, not sure what the problem is, when I enter: help ('Module'), it is listed there when I try to import other modules, I do not get this error.
Python Python 2.6.6 (r266: 84292, 22 January 2014, 09:42:36) [GCC 4.4 .7 20120313 (Red Hat 4.4.7-4)] at linux2 Type "help", "copyright", "credit" or "license" for more information; & Gt; & Gt; Import Zeninki traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; The file "/usr/lib/python2.6/site-packages/jenkinsapi/__init__.py", line 65, & lt; Module & gt; __version__ = pkg_resources.working_set.by_key ['jenkinsapi']. Version keyError: 'jenkinsapi'
Centos 6.4, Python 2.6.6, JenkinsApple 0.2. Through 25 PIP and the same error was happening.
I have come to know that Jenkinspi is following a (suspended) Python standard, it seems that according to one of the contributors to this project, it is very much similar.
As your console output shows that the init is trying to set its __ version of junkinspy, pkg_resources already knows what. I was able to confirm that in my case pkg_resources.working_set, jenkinsapi was not loaded even after the sys.path was cured, whose site-package directory where it lived. However, like you, it was looking for other modules that I just installed. It really seemed like a misunderstanding dragon for me, before digging a deep pipe before I did a "pipe displaced jenkina papi" and on one trash I tried the other installation method listed in the document; "Easy_install jenkinsapi".
It has been decided for me.
Comments
Post a Comment