Path: csiph.com!au2pb.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: python 3.5: upgrading smart_open package Date: Mon, 7 Dec 2015 12:50:39 -0500 Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de M2WjU56p9CJPYFdlb7KtAglzBUqw8HoQeKozY0e3v20w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'api': 0.09; 'directions': 0.09; 'imported': 0.09; 'issue:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:github': 0.09; 'python': 0.10; 'jan': 0.11; 'url:)': 0.14; 'subject:python': 0.14; 'former,': 0.16; 'latter,': 0.16; 'migration.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'statement.': 0.16; 'url:issues': 0.16; 'wrote:': 0.16; 'changes': 0.20; 'machine': 0.21; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'header:User-Agent:1': 0.26; 'installed': 0.26; 'header:X -Complaints-To:1': 0.26; 'fine': 0.28; 'work.': 0.30; 'run': 0.33; 'ubuntu': 0.33; 'open': 0.33; 'running': 0.34; 'installing': 0.35; 'there': 0.36; 'depends': 0.36; 'received:71': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'turn': 0.37; 'received:org': 0.37; 'doing': 0.38; 'drop': 0.38; 'someone': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.40; 'hello,': 0.40; 'different': 0.63; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-71-185-227-36.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100095 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