On 26/08/14 09:02, Adrian Schröter wrote:
On Dienstag, 26. August 2014, 08:21:50 wrote lars@steinwurf.com:
Hey. I am trying to use the OSC tools on fedora but keeps getting this error
[tools@steinwurf-124 ~]$ osc help Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 8182, in _load_plugins mod = imp.load_source(modname, os.path.join(plugin_dir, extfile)) File "/var/lib/osc-plugins/osc-createspec.py", line 3, in <module> @cmdln.option('--standard', metavar='STANDARD', NameError: name 'cmdln' is not defined
/var/lib/osc-plugins/osc-createspec.py: name 'cmdln' is not defined
Try 'env OSC_PLUGIN_FAIL_IGNORE=1 osc ...'
I have installed OSC from the x86_64 repo, found here: http://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_20/
ANy ideas how to fix it? My python version is python 2.7.5 hm, the cmdln.py* files are part of the rpm and sitting next to the other osc python modules.
Are you sure your osc rpm is installed correctly?
rpm -V osc
does it work when you run it from git?
git clone git@github.com:openSUSE/osc.git cd osc python osc-wrapper.py --help
?
rpm -V osc returns nothing. But I add and enabled the repo and ran yum install osc as root. and the osc command exist in my command line. cloned from git: [tools@steinwurf-124 Documents]$ git clone git@github.com:openSUSE/osc.git Cloning into 'osc'... remote: Counting objects: 12255, done. remote: Compressing objects: 100% (5/5), done. remote: Total 12255 (delta 0), reused 0 (delta 0) Receiving objects: 100% (12255/12255), 5.90 MiB | 908.00 KiB/s, done. Resolving deltas: 100% (8002/8002), done. Checking connectivity... done. [tools@steinwurf-124 Documents]$ cd osc/ [tools@steinwurf-124 osc]$ python osc-wrapper.py --help Traceback (most recent call last): File "/home/tools/Documents/osc/osc/commandline.py", line 8197, in _load_plugins mod = imp.load_source(modname, os.path.join(plugin_dir, extfile)) File "/var/lib/osc-plugins/osc-createspec.py", line 3, in <module> @cmdln.option('--standard', metavar='STANDARD', NameError: name 'cmdln' is not defined /var/lib/osc-plugins/osc-createspec.py: name 'cmdln' is not defined Try 'env OSC_PLUGIN_FAIL_IGNORE=1 osc ...' More info about my system, seems in order: uname -r: 3.15.10-200.fc20.x86_64 uname -m: x86_64 Fedora version 20 Best Regards Lars -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org