Re: [Pyparsing] Problems when installing version 2.0.0 using pip
Brought to you by:
ptmcg
From: Álvaro J. [T. <alv...@gm...> - 2013-02-27 15:26:32
|
On Wed, Feb 27, 2013 at 11:51 AM, <pt...@au...> wrote: > Alvaro - > > Unfortunately this is the best I can offer. We are in the awkward in-between Python2-or-Python3 compatibility period, which is likely to last a few more years at least. My previous approach to handling the version dichotomy was error-prone, and I finally decided to just move forward to Python 3 as my main supported Python version. Starting with 2.0.1, I will start converting over the supporting code and examples to be more Python3 idiomatic - this of course will not affect the 1.5.x branch of pyparsing. Fortunately both pip and easy_install offer a command syntax to explicitly request a particular version of pyparsing, so Python 2 users do have a not-too-terrible workaround for the default behavior of installing the latest version of a package. You can maintain a version for Python2 and another version for Python3 of the same package, just changing its setup.py to detect which Python version in running during the installation, like httplib2 does: https://code.google.com/p/httplib2/source/browse/setup.py []s > -- Paul > > > ---- "Álvaro Justen [Turicas]" <alv...@gm...> wrote: >> El 27/02/2013 06:01, "Paul McGuire" <pt...@au...> escribió: >> >> Can you precede your install of pydot with: >> >> pip install pyparsing==1.5.7 > > Yes, I know I can do it, but sincerely I don't want to since my library > does not depends directly on pyparsing. > >> Hopefully this will explicitly load the Python2-compatible version of > pyparsing, and then pydot won't need to try to autoresolve it. > > *Seriously* that you will break everything that needs pyparsing and uses > Python 2? > >> -- Paul >> >> >> -----Original Message----- >> From: Álvaro Justen [Turicas] [mailto:alv...@gm...] >> Sent: Wednesday, February 27, 2013 2:33 AM >> To: pyp...@li... >> Subject: [Pyparsing] Problems when installing version 2.0.0 using pip >> >> Hello, >> >> I'm developing a project[https://github.com/NAMD/pypelinin] that uses > python-graph-dot[https://pypi.python.org/pypi/python-graph-dot], which > depends on pyparsing. >> I figured out that you released version 2.0.0 some hours ago because I > tried to package my library to test some stuff and the installation process > failed by a SyntaxError when pip was trying to install pyparsing. >> >> I'm using Python 2.7.3 and all the log can be found at: >> https://gist.github.com/turicas/5046284 >> >> Basically, the SyntaxError exception is raised on file "pyparsing.py", > line 629 ("nonlocal limit,foundArity"). >> To reproduce this problem you just need to install it in a new virtualenv: >> >> cd /tmp >> virtualenv pyparsing-test >> source pyparsing-test/bin/activate >> pip install python-graph-dot >> deactivate >> rm -rf pyparsing-test >> >> Is there any plans on fixing this problem? I'm considering removing > python-graph-dot dependency in my library for now because I simply can't > install it because of this bug. >> >> Thanks, >> []s >> -- >> Álvaro Justen "Turicas" >> http://blog.justen.eng.br http://twitter.com/turicas >> http://CursoDeArduino.com.br http://github.com/turicas >> +55 21 9898-0141 >> >> > ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics Download AppDynamics Lite for > free today: >> http://p.sf.net/sfu/appdyn_d2d_feb >> _______________________________________________ >> Pyparsing-users mailing list >> Pyp...@li... >> https://lists.sourceforge.net/lists/listinfo/pyparsing-users >> > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Pyparsing-users mailing list > Pyp...@li... > https://lists.sourceforge.net/lists/listinfo/pyparsing-users > > -- Álvaro Justen "Turicas" http://blog.justen.eng.br http://twitter.com/turicas http://CursoDeArduino.com.br http://github.com/turicas +55 21 9898-0141 |