Package Details: python-js2py 0.74-3

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)

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-pyjsparser does not work with Python 3.14, and the changes needed to fix it appear to be non-trivial.

Latest 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-pyjsparser does not work with Python 3.14, and the changes needed to fix it appear to be non-trivial.

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