Subject: libxml2 and python not happy... solution downgrade libxml2
From: Jason Pyeron via Cygwin <[email-masked]>
To: <[email-masked]>
Date: Tue, 9 May 2023 18:33:26 -0400
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>

$ virt-manager
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 35, in <module>
    from virtinst import util as util
  File "/usr/share/virt-manager/virtinst/__init__.py", line 18, in <module>
    from virtcli import CLIConfig as _CLIConfig
  File "/usr/share/virt-manager/virtcli/__init__.py", line 3, in <module>
    from .cliconfig import CLIConfig
  File "/usr/share/virt-manager/virtcli/cliconfig.py", line 24, in <module>
    import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'

$ cat -n test.py
     1  #!/usr/bin/env python2
     2
     3  import libxml2

$ ./test.py
Traceback (most recent call last):
  File "./test.py", line 3, in <module>
    import libxml2
  File "/usr/lib/python2.7/site-packages/libxml2.py", line 1, in <module>
    import libxml2mod
ImportError: No such process

$ cygcheck -l libxml2 python27-libxml2
/etc/postinstall/libxml2.sh
/usr/bin/cygxml2-2.dll
/usr/bin/xmlcatalog.exe
/usr/bin/xmllint.exe
/usr/share/man/man1/xmlcatalog.1.gz
/usr/share/man/man1/xmllint.1.gz
/usr/lib/python2.7/site-packages/drv_libxml2.py
/usr/lib/python2.7/site-packages/drv_libxml2.pyc
/usr/lib/python2.7/site-packages/drv_libxml2.pyo
/usr/lib/python2.7/site-packages/libxml2.py
/usr/lib/python2.7/site-packages/libxml2.pyc
/usr/lib/python2.7/site-packages/libxml2.pyo
/usr/lib/python2.7/site-packages/libxml2mod.dll

$ cygcheck -c libxml2 python27-libxml2
Cygwin Package Information
Package              Version        Status
libxml2              2.10.4-2       OK
python27-libxml2     2.9.10-2       OK

#downgrade libxml2...

$ cygcheck -c libxml2 python27-libxml2
Cygwin Package Information
Package              Version        Status
libxml2              2.9.10-2       OK
python27-libxml2     2.9.10-2       OK

jpyeron@blackfat ~
$ ./test.py

jpyeron@blackfat ~
$ virt-manager

--
Jason Pyeron  | Architect
PD Inc        | Certified SBA 8(a)
10 w 24th St  | Certified SBA HUBZone
Baltimore, MD | CAGE Code: 1WVR6
 
.mil: [email-masked]
.com: [email-masked]
tel : 202-741-9397

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple