-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
pyparsing version parsing error #2266
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
Conversation
Perhaps it would be nice if the error message gave what it thought the version installed was |
We can improve the error message. In the meantime, can you tell me what
gives on your system? |
|
Mike, this is the same error I was having because I didn't do a git clean Chances are, the binaries weren't builtt from clean tarballs. On Thu, Aug 1, 2013 at 9:04 AM, Michael Droettboom <[email protected]
|
@ibell: To confirm @WeatherGod's theory, can you look in |
Yes, but it is a compiled version of the "correct" pyparsing module as far On Thu, Aug 1, 2013 at 4:02 PM, Michael Droettboom <[email protected]
|
Just to be clear, you're looking in |
No, that's not what I meant. The new installer would have put the bad Ben On Thu, Aug 1, 2013 at 10:02 AM, Michael Droettboom <
|
@WeatherGod: I'm confused. Which directory is from the previous installation of matplotlib? As far as I can tell, the installer installs to |
I just confirmed that One possible solution to this (besides recommending uninstallation first), is to put |
I hadn't even realized that MPL provided a version of pyparsing. At the On Thu, Aug 1, 2013 at 4:32 PM, Michael Droettboom <[email protected]
|
I've had this problem today as well after installing matplotlib through pip, and as far as I can tell is related to #1792 and #1794. The output from pip is Downloading/unpacking pyparsing>=1.5.6,!=2.0.0 (from matplotlib) Running setup.py egg_info for package pyparsing I notice pyparsing has recently released (two weeks ago, according to PyPI) a version 2.0.1, so, as far as I can tell, what pip is now doing is installing that rather than installing from the 1.x branch, since 2.0.1 is both greater than 1.5.6 and not equal to 2.0.0. |
Which is the intention since 2.0.1 works for python 2.6 and 2.7 again see #2240 |
I have tested mpl 1.3.0 and python 2.7.5 with this version and apart from a lot of depresiation warnings it is all |
matplotlib used to include pyparsing, and if I understand correctly, this failure is due to having a previous version of matplotlib installed first, and then installing 1.3.0 on top. In that situation, it is loading the too old pyparsing that matplotlib shipped with. @ibell: Can you confirm that's the case on your system so I know my theory is correct? Did removing |
@ibell: ping. I'm not comfortable making any changes unless we can confirm the root cause of the problem. |
Sorry for the delay - removing the matplotlib folder entirely makes the On Wed, Aug 7, 2013 at 11:39 PM, Michael Droettboom <
|
Thats the matplotlib folder in site-packages On Wed, Aug 7, 2013 at 11:45 PM, Ian Bell [email protected] wrote:
|
… from matplotlib 1.1.1 (or earlier) if it's still around in the user's site-packages.
Ok -- I've done a little more digging around. To summarize: the bug manifests itself when the user installs 1.1.1 (or earlier), and then installs 1.3.0 over top (possibly with 1.2.x in between). This is because 1.1.1 (and earlier) include a file called The obvious fix is to turn on We'll have to advertise, for now, that installing 1.3.0 requires uninstalling earlier versions first. But once this fix gets in (for 1.3.1, which looks inevitable rather soon for a number of reasons), that will no longer be required. |
pyparsing version parsing error
hi I have got exactly the same problem and the solution is: |
@killmen2006: The better solution is to remove your old installation of matplotlib before reinstalling a new one, and installing pyparsing in the standard way. This will allow you to continue to upgrade matplotlib in the future without this hiccup. |
Sorry about all those deprecation warnings about using '<<' operator. It turns out '<<' won't be deprecated after all, so in version 2.0.2, those warnings will all go away. |
With the 1.3.0 build from Gohlke's site (http://www.lfd.uci.edu/~gohlke/pythonlibs/), when I try to import matplotlib, I get a pyparsing error. I have pyparsing 2.0.1 installed. Here's the error: