Package: python3-pywatchman
Version: 4.9.0-6+b2
Severity: important

Hi,

With Python 3.10 now the default Python version pywatchman no longer works:

Python 3.10.4 (main, Apr  2 2022, 09:04:19) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywatchman
>>> client = pywatchman.client(timeout=0.1)
>>> client.capabilityCheck()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/pywatchman/__init__.py", line 1071, in 
capabilityCheck
    res = self.query('version', {
  File "/usr/lib/python3/dist-packages/pywatchman/__init__.py", line 1048, in 
query
    self._connect()
  File "/usr/lib/python3/dist-packages/pywatchman/__init__.py", line 917, in 
_connect
    self.sockpath = self._resolvesockname()
  File "/usr/lib/python3/dist-packages/pywatchman/__init__.py", line 904, in 
_resolvesockname
    result = bser.loads(stdout)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

While it's still ok with 3.9:

Python 3.9.12 (main, Mar 24 2022, 13:02:21)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywatchman
>>> client = pywatchman.client(timeout=0.1)
>>> client.capabilityCheck()
{'capabilities': {}, 'version': '4.9.0'}

----

This had been reported upstream as 
https://github.com/facebook/watchman/issues/970
and there is a fix in
  
https://github.com/facebook/watchman/commit/6813a948fee72a15acf4120262d37c9c8dc3f16b

(but no new release)



Thanks,


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.16.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pywatchman depends on:
ii  libc6       2.33-7
ii  python3     3.10.4-1
ii  python3.10  3.10.4-3
ii  watchman    4.9.0-6+b2

python3-pywatchman recommends no packages.

python3-pywatchman suggests no packages.

-- no debconf information

Reply via email to