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

BUG: Fix 'TypeError: expected bytes, str found' on Python 3 #3141

Merged
merged 1 commit into from Jun 27, 2014
Merged

BUG: Fix 'TypeError: expected bytes, str found' on Python 3 #3141

merged 1 commit into from Jun 27, 2014

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Jun 19, 2014

natgrid\test.py fails on Python 3 because _natgrid.seti and _natgrid.setr expect byte strings:

Traceback (most recent call last):
  File "test.py", line 15, in <module>
    zi = griddata(x,y,z,xi,yi)
  File "X:\Python34\lib\site-packages\matplotlib\mlab.py", line 2586, in griddata
    _natgrid.seti('ext',0)
  File "_natgrid.pyx", line 35, in _natgrid.seti (src\_natgrid.c:875)
TypeError: expected bytes, str found

@tacaswell tacaswell added this to the v1.4.0 milestone Jun 25, 2014
@tacaswell
Copy link
Member

@mdboom can you take a look at this?

tacaswell added a commit that referenced this pull request Jun 27, 2014
BUG: Fix 'TypeError: expected bytes, str found' on Python 3
@tacaswell tacaswell merged commit bcb57af into matplotlib:master Jun 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants