Message12882

Author jeff.allen
Recipients jeff.allen, rkanumola
Date 2019-12-24.11:09:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577185796.58.0.151934579818.issue2818@roundup.psfhosted.org>
In-reply-to
Content
The import works fine for me at the console with 2.7.2b2:

PS issue2818> inst\bin\jython
Jython 2.7.2b2 (v2.7.2b2:b9b60766cabe, Nov 1 2019, 07:46:45)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_231
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> r = redis.Redis(host='localhost', port=6379)
>>> r
Redis<ConnectionPool<Connection<host=localhost,port=6379,db=0>>>

However, the first thing I got wrong was to "pip install redis" with the wrong pip (CPython one on my path, not the one in the Jython bin directory. That reproduces the error nicely.

You can tell when you use the right one because it is slow :( and you end up with a directory inst/Lib/site-packages/redis, or wherever home is for your Jython.

I'll try it from Java to make sure.
History
Date User Action Args
2019-12-24 11:09:56jeff.allensetmessageid: <1577185796.58.0.151934579818.issue2818@roundup.psfhosted.org>
2019-12-24 11:09:56jeff.allensetrecipients: + jeff.allen, rkanumola
2019-12-24 11:09:56jeff.allenlinkissue2818 messages
2019-12-24 11:09:56jeff.allencreate