FMCorz / mdk

Moodle Development Kit. A collection of tools meant to make developers' lives easier.
GNU General Public License v3.0
85 stars 47 forks source link

KeyError: 'jenkinsapi' #111

Closed jleyva closed 9 years ago

jleyva commented 9 years ago

Traceback (most recent call last): File "/opt/local/bin/mdk", line 39, in a = runpy.run_module('mdk', None, 'main') File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 180, in run_module fname, loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/opt/moodle-sdk/mdk/main.py", line 108, in main() File "/opt/moodle-sdk/mdk/main.py", line 95, in main cls = getCommand(cmd) File "/opt/moodle-sdk/mdk/commands/init.py", line 29, in getCommand return getattr(getattr(getattr(import('mdk.%s.%s' % ('commands', cmd)), 'commands'), cmd), cls) File "/opt/moodle-sdk/mdk/commands/precheck.py", line 28, in from ..ci import CI, CIException File "/opt/moodle-sdk/mdk/ci.py", line 26, in from jenkinsapi import jenkins File "/Library/Python/2.7/site-packages/jenkinsapi/init.py", line 69, in version = pkg_resources.working_set.by_key['jenkinsapi'].version KeyError: 'jenkinsapi'

jleyva commented 9 years ago

Just for the record, if you get this error you need to:

sudo pip uninstall jenkinsapi sudo easy_install jenkinsapi

Not sure why, but pip installation does not complete correctly the module installation