Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to get blabel going
#2
(Mar-10-2020, 10:33 AM)KipCarter Wrote: another solution for printing QR code
check if these will work for you

https://pypi.org/project/qrcode/
https://pypi.org/project/PyQRCodeNG/

EDIT: looking at blabel setup.py - it uses qrcode.
I don't see gobject listed as requirement, though.

Remind me - you were on Windows or Linux?
I tried to install blabel on Windows and it went OK.
When I run it I get following error
Error:
Traceback (most recent call last): File "c:\some_path\somefile.py", line 1, in <module> from blabel import LabelWriter File "c:\some_path\lib\site-packages\blabel\__init__.py", line 5, in <module> from .blabel import LabelWriter File "c:\some_path\lib\site-packages\blabel\blabel.py", line 6, in <module> from weasyprint import HTML File "c:\some_path\lib\site-packages\weasyprint\__init__.py", line 440, in <module> from .css import preprocess_stylesheet # noqa isort:skip File "c:\some_path\lib\site-packages\weasyprint\css\__init__.py", line 30, in <module> from . import computed_values, media_queries File "c:\some_path\lib\site-packages\weasyprint\css\computed_values.py", line 18, in <module> from .. import text File "c:\some_path\lib\site-packages\weasyprint\text.py", line 14, in <module> import cairocffi as cairo File "c:\some_path\lib\site-packages\cairocffi\__init__.py", line 50, in <module> ('libcairo.so', 'libcairo.2.dylib', 'libcairo-2.dll')) File "c:\some_path\lib\site-packages\cairocffi\__init__.py", line 45, in dlopen raise OSError(error_message) # pragma: no cover OSError: no library called "cairo" was found no library called "libcairo-2" was found cannot load library 'libcairo.so': error 0x7e cannot load library 'libcairo.2.dylib': error 0x7e cannot load library 'libcairo-2.dll': error 0x7e
It is known, closed issue: https://github.com/Edinburgh-Genome-Foun...l/issues/1

The problem is with cairocffi. There is requirement https://cairocffi.readthedocs.io/en/stab...on-windows

I am not able to install it on windows right now, but also I don't face qobject requirement (at least so far)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Trying to get blabel going - by KipCarter - Mar-10-2020, 10:33 AM
RE: Trying to get blabel going - by buran - Mar-10-2020, 10:50 AM
RE: Trying to get blabel going - by KipCarter - Mar-10-2020, 11:28 AM
RE: Trying to get blabel going - by KipCarter - Mar-10-2020, 01:47 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020