Can't `@pyimport ssl`
- Lingua principale
- Julia
- Stelle
- 1.5k
- Fork
- 186
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Fresh install of `PyCall` with `ENV[PYTHON]=""`.
```
julia> using PyCall
INFO: Recompiling stale cache file /home/ubuntu/.julia/lib/v0.5/PyCall.ji for module PyCall.
julia> @pyimport ssl
ERROR: PyError (:PyImport_ImportModule)
ImportError('/home/ubuntu/.julia/v0.5/Conda/deps/usr/lib/python2.7/lib-dynload/_ssl.so: undefined symbol: SSLv2_method',)
File "/home/ubuntu/.julia/v0.5/Conda/deps/usr/lib/python2.7/ssl.py", line 97, in
import _ssl # if we can't import it, let the error propagate
in pyerr_check at /home/ubuntu/.julia/v0.5/PyCall/src/exception.jl:56 [inlined]
in pyerr_check at /home/ubuntu/.julia/v0.5/PyCall/src/exception.jl:61 [inlined]
in macro expansion at /home/ubuntu/.julia/v0.5/PyCall/src/exception.jl:81 [inlined]
in pyimport(::String) at /home/ubuntu/.julia/v0.5/PyCall/src/PyCall.jl:387
```
By the conda python works fine:
```
bash> ~/.julia/v0.5/Conda/deps/usr/bin/python -c 'import ssl; print(ssl.__file__)'
/home/ubuntu/.julia/v0.5/Conda/deps/usr/lib/python2.7/ssl.pyc
```
I know there is a resolution to this, because I have dealt with it before, several times.
But I can not recall what it is.
It is environment dependent.
Because I know this does not occur on Travis
My short term solution, which seems to work, is to just use the system python.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.