I guess that is a bug in PyCall, so you should do your bug report there
: https://github.com/stevengj/PyCall.jl/issues/new. Please ping me
(@Luthaf) on the issue, because this might be related with Conda.jl
Cheers,
Luthaf
Alex Dowling a écrit:
Hello,
I am helping a colleague debug some errors with the PyPlot in the
Windows binary [Version 0.4.0-rc1 (2015-09-09 16:07 UTC)]. Here are
the error messages:
julia> using Pyplot
INFO: Precompiling module Pyplot...
ERROR: LoadError: PyCall not properly installed. Please run
Pkg.build("PyCall") in error at error.jl:21
while loading C:\Users\Tian\.julia\v0.4\PyCall\src\PyCall.jl, in
expression starting on line 36
ERROR: LoadError: Failed to precompile PyCall to
C:\Users\Tian\.julia\lib\v0.4\PyCall.ji in error at error.jl:21
while loading C:\Users\Tian\.julia\v0.4\Pyplot\src\Pyplot.jl, in
expression starting on line 5
ERROR: Failed to precompile Pyplot to
C:\Users\Tian\.julia\lib\v0.4\Pyplot.ji in error at error.jl:21
julia> Pkg.build("PyCall")
INFO: Building PyCall
INFO: No system-wide Python was found; got the following error:
ErrorException("failed process: Process(`python -c \"import
distutils.sysconfig;
print(distutils.sysconfig.get_config_var('VERSION'))\"`,
ProcessExited(3221225781)) [3221225781]")
using the Python distribution in the Conda package
===============================[ ERROR: PyCall
]================================
LoadError: UndefVarError: PYTHONDIR not defined
while loading C:\Users\Tian\.julia\v0.4\PyCall\deps\build.jl, in
expression starting on line 17
================================================================================
================================[ BUILD ERRORS
]================================
WARNING: PyCall had build errors.
- packages with build errors remain installed in
C:\Users\Tian\.julia\v0.4
- build the package(s) and all dependencies with `Pkg.build("PyCall")`
- build a single package by running its `deps/build.jl` script
================================================================================
Shouldn't the Windows binary package include Python, and thus a system
wide install wouldn't be required? The documentation for PyCall (
https://github.com/stevengj/PyCall.jl) suggests it should install
Conda if it can't find Python automatically. If this is a bug, I'd
appreciate advise on whether I should report it in the Julia or PyCall
repositories.
Thanks,
Alex