uri-mog / prettytable

Automatically exported from code.google.com/p/prettytable
Other
0 stars 0 forks source link

setup.py imports wrong version of version #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When installing prettytable 0.6 using setuptools on a system that already has 
prettytable 0.5 installed, I get an import error about __version__.  This is 
because setup.py tries to import __version__ from prettytable.py, but it finds 
the 0.5 prettytable.py in the path first.  The 0.5 version doesn't have 
__version__.

I think you should probably hard code the version in setup.py instead of trying 
to import it from prettytable.py.  That would fix the problem.

Original issue reported on code.google.com by timjrthe...@gmail.com on 19 Jul 2012 at 12:03

GoogleCodeExporter commented 8 years ago
I am unable to replicate this issue.  I have just successfully upgraded from 
0.5 to 0.6 using both easy_install and pip on a Debian GNU/Linux machine and on 
a NetBSD machine and didn't see any import errors.  The download statistics at 
PyPi suggest that an upgrade from 0.5 to 0.6 via setuptools or similar tools 
was done thousands of times, and this is the only error I have heard about.  I 
suspect the issue is probably specific to your environment.  Were you maybe 
trying to do the upgrade from a directory which had the 0.5 prettytable.py in 
it?  That's all I can think of.

Sorry for the very overdue response.

Original comment by luke@maurits.id.au on 17 Feb 2013 at 8:11

GoogleCodeExporter commented 8 years ago
I am going to close this issue after 1 month of inactivity, because I cannot 
replicate the problem.  If anybody else has an issue along these lines then 
please feel free to open a new issue and I will investigate.

Original comment by luke@maurits.id.au on 19 Mar 2013 at 2:21