Issue2377
Created on 2015-07-16.21:49:32 by umair, last changed 2015-09-17.20:30:57 by zyasoft.
Messages | |||
---|---|---|---|
msg10158 (view) | Author: Umair (umair) | Date: 2015-07-16.21:49:31 | |
Installed instagram module using pip C:\jython2.7.0\bin>pip install instagram After that I'm unable to import module when I try to import only httplib2 the same error I get. C:\jython2.7.0\bin>jython Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_51 Type "help", "copyright", "credits" or "license" for more information. >>> import instagram Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\jython2.7.0\Lib\site-packages\instagram\__init__.py", line 1, in <module> from .bind import InstagramAPIError, InstagramClientError File "C:\jython2.7.0\Lib\site-packages\instagram\bind.py", line 2, in <module> from .oauth2 import OAuth2Request File "C:\jython2.7.0\Lib\site-packages\instagram\oauth2.py", line 3, in <module> from httplib2 import Http File "C:\jython2.7.0\Lib\site-packages\httplib2\__init__.py", line 59, in <module> from httplib2 import socks File "C:\jython2.7.0\Lib\site-packages\httplib2\__init__.py", line 59, in <module> from httplib2 import socks File "C:\jython2.7.0\Lib\site-packages\httplib2\socks.py", line 116, in <module> class socksocket(socket.socket): TypeError: Error when calling the metaclass bases function() argument 1 must be code, not str |
|||
msg10203 (view) | Author: Jim Baker (zyasoft) | Date: 2015-09-02.22:21:41 | |
Duplicate of http://bugs.jython.org/issue2366 |
|||
msg10222 (view) | Author: Jim Baker (zyasoft) | Date: 2015-09-04.04:43:39 | |
Fixed as of https://hg.python.org/jython/rev/b3b82ef080a9 |
|||
msg10263 (view) | Author: Jim Baker (zyasoft) | Date: 2015-09-17.20:30:56 | |
Separately when I was testing the python-instagram package, simplejson is reporting an issue when attempting to use C speedups. That's unfortunate since Jython does support the standard json module $ jython -c "import instagram" Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/instagram/__init__.py", line 1, in <module> from .bind import InstagramAPIError, InstagramClientError File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/instagram/bind.py", line 2, in <module> from .oauth2 import OAuth2Request File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/instagram/oauth2.py", line 1, in <module> from .json_import import simplejson File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/instagram/json_import.py", line 2, in <module> import simplejson File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/instagram/json_import.py", line 2, in <module> import simplejson File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/simplejson/__init__.py", line 113, in <module> from .encoder import JSONEncoder, JSONEncoderForHTML File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/simplejson/encoder.py", line 15, in <module> c_encode_basestring_ascii, c_make_encoder = _import_speedups() File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/simplejson/encoder.py", line 12, in _import_speedups return _speedups.encode_basestring_ascii, _speedups.make_encoder File "/Users/jbaker/jythondev/jython27/dist/Lib/site-packages/simplejson/encoder.py", line 12, in _import_speedups return _speedups.encode_basestring_ascii, _speedups.make_encoder AttributeError: 'NoneType' object has no attribute 'encode_basestring_ascii' |
History | |||
---|---|---|---|
Date | User | Action | Args |
2015-09-17 20:30:57 | zyasoft | set | status: pending -> closed messages: + msg10263 |
2015-09-04 04:43:39 | zyasoft | set | status: open -> pending messages: + msg10222 |
2015-09-02 22:21:41 | zyasoft | set | resolution: duplicate messages: + msg10203 |
2015-07-28 15:06:30 | zyasoft | set | assignee: zyasoft nosy: + zyasoft |
2015-07-16 21:49:32 | umair | create |
Supported by Python Software Foundation,
Powered by Roundup