streamlit: Illegal Instruction in streamlit versions newer than 0.84.2
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
On my system hardware any attempt to run streamlit newer than 0.84.2 results in “Illegal instruction”, even when just running streamlit --version
Reproducible Code Example
No code needed, fails with streamlit hello or even streamlit --version
Steps To Reproduce
Install streamlit 0.85 or newer on older hardware and run streamlit --version or streamlit hello
Expected Behavior
Streamlit is the only application I can not run. I have compiled and installed current versions of the Apache web server, Python 3.11, OpenSSL 1.1.1s, and other modern applications successfully.
Current Behavior
Any attempt to run streamlit newer than 0.84.2 produces an “Illegal instruction”.
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version: 0.85.0 or newer
- Python version: 3.9.16 and 3.11
- Operating System: OpenSuSE Linux
- Browser: N/A, all
- Virtual environment: N/A
Additional Information
CPU info: vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel® Xeon® CPU 5160 @ 3.00GHz stepping : 6 microcode : 0xd2 cpu MHz : 3000.116 cache size : 4096 KB 4 CPUs with 2 cores each
Linux static1 3.16.7-48-desktop #1 SMP PREEMPT Wed Oct 26 18:09:22 UTC 2016 (8c027f6) x86_64 GNU/Linux
glibc-2.18-4.44.1.x86_64
gcc version 7.1.1 20170607 [gcc-7-branch revision 248970] (SUSE Linux)
Are you willing to submit a PR?
- Yes, I am willing to submit a PR!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19
@kajarenc just chiming in here from arrow to clarify. The problem is that arrow requires the
popcntinstruction which was introduced ~2008. It seems some CPUs without this are still in use which then run into the Illegal Instruction exception. The possible fix is tracked here https://github.com/apache/arrow/issues/23013