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

Progress2 doesn't install in Python 3.2 (virtualenv) #5

Closed
marazmiki opened this issue Sep 23, 2013 · 1 comment
Closed

Progress2 doesn't install in Python 3.2 (virtualenv) #5

marazmiki opened this issue Sep 23, 2013 · 1 comment

Comments

@marazmiki
Copy link

I'm using ubuntu 12.04 with system wide python 2.7.x. I'm trying to create new virtualenv with python 3:

$ virtualenv --python=/usr/bin/python3 blabla
$ source blabla/bin/activate
(blabla) $ python --version
Python 3.2.3

When I'm try to install progressbar2 from PyPI, I've got error:

Downloading/unpacking progressbar2
  Downloading progressbar2-2.5.0.tar.gz
  Running setup.py egg_info for package progressbar2
    Traceback (most recent call last):
      File "progressbar/__init__.py", line 62, in <module>
        from cStringIO import StringIO
    ImportError: No module named cStringIO

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/nopox/blabla/build/progressbar2/setup.py", line 5, in <module>
        import progressbar
      File "progressbar/__init__.py", line 64, in <module>
        from StringIO import StringIO
    ImportError: No module named StringIO
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "progressbar/__init__.py", line 62, in <module>

    from cStringIO import StringIO

ImportError: No module named cStringIO

When I change this (in blabla/build/progressbar2/progressbar/__init__.py) import from

from cStringIO import StringIO

to

from io import StringIO

I've got next error:

ImportError: No module named widgets

So I fix this import from

from widgets import *

to

from progressbar.widgets import *

And install has been successfully finished.

Can you fix it? :-) Your progressbar2 is preferable than progressbar because of stdout\stderr redirect feature.

Thanks

@wolph wolph closed this as completed in 2fc3dce Sep 23, 2013
@wolph
Copy link
Owner

wolph commented Sep 23, 2013

Very true, there is no Python 3 support in the library.

Now completely tested for Python 2.6, 2.7, 3.2, 3.3 and PyPy :)

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

No branches or pull requests

2 participants