Skip to content

tesseract --version not working #28

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

Closed
dionhaefner opened this issue Feb 25, 2025 · 0 comments · Fixed by #30
Closed

tesseract --version not working #28

dionhaefner opened this issue Feb 25, 2025 · 0 comments · Fixed by #30
Assignees
Labels
bug Something isn't working

Comments

@dionhaefner
Copy link
Contributor

Description

It should

Steps to reproduce

$ tesseract --version

Logs

Uncaught error: cannot import name '__version__' from 'tesseract_core.sdk' (/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/tesseract_core/sdk/__init__.py)
Traceback (most recent call last):
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/tesseract_core/sdk/cli.py", line 826, in entrypoint
    result = app()
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/typer/main.py", line 340, in __call__
    raise e
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/typer/main.py", line 323, in __call__
    return get_command(self)(*args, **kwargs)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/typer/core.py", line 743, in main
    return _main(
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/typer/core.py", line 197, in _main
    with self.make_context(prog_name, args, **extra) as ctx:
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/click/core.py", line 949, in make_context
    self.parse_args(ctx, args)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/click/core.py", line 1653, in parse_args
    rest = super().parse_args(ctx, args)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/click/core.py", line 1417, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/click/core.py", line 2403, in handle_parse_result
    value = self.process_value(ctx, value)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/click/core.py", line 2365, in process_value
    value = self.callback(ctx, self, value)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/typer/main.py", line 1012, in wrapper
    return callback(**use_params)
  File "/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/tesseract_core/sdk/cli.py", line 137, in version_callback
    from . import __version__
ImportError: cannot import name '__version__' from 'tesseract_core.sdk' (/Users/dion/.virtualenvs/tempenv-1703282206650/lib/python3.10/site-packages/tesseract_core/sdk/__init__.py)
Aborting

OS

Mac

Tesseract version

v0.7.0

@dionhaefner dionhaefner added the bug Something isn't working label Feb 25, 2025
@heitorPB heitorPB self-assigned this Feb 25, 2025
heitorPB added a commit that referenced this issue Feb 25, 2025
Fix #28

Signed-off-by: Heitor Pascoal de Bittencourt <[email protected]>
@heitorPB heitorPB mentioned this issue Feb 25, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants