7/13/2023 0 Comments Install gcc python for mac![]() Resp = await self._request_handler(request)įile "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handleįile "/usr/local/lib/python3.9/site-packages/httpstan/views.py", line 253, in handle_show_params Example error message Error handling requestįile "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request The only change I needed was to update to a newer gcc version, and the PyPI wheels worked fine after that. I was doing this specifically within a Docker container, but I suspect the error will arise for anyone using an out-of-date compiler. I’ve included an example of the error messages that I was receiving with the out-of-date gcc compiler, and an example Dockerfile that sets up a working PyStan 3 container. The python:latest Docker Hub image (at time of writing) uses Debian Buster with gcc version 8.3.0 updating this to the latest gcc resolved the issue for me. The reason for this seems to be a dependency on gcc ≥9.0 (or clang ≥10.0) - this is now stated in the documentation to the httpstan module, a dependency of PyStan 3. I tried to get PyStan 3 set up to run in a Docker container, but was getting C++ compiler error messages about an undefined symbol nested in a lengthy Python error traceback when executing the stan.build() method. Just thought I’d give a post on some issues that I had setting up PyStan 3, and how I got around them, in case there’s someone else this might help.
0 Comments
Leave a Reply. |