-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
MEP12 on load_converter.py #4932
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
MEP12 on load_converter.py #4932
Conversation
import matplotlib.dates as mdates | ||
|
||
|
||
# Note: matplotlib.dates doesn't have bytespdate2num. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about this. My version of Matplotlib definitely has bytespdate2num
And it is in the main repository here https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/dates.py#L308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let me try conda installing the latest MPL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was added in February 0a24a56 so it wound be in any released version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very weird, I cannot make the import statements work, though. I get the error:
In [9]: import matplotlib.dates as mdate
In [10]: mdate.bytespdate2num()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-10-7c2709974f11> in <module>()
----> 1 mdate.bytespdate2num()
AttributeError: 'module' object has no attribute 'bytespdate2num'
Any idea what's going on? Is the import statement not done correctly?
Which version of Matplotlib are you using? You will need the master branch with a build from after February for this to work. |
I'm on 1.4.3 right now. |
Should I be doing a development install from master instead? |
Yes if you want to run this example locally you need to do that |
Ok, on it. |
Very interesting, @jenshnielsen, I am finding that with
I get the following messages:
Cannot tell whether the installation was successful or not. Any ideas here? I am at a loss with this one. |
It is expected to not work with 1.4.3 the code was not added to the master branch before February this year. To install Matplotlib from source you need to have pkg-config installed. On OSX i normally install it using homebrew but that really depends on how your machine is set up. We really should have a Conda branch with a master build but unfortunately we don't have that at the moment. |
I’m going to take it on faith that this works. In the short period of time here, I wasn’t able to get it working on my local system.
MEP12 on load_converter.py
No description provided.