-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
OSError: cannot load library 'gobject-2.0-0': gobject-2.0-0: cannot open shared object file #2011
Comments
Hi! If you use Conda, you probably need to install WeasyPrint’s non-Python dependencies (at least Pango, that will install GObject) with Conda.
Installing WeasyPrint with |
@jtziebarth Did it work? |
|
|
Assist meWeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue: Traceback (most recent call last): |
@FFED246529C6BEDED02CAEAF Did you install GTK? |
Yes I have gtk3-runtime-3.24.31-2022-01-04-ts-win64.exe |
If you have GTK3 installed in the default folder, and have DLLs in If you still get this error, please open a new issue. |
|
I know this error has been posted before, but I'm encountering it under different circumstances.
System: WSL Ubuntu 20.04
Steps to reproduce:
conda create -n test python=3.10
conda activate test
pip install weasyprint
weasyprint --info
which produces:
Context:
For work I have different versions of python running in separate environments that I create using Miniconda and then pip install all of my dependencies. I understand the pitfalls of mixing conda and pip, but I've followed all of the precautions and it's my understanding that steps have been taken in recent history to get the two to play nicer together. Historically I haven't had issues with this approach when following said precautions.
Steps I've tried:
I've installed the packages listed under Ubuntu 20.04 in the troubleshooting docs. Additionally I've tried the suggestion offered in a related issue thread. I'm still having the issue.
Additional info:
If I install weasyprint outside the environment and run
weasyprint --info
outside the environment, I don't get errors. Nor do I get errors if I install weasyprint inside the environment usingconda install -c conda-forge weasyprint
and runweasyprint --info
inside the environment.Any idea how to succeed using the approach I've outlined in "steps to reproduce?"
The text was updated successfully, but these errors were encountered: