Hi,

just erased everything that is julia-related (including julia itself), 
removed .julia etc... and installed from scratch 0.4.6. WHen I tried to 
installed PyPlot and issued the 
using PyPlot
command I got this:

ERROR: InitError: PyError (:PyImport_ImportModule) <type 
'exceptions.ValueError'>
ValueError('unknown locale: UTF-8',)
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/__init__.py",
 
line 1131, in <module>
    rcParams = rc_params()
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/__init__.py",
 
line 975, in rc_params
    return rc_params_from_file(fname, fail_on_error)
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/__init__.py",
 
line 1100, in rc_params_from_file
    config_from_file = _rc_params_in_file(fname, fail_on_error)
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/__init__.py",
 
line 1018, in _rc_params_in_file
    with _open_file_or_url(fname) as fd:
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/contextlib.py", 
line 17, in __enter__
    return self.gen.next()
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/__init__.py",
 
line 1000, in _open_file_or_url
    encoding = locale.getdefaultlocale()[1]
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/locale.py", line 
545, in getdefaultlocale
    return _parse_localename(localename)
  File 
"/Users/mazzanti/.julia/v0.4/Conda/deps/usr/lib/python2.7/locale.py", line 
477, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename

 [inlined code] from /Users/mazzanti/.julia/v0.4/PyCall/src/exception.jl:81
 in pyimport at /Users/mazzanti/.julia/v0.4/PyCall/src/PyCall.jl:386
 in pyimport_conda at /Users/mazzanti/.julia/v0.4/PyCall/src/PyCall.jl:479
 in __init__ at /Users/mazzanti/.julia/v0.4/PyPlot/src/PyPlot.jl:223
 in _require_from_serialized at loading.jl:84
 in require at 
/Applications/Julia-0.4.6.app/Contents/Resources/julia/lib/julia/sys.dylib
during initialization of module PyPlot

...and no PyPlot whatsoever. Oh btw I did the ENV["python"]="" before all 
this...
Is theer any problem related to PyPlot in OSX that has been introduced 
lately? It used to run flawlessly before...
Any help to solve this? I'd like to have PyPlot running as many of my 
notebooks depend on it...

Best,

Ferran.

Reply via email to