FS#69090 - [pysolfc] ModuleNotFoundError: No module named 'validate'

Attached to Project: Community Packages
Opened by Drew Ferguson (blacktav) - Thursday, 24 December 2020, 11:51 GMT
Last edited by Daniel M. Capella (polyzen) - Friday, 25 December 2020, 11:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Alexander F. Rødseth (xyproto)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: pysol fails to start with

Traceback (most recent call last):
File "/usr/bin/pysol", line 36, in <module>
from pysollib.main import main # noqa: E402,I202
File "/usr/lib/python3.9/site-packages/pysollib/main.py", line 30, in <module>
from pysollib.app import Application
File "/usr/lib/python3.9/site-packages/pysollib/app.py", line 45, in <module>
from pysollib.options import Options
File "/usr/lib/python3.9/site-packages/pysollib/options.py", line 41, in <module>
import validate
ModuleNotFoundError: No module named 'validate'

Additional info:
* package version(s) 2.10.1-2

Location of python.configobj has caused a namespace change

Changing line 40 in pysollib/options.py to be

import configobj.validate as validate

allows the program to start

This task depends upon

Closed by  Daniel M. Capella (polyzen)
Friday, 25 December 2020, 11:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed by https://github.com/archlinux/svntogit-co mmunity/commit/6796dda1d14ac19d71b2ae7d0 6d8dfa39388a237#diff-3e341d2d9c67be01819 b25b25d5e53ea3cdf3a38d28846cda85a195eb9b 7203a
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 December 2020, 10:38 GMT
Previously, Python configobj placed Python files directly in /usr/lib/python3.9/site-packages/. Upstream made changes so that they are now placed in /usr/lib/python3.9/site-packages/configobj, which is an improvement. It's unfortunate that the namespace changed, though. I'll look into which other packages might be affected by this.
Comment by loqs (loqs) - Friday, 25 December 2020, 11:23 GMT
See  FS#69061   FS#69057  terminator, khal, khard, and todoman are fixed leaving pysolfc and alot.
You could also package the shim that supplies backwards compatibility [1].

[1] https://bugs.archlinux.org/task/69057#comment195141
Comment by Daniel M. Capella (polyzen) - Friday, 25 December 2020, 11:53 GMT
A large number of packages were unusable due to this change, I went ahead and included the shim thanks to loqs' suggestion.

blacktav, this will be fixed once you've updated your packages.

Loading...