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


Groups > comp.lang.python > #100095 > unrolled thread

Re: python 3.5: upgrading smart_open package

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-12-07 12:50 -0500
Last post2015-12-07 12:50 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#100095 — Re: python 3.5: upgrading smart_open package

FromTerry Reedy <tjreedy@udel.edu>
Date2015-12-07 12:50 -0500
SubjectRe: python 3.5: upgrading smart_open package
Message-ID<mailman.24.1449510701.12405.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web