VitoScaletta
Active member
Привет, ребята.
Установил только что библиотеку QT-PyQt-PySide-Custom-Widgets для PyQt, но сразу же на начале наткнулся на проблему.
В общем, интерпретатор выдаёт подобную ошибку, когда пытаюсь импортировать эту библиотеку (хоть и pip установил всё... вроде бы...):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\Custom_Widgets\__init__.py", line 16, in <module>
from .Qss import SassCompiler
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\Custom_Widgets\Qss\SassCompiler.py", line 39, in <module>
from . SvgToPngIcons import NewIconsGenerator
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\Custom_Widgets\Qss\SvgToPngIcons.py", line 1, in <module>
import cairosvg
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairosvg\__init__.py", line 26, in <module>
from . import surface # noqa isort:skip
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairosvg\surface.py", line 9, in <module>
import cairocffi as cairo
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairocffi\__init__.py", line 49, in <module>
('libcairo.so.2', 'libcairo.2.dylib', 'libcairo-2.dll'))
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairocffi\__init__.py", line 44, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo-2" was found
no library called "cairo" was found
cannot load library 'C:\Program Files (x86)\GtkSharp\2.12\bin\libcairo-2.dll': error 0xc1
cannot load library 'libcairo.so.2': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2'
cannot load library 'libcairo.2.dylib': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.2.dylib'
cannot load library 'C:\Program Files (x86)\GtkSharp\2.12\bin\libcairo-2.dll': error 0xc1
Подскажите пожалуйста, что мне делать?
Установил только что библиотеку QT-PyQt-PySide-Custom-Widgets для PyQt, но сразу же на начале наткнулся на проблему.
В общем, интерпретатор выдаёт подобную ошибку, когда пытаюсь импортировать эту библиотеку (хоть и pip установил всё... вроде бы...):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\Custom_Widgets\__init__.py", line 16, in <module>
from .Qss import SassCompiler
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\Custom_Widgets\Qss\SassCompiler.py", line 39, in <module>
from . SvgToPngIcons import NewIconsGenerator
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\Custom_Widgets\Qss\SvgToPngIcons.py", line 1, in <module>
import cairosvg
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairosvg\__init__.py", line 26, in <module>
from . import surface # noqa isort:skip
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairosvg\surface.py", line 9, in <module>
import cairocffi as cairo
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairocffi\__init__.py", line 49, in <module>
('libcairo.so.2', 'libcairo.2.dylib', 'libcairo-2.dll'))
File "C:\Users\111\AppData\Local\Programs\Python\Python37\lib\site-packages\cairocffi\__init__.py", line 44, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo-2" was found
no library called "cairo" was found
cannot load library 'C:\Program Files (x86)\GtkSharp\2.12\bin\libcairo-2.dll': error 0xc1
cannot load library 'libcairo.so.2': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2'
cannot load library 'libcairo.2.dylib': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.2.dylib'
cannot load library 'C:\Program Files (x86)\GtkSharp\2.12\bin\libcairo-2.dll': error 0xc1
Подскажите пожалуйста, что мне делать?