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

Py3k support #45

Closed
rodolfo3 opened this issue Aug 3, 2014 · 4 comments
Closed

Py3k support #45

rodolfo3 opened this issue Aug 3, 2014 · 4 comments
Labels

Comments

@rodolfo3
Copy link

rodolfo3 commented Aug 3, 2014

Pingo is not compatible with Python3:

$ pip install pingo
Downloading/unpacking pingo
  Downloading pingo-0.1.9.tar.gz
  Running setup.py (path:/home/rodolfo/.virtualenvs/pingo-pong/build/pingo/setup.py) egg_info for package pingo

Installing collected packages: pingo
  Running setup.py install for pingo

      File "/home/rodolfo/.virtualenvs/pingo-pong/lib/python3.4/site-packages/pingo/rpi/spi/mcp3008.py", line 68
        print display.format(count, res, volts, ticks)
                    ^
    SyntaxError: invalid syntax
@ramalho
Copy link
Contributor

ramalho commented Aug 3, 2014

Rodolfo, thanks for your interest! The primary goal of Pingo is to support the Python version available in mini-PCs. Some of them, like the Raspberry Pi, come with Python 2 and Python 3 installed, but some others, like the Arduino Yun or the Intel Galileo, come only with Python 2, so we decided to support Python 2 first. We'd like to make the code compatible with Python 3 as well, but without losing Python 2 compatibility. So that is more work. If you'd like to contribute, please send patches. Meanwhile, thanks for your interest in Pingo!

@Vido
Copy link
Contributor

Vido commented Aug 4, 2014

@rodolfo3, try using virtualenv:

virtualenv --python=/usr/bin/python2.7 my_env
source my_env/bin/activate
pip install pingo

@Vido Vido added the wontfix label Oct 16, 2014
@Vido Vido closed this as completed Oct 16, 2014
This was referenced Jan 24, 2016
@vmesel
Copy link

vmesel commented May 20, 2016

After some time, I will try to port pingo to Python 3. @rodolfo3

@s-celles
Copy link
Contributor

s-celles commented May 20, 2016

I suggest you to have a look at #100
and this PR #103

an other PR is waiting to be merged #109 by pingo team

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

No branches or pull requests

5 participants