JuliaPy / JuliaPy/PyCall.jl

PyCall test error with anaconda python on windows

Open
#739 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

I set ENV["PYTHON"]="C:\\ProgramData\\Miniconda3\\python.exe" and then add PyCall but test error.I hope you guys can help me fix it.

There are some information:

```
julia> using InteractiveUtils; versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel® Core™ i5-6200U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

Status `C:\Users\Whale fall\.julia\environments\v1.3\Project.toml`
[336ed68f] CSV v0.5.22
[a93c6f00] DataFrames v0.20.0
[438e738f] PyCall v1.91.2
[d330b81b] PyPlot v2.8.2

(v1.3) pkg> test PyCall
Testing PyCall
Resolving package versions...
Status `C:\Users\WHALEF~1\AppData\Local\Temp\jl_AFLah2\Manifest.toml`
[8f4d0f93] Conda v1.3.0
[864edb3b] DataStructures v0.17.9
[682c06a0] JSON v0.21.0
[1914dd2f] MacroTools v0.5.3
[bac558e1] OrderedCollections v1.1.0
[69de0a69] Parsers v0.3.10
[438e738f] PyCall v1.91.2
[81def892] VersionParsing v1.2.0
[2a0f44e3] Base64 [`@stdlib/Base64`]
[ade2ca70] Dates [`@stdlib/Dates`]
[8ba89e20] Distributed [`@stdlib/Distributed`]
[b77e0a4c] InteractiveUtils [`@stdlib/InteractiveUtils`]
[76f85450] LibGit2 [`@stdlib/LibGit2`]
[8f399da3] Libdl [`@stdlib/Libdl`]
[37e2e46d] LinearAlgebra [`@stdlib/LinearAlgebra`]
[56ddb016] Logging [`@stdlib/Logging`]
[d6f4376e] Markdown [`@stdlib/Markdown`]
[a63ad114] Mmap [`@stdlib/Mmap`]
[44cfe95a] Pkg [`@stdlib/Pkg`]
[de0858da] Printf [`@stdlib/Printf`]
[3fa0cd96] REPL [`@stdlib/REPL`]
[9a3f8284] Random [`@stdlib/Random`]
[ea8e919c] SHA [`@stdlib/SHA`]
[9e88b42a] Serialization [`@stdlib/Serialization`]
[6462fe0b] Sockets [`@stdlib/Sockets`]
[2f01184e] SparseArrays [`@stdlib/SparseArrays`]
[10745b16] Statistics [`@stdlib/Statistics`]
[8dfed614] Test [`@stdlib/Test`]
[cf7118a7] UUIDs [`@stdlib/UUIDs`]
[4ec0a83e] Unicode [`@stdlib/Unicode`]
┌ Info: Python version 3.7.6 from C:\ProgramData\Miniconda3\python37.dll, PYTHONHOME=C:\ProgramData\Miniconda3
│ ENV[PYTHONPATH]=
│ ENV[PYTHONHOME]=
└ ENV[PYTHONEXECUTABLE]=
Test Summary: | Pass Total
conversions | 458 458
Test Summary: | Pass Total
pydef | 8 8
Test Summary: | Pass Total
callback | 3 3
Test Summary: | Pass Total
throwing show | 4 4
Test Summary: | Pass Total
PyIterator | 14 14
Test Summary: | Pass Total
atexit | 1 1
Test Summary: | Pass Total
pycall! | 16 16
Test Summary: | Pass Total
PyBuffer | 88 88
[ Info: No virtualenv command. Skipping the test...
Test Summary: |
virtualenv activation | No tests
Test Summary: | Pass Broken Total
venv activation | 1 1 2
**find_libpython: Error During Test at C:\Users\Whalefall\.julia\packages\PyCall\ttONZ\test\test_build.jl:8
Got exception outside of a @test
IOError: stat: unknown error (UNKNOWN) for file "C:\\Users\\Whalefall\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe"**
Stacktrace:
[1] stat(::String) at .\stat.jl:69
[2] isfile at .\stat.jl:311 [inlined]
[3] which(::String) at .\sysinfo.jl:507
[4] top-level scope at C:\Users\Whale fall\.julia\packages\PyCall\ttONZ\test\test_build.jl:10
[5] top-level scope at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Test\src\Test.jl:1107
[6] top-level scope at C:\Users\Whale fall\.julia\packages\PyCall\ttONZ\test\test_build.jl:9
[7] include at .\boot.jl:328 [inlined]
[8] include_relative(::Module, ::String) at .\loading.jl:1105
[9] include(::Module, ::String) at .\Base.jl:31
[10] include(::String) at .\client.jl:424
[11] top-level scope at C:\Users\Whale fall\.julia\packages\PyCall\ttONZ\test\runtests.jl:789
[12] include at .\boot.jl:328 [inlined]
[13] include_relative(::Module, ::String) at .\loading.jl:1105
[14] include(::Module, ::String) at .\Base.jl:31
[15] include(::String) at .\client.jl:424
[16] top-level scope at none:6
[17] eval(::Module, ::Any) at .\boot.jl:330
[18] exec_options(::Base.JLOptions) at .\client.jl:263
[19] _start() at .\client.jl:460

Test Summary: | Error Total
find_libpython | 1 1
**ERROR: LoadError: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at C:\Users\Whale fall\.julia\packages\PyCall\ttONZ\test\test_build.jl:8
in expression starting at C:\Users\Whale fall\.julia\packages\PyCall\ttONZ\test\runtests.jl:789
ERROR: Package PyCall errored during testing**
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.