From nobody Tue May 09 20:01:55 2023 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QG8FH6BLBz49Qf9 for ; Tue, 9 May 2023 20:01:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QG8FH3sMkz3Crs for ; Tue, 9 May 2023 20:01:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683662515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9rQrf1x7nTbfDRRDVqBD6BdLBE4CuH4Y9ICmu1RyZtc=; b=n3YvrayuRizB1n9XAu0gvxjuGxY2G6G/WXKsgJWQV+qwt3QlJLEPoasMZZl/inOa3qUv9l FJW/5mB1FrFgj1oQCm1Funxagl3Kq+CiH8BSMCm833BJ/v2AlLGiJO6/7MrDfDVpVc7ibA t7qQAU7UoehXzEru0TGDkhtiq8RzbvkDmfSh22jhbm2oDeM8Ck8wbpVHLgDQJtxnIeB3x8 RBFdF5/MobInOSvBz7odKwNlZAnKvT7fle3/ioz9lICnmal0icF5BZ5sb7QBhxOC614Yhw vNBEnRWEhpQ0Nl0UClwTJDvBQCvN0mGeHNr/qH0SRv+zwD1e66UO7/XOmgPdSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683662515; a=rsa-sha256; cv=none; b=t52f7Q80YNLUN/Tvxo4PZ9aM4RpMwo655yJNsCTYSpV+sFzKceHHK9Q2+pKR1V9NXGNs3a wBPrH15Sul42TnRYhyL98iEynfrwKUZn/KVqD2WqmhEWCQR5MXedUxH3WkQraYZW/oaxZJ ozkplu6hcSJLD5f89bsJ3s/7/gJCrU9VQY6fYWFM2OkN5EHpeBTMxo1wY30pbjw04xuAmi NGTUrOX/697xweq+DwocqGI4ii9PVUPWGdVSwBB/O0PFQw4ftXIB4OLx/6L70L5vwKghFH siYoy+WiixQFjooWFjswQmJ1pPwxOw4yjZm1BlNCesxaSHruD6Wq3yNeesamew== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QG8FH2xCnzh0N for ; Tue, 9 May 2023 20:01:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 349K1t45082991 for ; Tue, 9 May 2023 20:01:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 349K1tVu082990 for python@FreeBSD.org; Tue, 9 May 2023 20:01:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 271116] net-im/py-matrix-synapse 1.82.0 should probably require devel/py-simplejson Date: Tue, 09 May 2023 20:01:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: lwhsu@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271116 --- Comment #2 from Li-Wen Hsu --- The full Traceback: Traceback (most recent call last): File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/site-packages/synapse/app/homeserver.py", = line 37, in from synapse.app import _base File "/usr/local/lib/python3.9/site-packages/synapse/app/_base.py", line = 75, in from synapse.module_api.callbacks.spamchecker_callbacks import load_legacy_spam_checkers File "/usr/local/lib/python3.9/site-packages/synapse/module_api/__init__.= py", line 73, in from synapse.http.client import SimpleHttpClient File "/usr/local/lib/python3.9/site-packages/synapse/http/client.py", line 32, in import treq File "/usr/local/lib/python3.9/site-packages/treq/__init__.py", line 5, in from treq.api import head, get, post, put, patch, delete, request File "/usr/local/lib/python3.9/site-packages/treq/api.py", line 5, in from treq.client import HTTPClient File "/usr/local/lib/python3.9/site-packages/treq/client.py", line 37, in from treq.response import _Response File "/usr/local/lib/python3.9/site-packages/treq/response.py", line 7, in from requests.cookies import cookiejar_from_dict File "/usr/local/lib/python3.9/site-packages/requests/__init__.py", line = 45, in from .exceptions import RequestsDependencyWarning File "/usr/local/lib/python3.9/site-packages/requests/exceptions.py", lin= e 9, in from .compat import JSONDecodeError as CompatJSONDecodeError File "/usr/local/lib/python3.9/site-packages/requests/compat.py", line 40= , in from simplejson import JSONDecodeError ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (unknown location) /usr/local/etc/rc.d/synapse: WARNING: failed to start synapse However, in /usr/local/lib/python3.9/site-packages/requests/compat.py 30 # json/simplejson module import resolution 31 has_simplejson =3D False 32 try: 33 import simplejson as json 34=20=20 35 has_simplejson =3D True 36 except ImportError: 37 import json 38=20=20 39 if has_simplejson: 40 from simplejson import JSONDecodeError 41 else: 42 from json import JSONDecodeError It should work even simplejson does not exist. --=20 You are receiving this mail because: You are on the CC list for the bug.=