This package will be retired because it is no longer functional and only one package uses it as an optdep. The problem is python-pyjsparser does not work with Python 3.14, and the changes needed to fix it appear to be non-trivial.
Search Criteria
Package Details: python-js2py 0.74-3
Package Actions
| Git Clone URL: | https://aur.archlinux.org/python-js2py.git (read-only, click to copy) |
|---|---|
| Package Base: | python-js2py |
| Description: | JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python |
| Upstream URL: | https://github.com/PiotrDabkowski/Js2Py |
| Licenses: | MIT |
| Submitter: | xiota |
| Maintainer: | xiota |
| Last Packager: | xiota |
| Votes: | 2 |
| Popularity: | 0.000695 |
| First Submitted: | 2024-12-17 22:15 (UTC) |
| Last Updated: | 2025-05-07 02:13 (UTC) |
Dependencies (12)
- python
- python-pyjsparser (python-jsparserAUR)
- python-six
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- python-build (make)
- python-installer (make)
- python-setuptools (make)
- python-tzlocal (make)
- python-wheel (make)
- npm (npm-corepackAUR, python-nodejs-wheelAUR) (check)
- python-numpy (python-numpy-gitAUR, python-numpy-mkl-binAUR, python-numpy1AUR, python-numpy-mkl-tbbAUR, python-numpy-mklAUR) (check)
- python-tzlocal (optional) – for local timezone support
Required by (2)
- python-cloudscraper (check)
- python-cloudscraper (optional)
Sources (8)
Latest Comments
xiota commented on 2026-07-08 20:08 (UTC)
simona commented on 2026-07-08 19:32 (UTC)
Testing ECMA 5...
<string>:1274: SyntaxWarning: 'return' in a 'finally' block
Traceback (most recent call last):
File "/home/simona/.cache/yay/python-js2py/src/js2py/simple_test.py", line 43, in <module>
assert c.esprima.parse('var abc = 40').to_dict() == {'type': 'Program', 'body': [{'type': 'VariableDeclaration', 'kind': 'var', 'declarations': [{'id': {'type': 'Identifier', 'name': 'abc'}, 'type': 'VariableDeclarator', 'init': {'type': 'Literal', 'raw': '40', 'value': 40}}]}], 'sourceType': 'script'}
~^^^^^^^^^^^^^^^^
File "/home/simona/.cache/yay/python-js2py/src/js2py/js2py/base.py", line 1203, in call
return to_python(parent.obj.callprop(meth, args))
^^^^^^^^^^^^^
File "/home/simona/.cache/yay/python-js2py/src/js2py/js2py/base.py", line 996, in callprop
return cand.call(self, args)
~^^^^^^^^^^^^
File "/home/simona/.cache/yay/python-js2py/src/js2py/js2py/base.py", line 1464, in call
return Js(self.code(args))
~^^^^^^^
File "<string>", line 4021, in PyJsHoisted_parse
File "/home/simona/.cache/yay/python-js2py/src/js2py/js2py/base.py", line 949, in call
return self.call(self.GlobalObject, args)
~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/simona/.cache/yay/python-js2py/src/js2py/js2py/base.py", line 1464, in call
return Js(self.code(*args))
~~~^^^^^^^
File "<string>", line 3875, in PyJsHoisted_parseProgram_
Davidasx commented on 2026-01-31 14:01 (UTC) (edited on 2026-01-31 14:01 (UTC) by Davidasx)
What happened to python-pyjsparser?
patlefort commented on 2026-01-10 16:06 (UTC)
Dependency python-pyjsparser no longer exists.
Auerhuhn commented on 2025-05-06 22:01 (UTC)
@matteoguglielmi That’s an issue on your end. HTTP status code 429 means “too many requests.” The package builds fine for me in a clean chroot.
matteoguglielmi commented on 2025-05-06 20:09 (UTC)
It now fails to compile with the following error:
Resolving deltas: 100% (9820/9820), done.
-> Downloading 0001-js2py-pr293-opt-tzlocal.patch...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1036 100 1036 0 0 2220 0 --:--:-- --:--:-- --:--:-- 4909
-> Downloading 0002-js2py-pr327-python3.12.patch...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 429
Warning: Problem : HTTP error. Will retry in 3 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 429
Warning: Problem : HTTP error. Will retry in 3 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 429
Warning: Problem : HTTP error. Will retry in 3 seconds. 1 retry left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 429
==> ERROR: Failure while downloading https://github.com/PiotrDabkowski/Js2Py/pull/327.patch
Aborting...
Auerhuhn commented on 2024-12-22 16:18 (UTC)
Needs an updated patch for Python 3.13 (rebuilding won’t help):
Traceback (most recent call last):
File "/build/python-js2py/src/js2py/simple_test.py", line 1, in <module>
import js2py
File "/build/python-js2py/src/js2py/js2py/__init__.py", line 72, in <module>
from .base import PyJsException
File "/build/python-js2py/src/js2py/js2py/base.py", line 6, in <module>
from .utils.injector import fix_js_args
File "/build/python-js2py/src/js2py/js2py/utils/injector.py", line 266, in <module>
check(six.get_function_code(check))
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/python-js2py/src/js2py/js2py/utils/injector.py", line 253, in check
raise RuntimeError(
'Your python version made changes to the bytecode')
RuntimeError: Your python version made changes to the bytecode
Pinned Comments
xiota commented on 2026-07-08 20:08 (UTC)
This package will be retired because it is no longer functional and only one package uses it as an optdep. The problem is
python-pyjsparserdoes not work with Python 3.14, and the changes needed to fix it appear to be non-trivial.