Skip to content

Error building PyCall #6

@markhalonen

Description

@markhalonen

For this open source project https://github.com/laurium-labs/coilgunui, I'm trying to host a HTTPS api that uses a bunch of Julia libraries like DiffEQ to simulate a coil gun.

I'm getting this error while trying to build:

remote: ┌ Error: Error building `PyCall`:
remote: │ ERROR: LoadError: Couldn't find libpython; check your PYTHON environment variable.
remote: │
remote: │ The python executable we tried was python3 (= version 3.6).
remote: │ Re-building with
remote: │     ENV["PYCALL_DEBUG_BUILD"] = "yes"
remote: │ may provide extra information for why it failed.
remote: │
remote: │ Stacktrace:
remote: │  [1] error(::String) at ./error.jl:33
remote: │  [2] find_libpython(::String; _dlopen::typeof(Libdl.dlopen)) at /app/.julia/packages/PyCall/zqDXB/deps/buildutils.jl:72
remote: │  [3] find_libpython(::String) at /app/.julia/packages/PyCall/zqDXB/deps/buildutils.jl:41
remote: │  [4] top-level scope at /app/.julia/packages/PyCall/zqDXB/deps/build.jl:87
remote: │  [5] include(::String) at ./client.jl:439
remote: │  [6] top-level scope at none:5
remote: │ in expression starting at /app/.julia/packages/PyCall/zqDXB/deps/build.jl:43
remote: └ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:899

I got this after adding the Python buildpack before this Julia buildpack, still getting the same error.

To reproduce:

git clone https://github.com/laurium-labs/coilgunui
cd coilgunui
heroku create --buildpack https://github.com/Optomatica/heroku-buildpack-julia.git
heroku git:remote -a HEROKU_PROJECT_NAME
git subtree push --prefix be heroku master

and then watch the build output. It gives the same error after adding Python buildpack in the ui:

image

Last year I had a similar issue and had to eventually resort to EC2 and manually setting up load balancers etc. in AWS... so I'm really hoping I can use this and don't have to do that again!! : https://medium.com/@markhalonen/deploying-julia-1eb8a1686ca1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions