FS#75714 - [python-kikit] Dependency pcbnewTransition is missing
Attached to Project:
Community Packages
Opened by Markus R. (mqus) - Sunday, 28 August 2022, 01:15 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 28 August 2022, 09:23 GMT
Opened by Markus R. (mqus) - Sunday, 28 August 2022, 01:15 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 28 August 2022, 09:23 GMT
|
Details
Description:
python-kikit depends on pcbnewTransition (see https://github.com/yaqwsx/KiKit/blob/bdee246773f96285c39101dc450fec88a80cafff/setup.py#L54) since version 1.0.0. The source can be found here: https://github.com/yaqwsx/pcbnewTransition and it is also uploaded to pip: https://pypi.org/project/pcbnewTransition/ . Please also package this module and add it as a dependency. Thank you! Without this dependency, the library does not work at all. The `kikit` tool will display its help message, but as soon as you try to use it with actual kicad files, it breaks with e.g. the following message: ``` Traceback (most recent call last): File "<input>", line 1, in <module> File "/usr/lib/python3.10/site-packages/kikit/plugin/__init__.py", line 12, in <module> from kikit.common import KIKIT_LIB File "/usr/lib/python3.10/site-packages/kikit/common.py", line 3, in <module> from pcbnewTransition import pcbnew, isV6 ModuleNotFoundError: No module named 'pcbnewTransition' ``` Additional info: * applicable since 1.0.5 (since previous 1.0 releases were not published in archlinux) * no necessary config files * no upstream bug report since this is an archlinux problem Steps to reproduce: 1. install python-kikit 2. run `kikit-info` ``` $ kikit-info Traceback (most recent call last): File "/usr/bin/kikit-info", line 33, in <module> sys.exit(load_entry_point('KiKit==0.0.0', 'console_scripts', 'kikit-info')()) File "/usr/bin/kikit-info", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load module = import_module(match.group('module')) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/kikit/info.py", line 2, in <module> from pcbnewTransition import KICAD_VERSION, isV6 ModuleNotFoundError: No module named 'pcbnewTransition' ``` |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 28 August 2022, 09:23 GMT
Reason for closing: Fixed
Additional comments about closing: python-kikit 1.0.5-2
Sunday, 28 August 2022, 09:23 GMT
Reason for closing: Fixed
Additional comments about closing: python-kikit 1.0.5-2