Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDawczak - PyCall to Heroku #1

Open
raphaelfarzankashani opened this issue Jan 6, 2020 · 0 comments
Open

PDawczak - PyCall to Heroku #1

raphaelfarzankashani opened this issue Jan 6, 2020 · 0 comments

Comments

@raphaelfarzankashani
Copy link

Hey man - can I ask if you were able to deploy both rails and python to heroku and use PyCall? Works on my local machine but can't get past this error I assume you've seen...

irb(main):002:0> PyCall::PYTHON_VERSION DEBUG(find_libpython) find_libpython("/app/.heroku/python/bin/python") DEBUG(find_libpython) investigate_python_config("/app/.heroku/python/bin/python") DEBUG(find_libpython) libs: ["libpython3.7m.a", "libpython3.7m", "libpython3.7", "libpython"] DEBUG(find_libpython) libpaths: ["/app/.heroku/python/lib", "/app/.heroku/python/lib", "", "/app/.heroku/python", "/app/.heroku/python/lib"] DEBUG(find_libpython) Fiddle::DLError: /app/.heroku/python/lib/libpython3.7m.a: invalid ELF header DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.a DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.a.so DEBUG(find_libpython) Fiddle::DLError: /app/.heroku/python/lib/libpython3.7m.a: invalid ELF header DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.a DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /libpython3.7m.a DEBUG(find_libpython) Unable to find /libpython3.7m.a.so DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython3.7m.a DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython3.7m.a DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython3.7m.a DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython3.7m.a.so DEBUG(find_libpython) Fiddle::DLError: /app/.heroku/python/lib/libpython3.7m.a: invalid ELF header DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.a DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.a.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.so DEBUG(find_libpython) Unable to find /libpython3.7m DEBUG(find_libpython) Unable to find /libpython3.7m.so DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython3.7m DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7m.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7.so DEBUG(find_libpython) Unable to find /libpython3.7 DEBUG(find_libpython) Unable to find /libpython3.7.so DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython3.7 DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7 DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython3.7.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython.so DEBUG(find_libpython) Unable to find /libpython DEBUG(find_libpython) Unable to find /libpython.so DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython DEBUG(find_libpython) Unable to find /x86_64-linux-gnu/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/x86_64-linux-gnu/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/libpython.so DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython DEBUG(find_libpython) Unable to find /app/.heroku/python/lib/x86_64-linux-gnu/libpython.so DEBUG(find_libpython) Fiddle::DLError: /app/.heroku/python/lib/libpython3.7m.a: invalid ELF header DEBUG(find_libpython) Fiddle::DLError: libpython3.7m: cannot open shared object file: No such file or directory DEBUG(find_libpython) Fiddle::DLError: libpython3.7: cannot open shared object file: No such file or directory DEBUG(find_libpython) Fiddle::DLError: libpython: cannot open shared object file: No such file or directory PyCall::PythonNotFound: PyCall::PythonNotFound from /app/vendor/bundle/ruby/2.3.0/gems/pycall-1.2.1/lib/pycall/libpython/finder.rb:96:in find_libpython'
from /app/vendor/bundle/ruby/2.3.0/gems/pycall-1.2.1/lib/pycall/init.rb:35:in init' from /app/vendor/bundle/ruby/2.3.0/gems/pycall-1.2.1/lib/pycall/init.rb:5:in const_missing'
from (irb):2
from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/console.rb:110:in start' from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/console.rb:9:in start'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:68:in console' from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in run_command!'
from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in <top (required)>' from /app/bin/rails:8:in require'
from /app/bin/rails:8:in <main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant