-
-
Notifications
You must be signed in to change notification settings - Fork 712
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
No module named 'weasyprint' #988
Comments
This error indicates that there is no How did you install WeasyPrint / what's the output of |
pip show weasyprint? |
pip install failed so there is of course no WeasyPrint. Main reason being this one:
More infos here: https://wiki.python.org/moin/WindowsCompilers BTW: The |
could you tell me, how can i install weasyprint |
Pip doesn't find the C++ build tools for Visual Studio, you have to install them. The URL is given in the error message: https://visualstudio.microsoft.com/downloads/. There's a "Build tools" section a the bottom of the page, and at the bottom of this section there's a link to download them. You can then launch |
@liZe any chance to deploy cairocffi as wheel? The answer is probably "no" because cairocffi needs to be linked to cairo at install time... Wondering why I didn't mention the C++ build tools when I rewrote the installation instructions for WeasyPrint on Windows -- most likely I simply forgot about it due to the predominant GTK stuff. |
That's why: #668 (comment) |
CairoCFFI used to be distributed as a wheel, but it's not anymore because the binding file is done at install time and may (does? not really does?) change depending on the target computer. We could try to compare the generated files and see if there's a solution to generate them once and include them in a wheel … and of course check that it works everywhere. |
We could complement the WeasyPrint installation instruction with sth like "if pip install fails then have a look at the installation docs of the failing required module" 😏 |
Hello, I followed every step mentioned in the document https://weasyprint.readthedocs.io/en/latest/install.html#step-2-update-pip-and-setuptools-packages. |
@GaikwadDS cf #1151 Looks like you installed mingw32's Python package: There is a Python executable in When you run Since your Unless the mingw32 Python package is required for something else, I suggest to uninstall it. |
Hello, I have a similar problem. I did the suggested solution:
but I just removed it from the
So I returned the Other information regarding my issue that might clarify it:
I hope this makes sense. |
@Arwa720 Your versions of Python installed by Anaconda and MSYS2 are obviously mixed: What you can do as a workaround is:
The real fix is to understand why you have Anaconda and MSYS2 installed and keep only one to launch Python apps if possible. By the way, WeasyPrint will be available on Anaconda for Windows soon (see conda-forge/weasyprint-feedstock#18), that may be useful for you 😉. |
I don't recommend this -- MSYS2 Python is special. It's working well from within the MSYS shell, but unexpected things happen if you treat it like a regular Windows Python. I'd recommend staying with the Anaconda Python. @Arwa720 already successfully installed the WeasyPrint module: |
@Tontyna Yes I did insert a path. |
@Arwa720 You probably closed and restarted your command prompt/shell/environment -- without restart they usually don't notice changed Windows environment variables. |
@Tontyna Maybe but I don't think so, because I restarted the pc as one of the solutions but it did not work as well previously |
I ran into this issue as well, more on that here. |
Traceback (most recent call last):
File "C:\Users\SAJAN\AppData\Local\Programs\Python\Python38-32\resume-maker-master\app\make.py", line 1, in
from weasyprint import HTML
ModuleNotFoundError: No module named 'weasyprint'
please lookup this why this getting module not found but, i have already install weasyprint
The text was updated successfully, but these errors were encountered: