Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installation problem #38

Closed
GoogleCodeExporter opened this issue Sep 25, 2015 · 5 comments
Closed

Windows installation problem #38

GoogleCodeExporter opened this issue Sep 25, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

I tried the "hard way" for installing in Windows, but, altough I can do import 
prettytable, I cannot access the inside functions neither cant do from 
prettytable import modules (tried with PrettyTable and from_db_cursor).

I am missing something?

I've just copied the folder inside site-packages, renaming it to prettytable.

Thanks in advance.
Josep

Original issue reported on code.google.com by jmsal...@gmail.com on 1 Oct 2013 at 10:45

@GoogleCodeExporter
Copy link
Author

Sorry, I forgot to mention that I'm using Python 3.3.

Original comment by jmsal...@gmail.com on 1 Oct 2013 at 10:47

@GoogleCodeExporter
Copy link
Author

Hmm.  It sounds like maybe you've put the entire PrettyTable folder (with 
setup.py, prettytable_tests.py, etc) inside site-packages?  If that's true, 
delete that folder and copy just the prettytable.py file, by itself, into 
site-packages and try again.  That's the way it's supposed to be done - I 
apologise if the installation instructions aren't clear.  Let me know if it 
still doesn't work.

Original comment by luke@maurits.id.au on 1 Oct 2013 at 11:04

@GoogleCodeExporter
Copy link
Author

Hi. Finally I've solved the issue installing previously easy_install in windows 
and then running easy_install.exe prettytable.

Just a curiosity, installed in this way, I can see and egg file but not the 
prettytable.py file. Is this compiled or just placed in another folder?

Sorry for the question, but I'm just beginning with Python.

Thanks a lot.

Original comment by jmsal...@gmail.com on 1 Oct 2013 at 11:09

@GoogleCodeExporter
Copy link
Author

I am glad you were able to get the library installed.  I'm afraid I actually 
don't know much about how easy_install works with regard to placement of files 
etc.  When I use pip to install prettytable on my linux machine, I end up with 
both an egg directory and the prettytable.py file in my dist-packages.  It's 
possible the Windows case works differently.  If you are able to use the 
library, then the prettytable.py file must have ended up somewhere!

Original comment by luke@maurits.id.au on 7 Oct 2013 at 6:00

  • Changed state: Done

@GoogleCodeExporter
Copy link
Author

Thanks for your answer. I've been searching prettytable.py with no luck. My 
supposition is that all is contained in the egg file.

But well. At the end. It's working.

Thanks a lot and congratulations for the library!

Original comment by jmsal...@gmail.com on 7 Oct 2013 at 8:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant