Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Install Issues #2728

Open
soulvoid86 opened this issue Apr 18, 2024 · 3 comments
Open

Windows Install Issues #2728

soulvoid86 opened this issue Apr 18, 2024 · 3 comments

Comments

@soulvoid86
Copy link

Describe the bug
Unsure if this is a bug or a system issue.

I'm receiving the below DLL Load Error on a fresh install of Glances/Python. I've reinstalled v3.4, 3.10.1 and 3.12.3 of Python, following the install steps exactly as described. I have 4 other systems running Glances perfectly fine, all in the same windows environments as this VM. Not sure why I'm hitting the error below. I've uninstalled and reinstalled Python countless time, clearing all directories for Python including Program Files and Local AppData. I've installed all dependencies to their exact version manually based on what the other systems have installed, but I still hit this error. Unsure if it's this VM or a bug.

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\Python310\Scripts\glances.exe_main
.py", line 4, in
File "C:\Program Files\Python310\lib\site-packages\glances_init
.py", line 35, in
from glances.compat import PY3
File "C:\Program Files\Python310\lib\site-packages\glances\compat.py", line 25, in
from glances.logger import logger
File "C:\Program Files\Python310\lib\site-packages\glances\logger.py", line 20, in
from glances.globals import safe_makedirs
File "C:\Program Files\Python310\lib\site-packages\glances\globals.py", line 16, in
import ujson
ImportError: DLL load failed while importing ujson: The specified module could not be found.

To Reproduce
Steps to reproduce the behavior:
Simply following the basic Windows install.
Install Python v3.10.1 for all users>pip install glances

Expected behavior
Glances to install

Screenshots
If applicable, add screenshots to help explain your problem.

Environement (please complete the following information)

  • Operating System (lsb_release -a or OS name/version): Windows Server 2019 Standard
  • Glances & psutil versions: Unable to run command, same error occurs.
  • How do you install Glances (Pypi package, script, package manager, source): CMD>pip install glances

Unable to provide any of the below.

  • Glances test (only available with Glances 3.1.7 or higher):
To be completed with result of: glances --issue

Additional context
Add any other context about the problem here.

You can also pastebin:

@soulvoid86
Copy link
Author

I want to add I just created a fresh VM, Windows Server 2019 Standard just the same as this live system above, and the same issue persists. Nothing custom or special about the OS. It's just the standard eval ISO directly from Microsoft.

@nicolargo
Copy link
Owner

How do you install Glances ?

The ujson dependency is not installed:

File "C:\Program Files\Python310\lib\site-packages\glances\globals.py", line 16, in
import ujson
ImportError: DLL load failed while importing ujson: The specified module could not be found.

@soulvoid86
Copy link
Author

soulvoid86 commented Apr 21, 2024

ujson is installed though.. I installed Glances per the guidelines using "pip install glances". I have Glances running on 6 other machines and have been using it for a few years now.

Yes, I've also tried updating pip as the warning states below too, no change.

As I stated above, I even went through and version matched every package and installed them manually based on a working system. Same issue both on an existing machine and a freshly build VM, but the machines with Glances installed a long time ago still work fine.

I've also tried Python versions 3.4.0, 3.10.1, 3.12.3, same issue with all 3 versions across multiple machines.

C:\Users\Administrator>pip list
Package Version


bottle 0.12.25
defusedxml 0.7.1
future 1.0.0
Glances 3.4.0.5
packaging 24.0
pip 21.2.4
psutil 5.9.8
pyparsing 3.1.2
python-dateutil 2.9.0.post0
setuptools 58.1.0
six 1.16.0
ujson 5.9.0
WARNING: You are using pip version 21.2.4; however, version 24.0 is available.
You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.

C:\Users\Administrator>glances -w
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\Python310\Scripts\glances.exe_main
.py", line 4, in
File "C:\Program Files\Python310\lib\site-packages\glances_init
.py", line 35, in
from glances.compat import PY3
File "C:\Program Files\Python310\lib\site-packages\glances\compat.py", line 25, in
from glances.logger import logger
File "C:\Program Files\Python310\lib\site-packages\glances\logger.py", line 20, in
from glances.globals import safe_makedirs
File "C:\Program Files\Python310\lib\site-packages\glances\globals.py", line 16, in
import ujson
ImportError: DLL load failed while importing ujson: The specified module could not be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants