unable to use beautifulsoup
- Lenguaje dominante
- Julia
- Estrellas
- 1.5k
- Forks
- 186
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The following seems to download/install beautifulsoup (or rather, state that it is already there).
do you happen to know why this fails?
```
julia> PyCall.pyimport_conda("beautifulsoup4","beautifulsoup4")
[ Info: Installing beautifulsoup4 via the Conda beautifulsoup4 package...
[ Info: Running `conda install -y beautifulsoup4` in root environment
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
ERROR: PyError (PyImport_ImportModule
The Python package beautifulsoup4 could not be found by pyimport. Usually this means
that you did not install beautifulsoup4 in the Python version being used by PyCall.
PyCall is currently configured to use the Julia-specific Python distribution
installed by the Conda.jl package. To install the beautifulsoup4 module, you can
use `pyimport_conda("beautifulsoup4", PKG)`, where PKG is the Anaconda
package the contains the module beautifulsoup4, or alternatively you can use the
Conda package directly (via `using Conda` followed by `Conda.add` etcetera).
Alternatively, if you want to use a different Python distribution on your
system, such as a system-wide Python (as opposed to the Julia-specific Python),
you can re-configure PyCall with that Python. As explained in the PyCall
documentation, set ENV["PYTHON"] to the path/name of the python executable
you want to use, run Pkg.build("PyCall"), and re-launch Julia.
)
ModuleNotFoundError("No module named 'beautifulsoup4'",)
Stacktrace:
[1] pyimport(::String) at C:\Users\bernhard.konig.ROOT_MILLIMAN\.julia\packages\PyCall\ttONZ\src\PyCall.jl:544
[2] pyimport_conda(::String, ::String, ::String) at C:\Users\bernhard.konig.ROOT_MILLIMAN\.julia\packages\PyCall\ttONZ\src\PyCall.jl:708
[3] pyimport_conda(::String, ::String) at C:\Users\bernhard.konig.ROOT_MILLIMAN\.julia\packages\PyCall\ttONZ\src\PyCall.jl:701
[4] top-level scope at none:0
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza reproduciendo el fallo de Windows e inspecciona PyCall.jl en las ubicaciones del stack trace alrededor de pyimport y pyimport_conda (líneas 544, 701 y 708). Compara el paquete instalado en el entorno de Conda con el entorno de Python que PyCall realmente utiliza; se considera terminado cuando se haya identificado la discrepancia o el fallo y se haya documentado o corregido el comportamiento con una reproducción verificada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- julia, python
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100