Re: PyPNG installation problem

46 views
Skip to first unread message

David Jones

unread,
Dec 1, 2012, 4:28:57 PM12/1/12
to Muhammad Akbar, pypng...@googlegroups.com
[removing simon and nathan, but adding pypng-users]

On 1 December 2012 04:39, Muhammad Akbar <mka...@gmail.com> wrote:
> Hello All,
> I've trying to install PyPNG in Windows 7 64-bit machine. I ran into a
> problem (attached), but cannot find any solution online. Looks like I am
> missing something named 2to3, but am not sure where to get it from. Would be
> please suggest something? Thanks in advance.

You're very brave for trying Python 3, thanks!

It doesn't work on a completely vanilla Python 3, which is a bug.
Until I fix it (I raised an issue, see
https://github.com/drj11/pypng/issues/12 ), you need to:

1) use virtualenv to create a Python3 virtualenv, then use pip:
virtualenv --python=python3 . ; . bin/activate ; pip install pypng
or...

2) install distribute in Python 3. Then python3 setup.py install should work.

3) run 2to3 by hand and just copy the resulting file where you want
it. There is only one file in pypng: code/png.py

Hope that helps for now.

Cheers,
drj
Reply all
Reply to author
Forward
0 new messages