Bonjour,
recemment passé à Python 2.7, "import numpy as np" passe sans aucun souci, un "import matplotlib' ne pose pas de pb, mais lorsque j'essaie d'importer pyplot:
"import matplotlib.pyplot as plt" j'ai le déluge d'erreur suivant, et rien trouvé dans les divers forum de comparable:
"Traceback (most recent call last):
File "/Users/CARPE/Desktop/Prgm_Python/testgraph2.py", line 5, in <module>
import matplotlib.pyplot as plt
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 24, in <module>
import matplotlib.colorbar
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/colorbar.py", line 29, in <module>
import matplotlib.collections as collections
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/collections.py", line 23, in <module>
import matplotlib.backend_bases as backend_bases
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 50, in <module>
import matplotlib.textpath as textpath
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/textpath.py", line 11, in <module>
import matplotlib.font_manager as font_manager
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 1356, in <module>
_rebuild()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 1341, in _rebuild
fontManager = FontManager()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 989, in __init__
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 318, in findSystemFonts
for f in get_fontconfig_fonts(fontext):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 274, in get_fontconfig_fonts
pipe = subprocess.Popen(['fc-list', '', 'file'], stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1334, in _execute_child
child_exception = pickle.loads(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1382, in loads
return Unpickler(file).load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 966, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle"
Toute aide bienvenue pour me dire comme pouvoir utiliser pyplot...
merci !
recemment passé à Python 2.7, "import numpy as np" passe sans aucun souci, un "import matplotlib' ne pose pas de pb, mais lorsque j'essaie d'importer pyplot:
"import matplotlib.pyplot as plt" j'ai le déluge d'erreur suivant, et rien trouvé dans les divers forum de comparable:
"Traceback (most recent call last):
File "/Users/CARPE/Desktop/Prgm_Python/testgraph2.py", line 5, in <module>
import matplotlib.pyplot as plt
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 24, in <module>
import matplotlib.colorbar
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/colorbar.py", line 29, in <module>
import matplotlib.collections as collections
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/collections.py", line 23, in <module>
import matplotlib.backend_bases as backend_bases
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 50, in <module>
import matplotlib.textpath as textpath
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/textpath.py", line 11, in <module>
import matplotlib.font_manager as font_manager
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 1356, in <module>
_rebuild()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 1341, in _rebuild
fontManager = FontManager()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 989, in __init__
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 318, in findSystemFonts
for f in get_fontconfig_fonts(fontext):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/font_manager.py", line 274, in get_fontconfig_fonts
pipe = subprocess.Popen(['fc-list', '', 'file'], stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1334, in _execute_child
child_exception = pickle.loads(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1382, in loads
return Unpickler(file).load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 966, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle"
Toute aide bienvenue pour me dire comme pouvoir utiliser pyplot...
merci !