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
(venv) $ python
Python 3.10.12 (af44d0b8114cb82c40a07bb9ee9c1ca8a1b3688c, Jun 15 2023, 12:39:27)
[PyPy 7.3.12 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> from loguru import logger
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/michal/venv/lib/pypy3.10/site-packages/loguru/__init__.py", line 31, in <module>
logger.add(_sys.stderr)
File "/home/michal/venv/lib/pypy3.10/site-packages/loguru/_logger.py", line 952, in add
exception_formatter = ExceptionFormatter(
File "/home/michal/venv/lib/pypy3.10/site-packages/loguru/_better_exceptions.py", line 131, in __init__
self._lib_dirs = self._get_lib_dirs()
File "/home/michal/venv/lib/pypy3.10/site-packages/loguru/_better_exceptions.py", line 140, in _get_lib_dirs
paths = {sysconfig.get_path(name, scheme) for scheme in schemes for name in names}
File "/home/michal/venv/lib/pypy3.10/site-packages/loguru/_better_exceptions.py", line 140, in <setcomp>
paths = {sysconfig.get_path(name, scheme) for scheme in schemes for name in names}
File "/home/michal/.pyenv/versions/pypy3.10-7.3.12/lib/pypy3.10/sysconfig.py", line 596, in get_path
return get_paths(scheme, vars, expand)[name]
KeyError: 'platstdlib'
The text was updated successfully, but these errors were encountered:
You can modify this in-place in /home/michal/.pyenv/versions/pypy3.10-7.3.12/lib/pypy3.10/sysconfig.py in order to get past this (line 111). I will need to think how to get a patched version out without doing a full 7.3.13 release.
In Heptapod by @mportesdev on Jun 19, 2023, 09:42
I installed
pypy3.10-7.3.12
via pyenv and encountered the following issue.To reproduce, install
loguru
in a virtual environment:and then try to import:
The text was updated successfully, but these errors were encountered: