No module named 'cairocffi._generated'
See original GitHub issueNot working on a project using PDM running on WSL2, Ubuntu 20.04. I’ve inspected the code and it seems that this module actually doesn’t exist.
❯ pdm run start
Traceback (most recent call last):
(...)
from . import computed_values, counters, media_queries
File "/home/my-project/__pypackages__/3.9/lib/weasyprint/css/computed_values.py", line 15, in <module>
from .. import text
File "/home/my-project/__pypackages__/3.9/lib/weasyprint/text.py", line 11, in <module>
import cairocffi as cairo
File "/home/my-project/__pypackages__/3.9/lib/cairocffi/__init__.py", line 17, in <module>
from ._generated.ffi import ffi
ModuleNotFoundError: No module named 'cairocffi._generated'
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ImportError: No module named 'cairocffi' - Stack Overflow
Save this question. Show activity on this post. I am trying to run a sample code provided by scikit-rf (https://scikit-rf-web.readthedocs.io/) ...
Read more >ImportError: No module named 'cairocffi' · Issue #29 - GitHub
Hello, I need to install cairocffi in order to use some example files from scikit-rf. However even though I used pip install cairocffi, ......
Read more >cairocffi - PyPI
cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of Python bindings and object-oriented API for cairo. Cairo is a 2D vector...
Read more >GitHub Stats — Matplotlib 2.2.2 documentation
These lists are automatically generated, and may be incomplete or contain ... #9344: ImportError: No module named functools_lru_cache ...
Read more >Python API reference — cairocffi 1.4.0 documentation
This will generate a surface that may be queried and used as a source, without generating a temporary file. The PostScript surface backend...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What you can do is:
~/.cache/pdm/wheels
pdm init
pdm add cairocffi -v
In the logs, you should have something like
If you don’t, maybe you have an old version of setuptools and should update it.
Oh… That fixed the issue! Thank you very much!