rohe / oictest

OAuth2 and OpenID Connect test tools
Other
39 stars 21 forks source link

ImportError: cannot import name JSON_ENCODED #66

Closed stianst closed 5 months ago

stianst commented 9 years ago

I've tried running oicc.py, but I get the the following error:

[root@17c02cdb10be op_config]# cd /opt/jboss/oictest/op_config/
[root@17c02cdb10be op_config]# ./nov.py | oicc.py -J - -H host -i 'mj-00'
Traceback (most recent call last):
  File "/usr/bin/oicc.py", line 5, in <module>
    pkg_resources.run_script('oictest==0.3.0', 'oicc.py')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1350, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/oictest-0.3.0-py2.7.egg/EGG-INFO/scripts/oicc.py", line 7, in <module>
    from oictest import oic_operations
  File "/usr/lib/python2.7/site-packages/oictest-0.3.0-py2.7.egg/oictest/oic_operations.py", line 29, in <module>
    from oic.oauth2 import JSON_ENCODED, PBase
ImportError: cannot import name JSON_ENCODED

I've tried this on both Fedora (Python 2.7.5) and Ubuntu (Python 2.7.8).