Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chameleon extraction fails for Chameleon 4.4.0 #111

Open
Estartu opened this issue Dec 18, 2023 · 0 comments
Open

Chameleon extraction fails for Chameleon 4.4.0 #111

Estartu opened this issue Dec 18, 2023 · 0 comments

Comments

@Estartu
Copy link

Estartu commented Dec 18, 2023

The constuctor of ElementProgram has changed with 4.4 and lingua reports

  File "venv/bin/pot-create", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "venv/lib/python3.11/site-packages/lingua/extract.py", line 426, in main
    for message in extractor(real_filename, extractor_options):
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.11/site-packages/lingua/extractors/xml.py", line 143, in __call__
    ElementProgram.__init__(self, source, filename=filename)
TypeError: ElementProgram.__init__() got an unexpected keyword argument 'filename'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant