You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a streamlit app with python and deploying it to heroku. The app uses the python wrapper from Starspace and works locally but when running online on Heroku shows an ImportError: /app/starwrap.so: invalid ELF header
Steps to reproduce
What are the steps we should take to reproduce the bug:
Cloned the Starspace repo and followed the steps mentioned to compile the python wrapper
Moved the generated starwrapper.so to my Heroku repo and imported it like import starwrap as sw
Deploy app to Heroku
Expected behavior:
Running the streamlit app locally show no error and executes just fine. I can load a saved starspace model, make predictions and display some resutls.
Actual behavior:
In Heroku I get an error displayed when trying to import the starspace python wrapper.
ImportError: /app/starwrap.so: invalid ELF header
Traceback:
File "/app/.heroku/python/lib/python3.8/site-packages/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.dict)
File "/app/collaborative_filtering_interface.py", line 3, in
import starwrap as sw
Is this a regression?
That is, did this use to work the way you expected in the past?
No
Debug info
Streamlit version: 0.58.0
Python version: 3.8.2
OS version: MacOS
Additional information
The text was updated successfully, but these errors were encountered:
Hi @Magdiel3 , I believe you have to build starwrap.so on the platform you plan to use it on. You can't build it on your Mac then use the binary on linux.
Summary
I'm building a streamlit app with python and deploying it to heroku. The app uses the python wrapper from Starspace and works locally but when running online on Heroku shows an ImportError: /app/starwrap.so: invalid ELF header
Steps to reproduce
What are the steps we should take to reproduce the bug:
import starwrap as sw
Expected behavior:
Running the streamlit app locally show no error and executes just fine. I can load a saved starspace model, make predictions and display some resutls.
Actual behavior:
In Heroku I get an error displayed when trying to import the starspace python wrapper.
ImportError: /app/starwrap.so: invalid ELF header
Traceback:
File "/app/.heroku/python/lib/python3.8/site-packages/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.dict)
File "/app/collaborative_filtering_interface.py", line 3, in
import starwrap as sw
Is this a regression?
That is, did this use to work the way you expected in the past?
No
Debug info
Additional information
The text was updated successfully, but these errors were encountered: