Hey folks, hope someone can throw some insights here, the app works fine on my local, which is mac OS 12.0.1 but while I try to deploy it on streamlit cloud I get the following error, full traceback is too long, everything before this error traceback is related to copying…
running build_ext
building 'pystan._api' extension
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.
INFO: C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/pystan
creating build/temp.linux-x86_64-3.9/pystan/stan
creating build/temp.linux-x86_64-3.9/pystan/stan/src
creating build/temp.linux-x86_64-3.9/pystan/stan/src/stan
creating build/temp.linux-x86_64-3.9/pystan/stan/src/stan/lang
creating build/temp.linux-x86_64-3.9/pystan/stan/src/stan/lang/grammars
INFO: compile options: '-DBOOST_DISABLE_ASSERTS -DBOOST_NO_DECLTYPE -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_RESULT_OF_USE_TR1 -DFUSION_MAX_VECTOR_SIZE=12 -I./pystan -Ipystan/stan/src -Ipystan/stan/lib/stan_math/ -Ipystan/stan/lib/stan_math/lib/eigen_3.3.3 -Ipystan/stan/lib/stan_math/lib/boost_1.69.0 -Ipystan/stan/lib/stan_math/lib/sundials_4.1.0/include -I/home/appuser/venv/include -I/usr/local/include/python3.9 -c'
extra options: '-Os -ftemplate-depth-256 -Wno-unused-function -Wno-uninitialized -std=c++1y'
INFO: gcc: pystan/_api.cpp
INFO: gcc: pystan/stan/src/stan/lang/grammars/block_var_decls_grammar_inst.cpp
INFO: gcc: pystan/stan/src/stan/lang/grammars/expression_grammar_inst.cpp
INFO: gcc: pystan/stan/src/stan/lang/grammars/expression07_grammar_inst.cpp
INFO: gcc: pystan/stan/src/stan/lang/grammars/functions_grammar_inst.cpp
INFO: gcc: pystan/stan/src/stan/lang/grammars/bare_type_grammar_inst.cpp
INFO: gcc: pystan/stan/src/stan/lang/grammars/indexes_grammar_inst.cpp
INFO: gcc: pystan/stan/src/stan/lang/ast_def.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/local_var_decls_grammar_inst.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/program_grammar_inst.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/semantic_actions_def.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/statement_2_grammar_inst.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/statement_grammar_inst.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/term_grammar_inst.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
INFO: gcc: pystan/stan/src/stan/lang/grammars/whitespace_grammar_inst.cpp
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DBOOST_DISABLE_ASSERTS -DBOOST_NO_DECLTYPE -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_RESULT_OF_USE_TR1 -DFUSION_MAX_VECTOR_SIZE=12 -I./pystan -Ipystan/stan/src -Ipystan/stan/lib/stan_math/ -Ipystan/stan/lib/stan_math/lib/eigen_3.3.3 -Ipystan/stan/lib/stan_math/lib/boost_1.69.0 -Ipystan/stan/lib/stan_math/lib/sundials_4.1.0/include -I/home/appuser/venv/include -I/usr/local/include/python3.9 -c pystan/_api.cpp -o build/temp.linux-x86_64-3.9/pystan/_api.o -Os -ftemplate-depth-256 -Wno-unused-function -Wno-uninitialized -std=c++1y" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pystan
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
at ~/.poetry/lib/poetry/utils/env.py:1195 in _run
1191│ output = subprocess.check_output(
1192│ cmd, stderr=subprocess.STDOUT, **kwargs
1193│ )
1194│ except CalledProcessError as e:
→ 1195│ raise EnvCommandError(e, input=input_)
1196│
1197│ return decode(output)
1198│
1199│ def execute(self, bin, *args, **kwargs):
/app/climate-trydan
the app I am trying to build using poetry is here @ GitHub - ybangaru/climate-trydan
I did see some similar posts around and updated pystan using “poetry add pystan@2.19.1.1” and the other thing I did was updating config.toml to use [server] port=8501 besides the [theme]. None of them helped, any thoughts on what might I be missing here? Thank you!