Как получить ldcoe5viewer в системе Windows [закрыто]Python

Программы на Python
Ответить
Anonymous
 Как получить ldcoe5viewer в системе Windows [закрыто]

Сообщение Anonymous »

В репозитории GitHub:
https://github.com/WikiNeo/ldoce5viewer-pyside6
https://github.com/ciscorn/ldoce5viewer
https://github.com/purboo/ldoce5viewer-pyqt5
https://github.com/mike4420/ldoce5viewer-pyqt5
Информации о сборке для Windows нет. также я не смог найти никаких ресурсов для этого. Мне нужен этот словарь на ПК, поэтому я ценю хорошо документированное руководство по компиляции этого пакета.
Согласно https://github.com/WikiNeo/ldoce5viewer ... stallation, я получаю сообщение об ошибке:
PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6> uv sync
Using CPython 3.14.3
Creating virtual environment at: .venv
Resolved 14 packages in 1ms
Built ldoce5viewer-pyside6 @ file:///C:/my-document/firefox-download/my-code/ldoce5viewer-pyside6 x Failed to build `lxml==6.0.0`
|-> The build backend returned an error
`-> Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit code: 1)

[stdout]
Building lxml version 6.0.0.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running bdist_wheel
running build
running build_py
copying src\lxml\builder.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\doctestcompare.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\ElementInclude.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\_elementpath.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\__init__.py -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\includes\__init__.py -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\html\builder.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\clean.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\defs.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\diff.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\_difflib.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win-amd64-cpython-314\lxml\html
copying src\lxml\isoschematron\__init__.py -> build\lib.win-amd64-cpython-314\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\etree_api.h -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\etree.pyx -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\objectify.pyx -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\apihelpers.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\classlookup.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\cleanup.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\debug.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\docloader.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\dtd.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\extensions.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\iterparse.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\nsclasses.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\objectpath.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\parser.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\parsertarget.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\proxy.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\public-api.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\readonlytree.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\relaxng.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\saxparser.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\schematron.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\serializer.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xinclude.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xmlerror.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xmlid.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xmlschema.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xpath.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xslt.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\xsltext.pxi -> build\lib.win-amd64-cpython-314\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\__init__.pxd -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-cpython-314\lxml\includes
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt ->
build\lib.win-amd64-cpython-314\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
C:\my-document\software--install\Visual-studio--install\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe
/c /nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc
-Isrc\lxml\includes -IC:\Users\sky\AppData\Local\uv\cache\builds-v0\.tmpHDo0R6\include
-IC:\Users\sky\AppData\Roaming\uv\python\cpython-3.14-windows-x86_64-none\include
-IC:\Users\sky\AppData\Roaming\uv\python\cpython-3.14-windows-x86_64-none\Include
-IC:\my-document\software--install\Visual-studio--install\VC\Tools\MSVC\14.43.34808\include
-IC:\my-document\software--install\Visual-studio--install\VC\Tools\MSVC\14.43.34808\ATLMFC\include
-IC:\my-document\software--install\Visual-studio--install\VC\Auxiliary\VS\include "-IC:\Program
Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows
Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared"
"-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows
Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um"
/Tcsrc\lxml\etree.c /Fobuild\temp.win-amd64-cpython-314\Release\src\lxml\etree.obj -w
etree.c
C:\Users\sky\AppData\Local\uv\cache\sdists-v9\pypi\lxml\6.0.0\CfPY47-S_-Odg22kF1g1h\src\src\lxml\includes/etree_defs.h(12):
fatal error C1083: �޷��򿪰����ļ�: ��libxml/xmlversion.h��: No such file or directory
Compile failed: command
'C:\\my-document\\software--install\\Visual-studio--install\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX86\\x64\\cl.exe'
failed with exit code 2
C:\my-document\software--install\Visual-studio--install\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\cl.exe
/c /nologo /O2 /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2
-IC:\my-document\software--install\Visual-studio--install\VC\Tools\MSVC\14.43.34808\include
-IC:\my-document\software--install\Visual-studio--install\VC\Tools\MSVC\14.43.34808\ATLMFC\include
-IC:\my-document\software--install\Visual-studio--install\VC\Auxiliary\VS\include "-IC:\Program
Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows
Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared"
"-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows
Kits\NETFXSDK\4.8\include\um" /TcC:\Users\sky\AppData\Local\Temp\xmlXPathInit7d0jjj05.c
/FoUsers\sky\AppData\Local\Temp\xmlXPathInit7d0jjj05.obj
xmlXPathInit7d0jjj05.c
C:\Users\sky\AppData\Local\Temp\xmlXPathInit7d0jjj05.c(1): fatal error C1083: �޷��򿪰����ļ�: ��libxml /xpath.h��:
No such file or directory
*********************************************************************************
Could not find function xmlXPathInit in library libxml2. Is libxml2 installed?
Is your C compiler installed and configured correctly?
*********************************************************************************

[stderr]
C:\Users\sky\AppData\Local\uv\cache\builds-v0\.tmpHDo0R6\Lib\site-packages\setuptools\dist.py:765:
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:

License :: OSI Approved :: BSD License

See https://packaging.python.org/en/latest/ ... l/#license for details.
********************************************************************************

!!
self._finalize_license_expression()
cl: ������ warning D9025 :������д��/W3��(�á�/w��)
error: command
'C:\\my-document\\software--install\\Visual-studio--install\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX86\\x64\\cl.exe'
failed with exit code 2

hint: This usually indicates a problem with the package or the build environment.
help: `lxml` (v6.0.0) was included because `ldoce5viewer-pyside6` (v0.1.0) depends on `lxml`
PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6>

Когда я запускаю команду, которую дает @AndrasDeak--СлаваУкраїни, я тоже получаю ошибку:
PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6> uv venv venv_ldoce5viewer
Using CPython 3.14.3
Creating virtual environment at: venv_ldoce5viewer
Activate with: venv_ldoce5viewer\Scripts\activate
PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6> venv_ldoce5viewer\Scripts\activate
(venv_ldoce5viewer) PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6> uv pip install .
Using Python 3.14.3 environment at: venv_ldoce5viewer
Resolved 8 packages in 930ms
Built ldoce5viewer-pyside6 @ file:///C:/my-document/firefox-download/my-code/ldoce5viewer-pyside6
Prepared 1 package in 2.77s
Installed 8 packages in 2.18s
+ ldoce5viewer-pyside6==0.1.0 (from file:///C:/my-document/firefox-download/my-code/ldoce5viewer-pyside6)
+ lxml==6.0.2
+ pyside6==6.8.3
+ pyside6-addons==6.8.3
+ pyside6-essentials==6.8.3
+ setuptools==82.0.0
+ shiboken6==6.8.3
+ whoosh==2.7.4
(venv_ldoce5viewer) PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6> python ldoce5viewer.py
Traceback (most recent call last):
File "C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6\ldoce5viewer.py", line 6, in
from ldoce5viewer import qtgui
File "C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6\ldoce5viewer\qtgui\__init__.py", line 13, in
from .access import register_url_schemes
File "C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6\ldoce5viewer\qtgui\access.py", line 16, in
from .advanced import search_and_render
File "C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6\ldoce5viewer\qtgui\advanced.py", line 16, in
from .ui.advanced import Ui_Dialog
File "C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6\ldoce5viewer\qtgui\ui\__init__.py", line 1, in
from . import advanced, indexer, main
ImportError: cannot import name 'advanced' from partially initialized module 'ldoce5viewer.qtgui.ui' (most likely due to a circular import) (C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6\ldoce5viewer\qtgui\ui\__init__.py)
(venv_ldoce5viewer) PS C:\my-document\firefox-download\my-code\ldoce5viewer-pyside6>


Подробнее здесь: https://stackoverflow.com/questions/799 ... ows-system
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»