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

_lzma.LZMAError: Input format not supported by decoder #30

Open
RicoTarascio opened this issue Aug 30, 2024 · 8 comments
Open

_lzma.LZMAError: Input format not supported by decoder #30

RicoTarascio opened this issue Aug 30, 2024 · 8 comments

Comments

@RicoTarascio
Copy link

Hey, just cloned the repo, I get this error when trying to run example_runner.py

File "/Users/rico/Projects/pokemon-card-recognizer/example_runner.py", line 18, in <module>
    pipeline = CardRecognizer(
               ^^^^^^^^^^^^^^^
  File "/Users/rico/Projects/pokemon-card-recognizer/pokemon_card_recognizer/api/card_recognizer.py", line 30, in __init__
    self.classifier = WordClassifier(
                      ^^^^^^^^^^^^^^^
  File "/Users/rico/Projects/pokemon-card-recognizer/pokemon_card_recognizer/classifier/core/word_classifier.py", line 40, in __init__
    self.reference = CardReference.load_from_pickle(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/site-packages/algo_ops/pickleable_object/pickleable_object.py", line 61, in load_from_pickle
    loaded_obj = pickle.load(fin)
                 ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/lzma.py", line 191, in peek
    return self._buffer.peek(size)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/_compression.py", line 68, in readinto
    data = self.read(len(byte_view))
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/_compression.py", line 103, in read
    data = self._decompressor.decompress(rawblock, size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_lzma.LZMAError: Input format not supported by decoder

Do you have any thoughts on why this is happening, kinda new to this kind of software so any help il very much appreciated!

@prateekt
Copy link
Owner

What operating system are you running on?

@RicoTarascio
Copy link
Author

MacBook Air M2
macOS Sonoma 14.5

@AndyMatt
Copy link

I got the same error, I was using Ubuntu through WLS2
Looks like when I checked out the repo the pkl files didn't match the repo,

e.g. here is the contents of the rising_rivals.pkl
"version https://git-lfs.github.com/spec/v1
oid sha256:6ab71663c4df53fb9e87a099cc5a2f2268fb4a75c1585c038c0582e22b1024e4
size 34956"

I have never seen Git behave this way, will look into it and post an update when I know more

@prateekt
Copy link
Owner

Very strange. Let me know how it goes. I use Git LFS for storing the reference models.

@chuiizeet
Copy link

Hey, just cloned the repo, I get this error when trying to run example_runner.py

File "/Users/rico/Projects/pokemon-card-recognizer/example_runner.py", line 18, in <module>
    pipeline = CardRecognizer(
               ^^^^^^^^^^^^^^^
  File "/Users/rico/Projects/pokemon-card-recognizer/pokemon_card_recognizer/api/card_recognizer.py", line 30, in __init__
    self.classifier = WordClassifier(
                      ^^^^^^^^^^^^^^^
  File "/Users/rico/Projects/pokemon-card-recognizer/pokemon_card_recognizer/classifier/core/word_classifier.py", line 40, in __init__
    self.reference = CardReference.load_from_pickle(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/site-packages/algo_ops/pickleable_object/pickleable_object.py", line 61, in load_from_pickle
    loaded_obj = pickle.load(fin)
                 ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/lzma.py", line 191, in peek
    return self._buffer.peek(size)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/_compression.py", line 68, in readinto
    data = self.read(len(byte_view))
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Caskroom/miniforge/base/envs/card_rec_env/lib/python3.11/_compression.py", line 103, in read
    data = self._decompressor.decompress(rawblock, size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_lzma.LZMAError: Input format not supported by decoder

Do you have any thoughts on why this is happening, kinda new to this kind of software so any help il very much appreciated!

+1

@vljukap98
Copy link

image
+1

@prateekt
Copy link
Owner

Very strange. It has been working on my linux machine. Could you send me the specs of the failing machines?

@vljukap98
Copy link

I am on Ubuntu 24.04.01 LTS, as wsl.

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

5 participants