Discussion:
[Matplotlib-users] Problem: AttributeError: 'module' object has no attribute '_string_to_bool'
Bob Dobalina
2015-08-18 16:49:09 UTC
Permalink
When trying to create a 3D axes, I receive this error:

/usr/lib/pymodules/python2.7/mpl_toolkits/mplot3d/axes3d.pyc in grid(self,
b, **kwargs)
1254 if len(kwargs) :
1255 b = True
-> 1256 self._draw_grid = maxes._string_to_bool(b)
1257
1258 def ticklabel_format(self, **kwargs) :

AttributeError: 'module' object has no attribute '_string_to_bool'

I'm running matplotlib 1.4.3 on linux (ubuntu-based), and was able to create
3D axes until I updated last week.

Thanks in advance.




--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Problem-AttributeError-module-object-has-no-attribute-string-to-bool-tp46020.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Thomas Caswell
2015-08-18 16:53:15 UTC
Permalink
This is related to files from the previous implementation still being
around. Please make sure you have fully removed the old mpl installation
before installing the new one. Be aware that there is some difference in
the way pip/setuptools/distutils deal with namespace packages so look for
both `matplotlib` and `mpl_toolkits` directories.

Tom
Post by Bob Dobalina
/usr/lib/pymodules/python2.7/mpl_toolkits/mplot3d/axes3d.pyc in grid(self,
b, **kwargs)
1255 b = True
-> 1256 self._draw_grid = maxes._string_to_bool(b)
1257
AttributeError: 'module' object has no attribute '_string_to_bool'
I'm running matplotlib 1.4.3 on linux (ubuntu-based), and was able to create
3D axes until I updated last week.
Thanks in advance.
--
http://matplotlib.1069221.n5.nabble.com/Problem-AttributeError-module-object-has-no-attribute-string-to-bool-tp46020.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Thomas Caswell
2015-08-18 16:53:41 UTC
Permalink
Post by Thomas Caswell
This is related to files from the previous implementation still being
around. Please make sure you have fully removed the old mpl installation
before installing the new one. Be aware that there is some difference in
the way pip/setuptools/distutils deal with namespace packages so look for
both `matplotlib` and `mpl_toolkits` directories.
Tom
Post by Bob Dobalina
/usr/lib/pymodules/python2.7/mpl_toolkits/mplot3d/axes3d.pyc in grid(self,
b, **kwargs)
1255 b = True
-> 1256 self._draw_grid = maxes._string_to_bool(b)
1257
AttributeError: 'module' object has no attribute '_string_to_bool'
I'm running matplotlib 1.4.3 on linux (ubuntu-based), and was able to create
3D axes until I updated last week.
Thanks in advance.
--
http://matplotlib.1069221.n5.nabble.com/Problem-AttributeError-module-object-has-no-attribute-string-to-bool-tp46020.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...