-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The current version of funcparserlib
used in DejaCode is v0.3.6, which is quite outdated—it was released back in 2013.
When attempting to build funcparserlib
from source using the script referenced in #339, the process fails due to syntax incompatibilities with Python 3.13. Specifically, the build returns multiple syntax errors such as:
substituteStream() in derivation python3.13-calver-2025.04.17: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'setup.py')
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/parser.py'...
except NoParseError, e:
SyntaxError: multiple exception types must be parenthesized
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/parser.py'...
except NoParseError, e:
SyntaxError: multiple exception types must be parenthesized
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/dot.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/dot.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/json.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/json.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/test_json.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/test_json.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/test_parsing.py'...
SyntaxError: invalid syntax
*** Error compiling '/nix/store/4dyvmiz4bxrv97z1salr8h7pf3wfqahf-python3.13-funcparserlib-0.3.6/lib/python3.13/site-packages/funcparserlib/tests/test_parsing.py'...
SyntaxError: invalid syntax
calls to avoid build errors in the future.
calls to avoid build errors in the future.
calls to avoid build errors in the future.
These are due to the outdated Python 2-style exception handling and other deprecated constructs that are no longer valid in Python 3.13.
It'll be great if the funcparserlib
can be upgraded to version 1.0.0 to resolve these syntax errors and ensuring compatibility with modern Python versions.
Metadata
Metadata
Assignees
Labels
No labels