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

impossible to install via pip #54

Open
pahenator opened this issue Feb 12, 2023 · 4 comments
Open

impossible to install via pip #54

pahenator opened this issue Feb 12, 2023 · 4 comments

Comments

@pahenator
Copy link

pip install pgi
Collecting pgi
Using cached pgi-0.0.11.2.tar.gz (239 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\pavel\AppData\Local\Temp\pip-install-_znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\setup.py", line 18, in
import pgi
File "C:\Users\pavel\AppData\Local\Temp\pip-install-znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\pgi_init.py", line 10, in
from .importer import require_version, get_required_version
File "C:\Users\pavel\AppData\Local\Temp\pip-install-_znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\pgi\importer.py", line 15, in
from .clib.gir import GIRepository
File "C:\Users\pavel\AppData\Local\Temp\pip-install-znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\pgi\clib\gir_init.py", line 8, in
from .giargument import GIArgument
File "C:\Users\pavel\AppData\Local\Temp\pip-install-_znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\pgi\clib\gir\giargument.py", line 9, in from ..glib import gboolean, gint8, guint8, gint16, guint16, gint32, guint32
File "C:\Users\pavel\AppData\Local\Temp\pip-install-_znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\pgi\clib\glib.py", line 16, in
_glib = find_library("glib-2.0")
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pavel\AppData\Local\Temp\pip-install-_znv085p\pgi_92ca1d9f5e694cb7bb3831f3de8c8dbb\pgi\clib_utils.py", line 99, in find_library
_internal[name] = cdll.LoadLibrary(so_mapping[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pavel\AppData\Local\Programs\Python\Python311\Lib\ctypes_init
.py", line 454, in LoadLibrary
return self.dlltype(name)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\pavel\AppData\Local\Programs\Python\Python311\Lib\ctypes_init
.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'libglib-2.0-0.dll' (or one of its dependencies). Try using the full path with constructor syntax.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

@pahenator
Copy link
Author

libglib-2.0-0.dll
I added this lib to System32 but still no luck

@hmLin2002
Copy link

I encounter the same problem. Could you tell me how to solve it? Thank you!

@TingPing
Copy link

TingPing commented Nov 27, 2023

You'd have to get the libraries through another method, such as msys2 (mingw) or wingtk (msvc)

@pahenator
Copy link
Author

You'd have to get the libraries through another method, such as msys2 (mingw) or wingtk (msvc)

it was long time ago, as I remember I didn't solve this issue. Try clear install from scratch on VM with clan Windows installation

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

No branches or pull requests

3 participants