On 2023/03/31 08:35, Laurent Cheylus wrote: > Hi, > > with the last commit for sysutils/glances 3.3.1.1, there is an issue with > import of ujson Python module :
oops, I must have been confused about which machine I was on when I tested this :/ I have backed-out the update. > $ glances > Traceback (most recent call last): > File "/usr/local/bin/glances", line 5, in <module> > from glances import main > File "/usr/local/lib/python3.10/site-packages/glances/__init__.py", line > 35, in <module> > from glances.compat import PY3 > File "/usr/local/lib/python3.10/site-packages/glances/compat.py", line 24, > in <module> > from glances.logger import logger > File "/usr/local/lib/python3.10/site-packages/glances/logger.py", line 20, > in <module> > from glances.globals import safe_makedirs > File "/usr/local/lib/python3.10/site-packages/glances/globals.py", line > 16, in <module> > import ujson > ModuleNotFoundError: No module named 'ujson' > > Python ujson module (https://pypi.org/project/ujson/) is now used by Glances > instead of json => > https://github.com/nicolargo/glances/commit/a9ee2aa09c00b6adc396c666d6e970e2b58918e6 > > ujson must be a dependency for this port but it's not packaged for OpenBSD. > > Laurent
