Python CFFI module fails when loading dll: OSError 0x7e

I run Python 3.3 (Anaconda distribution) under Windows 7, 64-bit. I have attempted to install the Weasyprint app/library, which has a number of dependencies, including CFFI, which I had to compile...

Python: OSError: cannot load library libcairo.so.2

I'm having some trouble running a python script on my Windows 7 platform. I've installed Python and also cairo, last one using "pip". I'm running the script using this...

How to pip install cairocffi?

How do I install cairocffi through pip? cairocffi is a CFFI-based drop-in replacement for Pycairo https://github.com/SimonSapin/cairocffi. I'm trying to install it on Ubuntu 14.04: [email protected]:~$...

dlopen() failed to load a library: cairo / cairo-2

This is my view: from django.conf import settings from django.http import HttpResponse from django.template.loader import render_to_string import weasyprint @staff_member_required def...

Getting "OSError: dlopen() failed to load a library: cairo / cairo-2" on Windows

I'm getting OSError: dlopen() failed to load a library: cairo / cairo-2 when trying to execute Django after a new install. Using Windows. I'm using Weasyprint, seems to be related to that one,...

Python matplotlib install issue on Windows 7 for freetype, png packages

Using Python 2.7 on Windows 7. Here is the command I am using to install and error message. Wondering if anyone have met with similar issues before? Thanks. C:\Python27\Scripts>pip install...

I can't install matplotlib

Collecting matplotlib Using cached matplotlib-1.5.2.tar.gz Complete output from command python setup.py egg_info: ...

Installed cairosvg and cairocffi but gives error on import

When I try to install cairosvg it says requirement satisfied. Requirement already satisfied: cairosvg in c:\users\kshitij\appdata\local\programs\python\python35\lib\site-packages Requirement...

How can I use the Keras OCR example?

I found examples/image_ocr.py which seems to for OCR. Hence it should be possible to give the model an image and receive text. However, I have no idea how to do so. How do I feed the model with a...

Pyinstaller libmkl_intel_thread.so: undefined symbol: omp_get_num_procs

I am programming a data evaluation tool in python for my PhD thesis and want to distribute it in our working group. For this reason I am trying to compile it with pyinstaller but am failing so...

ImportError: No module named 'config.settings'; 'config' is not a package

I'm trying to get my cookiecutter-django app running under Apache with mod_wsgi installed via pip. python3 manager.py runserver works. But after running it in Apache, I got an error saying Module...

Weasyprint get undefined property at invoking write_pdf: "AttributeError: 'PosixPath' object has no attribute 'read_text'"

I'm running weasyprint project on ubuntu 18.04 and I try to create a a pdf. The problem started when I try to set a footer image. I'm running on python 3.6.7 This is my code invoking...

name "model" is not defined Keras

I have this error while saving mode: NameError Traceback (most recent call last) in () ----> 1 Model.save(model, filepath="image_ocr/model.h5") NameError: name...

Install needed libraries for Weasyprint on pipenv (Windows environment)

In order to start generating documents with Weasyprint I installed it on my Windows machine following these...

How to resolve Cairo and Pango version problems following pip WeasyPrint installation?

I want to run some Python code from the WeasyPrint library on a server running Debian GNU/Linux 8. The code actually appears to be working, except WeasyPrint gives a warning every time the code is...

resolve pipenv install weasyprint error in Docker

I'm using Alpine linux for my Docker setup. Here is the Dockerfile. # pull official base image FROM python:3.7.4-alpine # set work directory WORKDIR /usr/src/app # set environment variables ENV...

How do you resolve egg_info error when installing feature_selector in Jupyter Notebook?

I am using Anaconda: Jupyter Notebook. I am trying to install feature_selector. At first, I ran: from feature_selector import FeatureSelector. However, it says "No module named feature_selector",...

How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install FOMMRIA

I am trying to install FOMMRIA using pip but it keeps running into an error. I haven't found anything specific to my problem, so I'm hoping I can get some help here. I'm starting to think it's my...

pip install error, freetype and libpng missing (Windows)

I have downloaded a repo from github and am trying to install the requirements in a venv. It's telling me freetype and libpng libraries are missing, so I went to the websites and installed them....

Why my pyinstaller python program crashes when double-clicked and not when cmd run

I hope you can help me with this one ! I am building a standalone app from python with pyinstaller. The app works well when I run it from my anaconda prompt. However when I run it by double...

Tried using pip to install visualization

So, I tried installing the visualization module (https://pypi.org/project/visualization/) in python using the pip install visualization from which I get this output - Collecting...

ERROR: Command errored out with exit status 1 in cmd

This is the error I get when trying to (venv) $ pip install flask python-dotenv python-chess cairosvg twilio in cmd, I'm using python 3.8. Any idea on how to fix it? ERROR: Command errored out...

django projects(saleor) python manage.py migrate error message

Hello Guys I tried to migrate using the command python manage.py migrate and I got this error am done with the set of my environment and I also cloned the saleor reporsitory on github but am still...

No matching distribution found for django==3.1.1 (from -r requirements.txt (line 23))

i am using ubuntu using terminal i am trying to install python and django i have installed python successfully but when i do pip3 install -r requirements.txt its showing this error :- WARNING:...

Getting ModuleNotFoundError: No module named 'cairo' error after installing matplotlib successfully

I'm referring this Random Forest Algorithem to predict rejection in different stages. But I'm getting error while importing matplotlib: import matplotlib.pyplot as plt Full Traceback...

Deploying Flask to AWS fails, requirement.txt returned non-zero exit status 1

Deploying to AWS failed, requirement.txt returned non-zero exit status 1 I get the following error when trying to deploy my Flask app on AWS beanstalk with python 3.6: I checked this similar post...

Docker build timeouts on AWS Beanstalk for Python app

I have a Python2/Django application running on AWS Beanstalk. I use Dockerfile for deployment. Everything was working fine until I added firebase-admin==3.2.1 dependency to my requirements.txt....

Trouble installing turbodbc

I am attempting to install turbodbc on my Ubuntu 20.10 machine. My specs are as follows: pip 20.2.4, Python 3.8.5 , gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0 I have attempted the solutions provided in...

How can I convert big python project to exe file?

I have a Python Qt GUI which is using these modules: "Numpy, scipy, matplotlib-base, netcdf4, cartopy, xarray, pytest, gdal, cycler, dateutil, kiwisolver, pillow, pyparsing, tk, PyQt5, pycairo,...

Conflicting with version dependencies when running pip install

Having issues with version dependencies when running pip install on docker. However, when installing on my mac without docker and just virtualenv, works perfectly fine. These are the versions I...

Relevant tags