Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100095

Re: python 3.5: upgrading smart_open package

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: python 3.5: upgrading smart_open package
Date 2015-12-07 12:50 -0500
Message-ID <mailman.24.1449510701.12405.python-list@python.org> (permalink)
References <CACCySGjWy5XeYKBk_+pFN1FWcxBrpQT+9k9jwL5ibWZ7uUJdDA@mail.gmail.com>

Show all headers | View raw


On 12/7/2015 12:15 PM, Anupam Mediratta wrote:
> Hello,
>
> I have to use python 3.5 in my use case and one of the packages I use
> (gensim), in turn uses smart_open (https://github.com/piskvorky/smart_open/)
>
> smart_open depends on boto and boto fails on my machine running ubuntu
> 15.10.
>
> So in order for me to be able to run gensim, I need to be able to migrate
> smart_open from boto to boto3 (boto3 works fine with python 3 and ubuntu
> 15.10).
>
> There is an open github issue:
> https://github.com/piskvorky/smart_open/issues/43
>
> I am not sure how to go about doing this migration. If someone has any
> directions or guidelines I will appreciate.

Is boto3 installed and imported as 'boto' or 'boto3'?  If the former, 
just install boto3 (into site-packages/boto) and 'import boto' in 
smart_open will just work.  This would be the same in installing pillow 
as a drop in replacement for PIL, since pillow is installed in a 
directory named 'PIL'.  If the latter, change the import statement.  Any 
other changes would depend on boto3 having a different api from boto.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python 3.5: upgrading smart_open package Terry Reedy <tjreedy@udel.edu> - 2015-12-07 12:50 -0500

csiph-web