This is about prometheus/client_python, which wasn't obvious from the subject. I changed the subject so that the right people have a chance to discover this.
I'm not an expert when it comes to pip, but it looks weird to me that you are trying to run the install command with a tar file as the parameter. https://github.com/prometheus/client_python asks you to run `pip install prometheus-client`, which should also take care of dependencies. On 25.06.24 02:00, 'Stefan Witt' via Prometheus Users wrote: > Hi, > > since the installation of the prometheus_client > prometheus_client-0.20.0.tar.gz needed for the Solaris_exporter under > Sparc Solaris 11.64 I allways got the following error while try to start > prometheus_client SMF Service : > > ModuleNotFoundError: No module named 'prometheus_client.core' > > Anybody out there who could help me to solve this problem? > > $ sudo pip-3.9 install prometheus_client-0.20.0.tar.gz > Processing ./prometheus_client-0.20.0.tar.gz > Preparing metadata (setup.py) ... done > Installing collected packages: prometheus-client > DEPRECATION: prometheus-client is being installed using the legacy > 'setup.py install' method, because it does not have a 'pyproject.toml' and > the 'wheel' package is not installed. pip 23.1 will enforce this behaviour > change. A possible replacement is to enable the '--use-pep517' option. > Discussion can be found at https://github.com/pypa/pip/issues/8559 > Running setup.py install for prometheus-client ... done > Successfully installed prometheus-client-0.20.0 > WARNING: Running pip as the 'root' user can result in broken permissions > and conflicting behaviour with the system package manager. It is > recommended to use a virtual environment instead: > https://pip.pypa.io/warnings/venv > $ > > File > "/lib/svc/manifest/site/solaris_exporter-master/solaris_exporter.py", line > 133, in <module> > from prometheus_client.core import REGISTRY, Counter, Gauge, > GaugeMetricFamily, CounterMetricFamily, UntypedMetricFamily > ModuleNotFoundError: No module named 'prometheus_client.core' > [ 2024 Jun 24 10:15:33 Stopping because all processes in service exited. ] > [ 2024 Jun 24 10:15:33 Executing start method ("/usr/bin/python2.7 > /lib/svc/manifest/site/solaris_exporter-master/solaris_exporter.py"). ] > [ 2024 Jun 24 10:15:33 Environment variable "LC_ALL=" already set. ] > ~$ > > Cheers > > Stefan > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/bb74dc9f-d257-431c-b50d-dbbd43c17483n%40googlegroups.com. -- Björn Rabenstein [PGP-ID] 0x851C3DA17D748D03 [email] [email protected] -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ZnwxtFOARGrqpozp%40mail.rabenste.in.

