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

Exception: unexpected fixed contents: got b'', was waiting for b'GIF' #10

Open
Cesar-mlw opened this issue Jun 25, 2020 · 4 comments
Open

Comments

@Cesar-mlw
Copy link

There seems to be a problem with gif2numpy. I'm running on Windows10 by the way.

Traceback (most recent call last):
  File "read.py", line 22, in <module>
    frames, exts, image_specs = vendor.gif2numpy.convert(tmpfile.name, BGR2RGB=False)
  File "C:\Users\Cesar MLW\Desktop\Projects\gif_converter\giftolottie\vendor\gif2numpy.py", line 550, in convert
    data = Gif(KaitaiStream(BytesIO(raw)))
  File "C:\Users\Cesar MLW\Desktop\Projects\gif_converter\giftolottie\vendor\gif2numpy.py", line 82, in __init__
    self._read()
  File "C:\Users\Cesar MLW\Desktop\Projects\gif_converter\giftolottie\vendor\gif2numpy.py", line 85, in _read
    self.hdr = self._root.Header(self._io, self, self._root)
  File "C:\Users\Cesar MLW\Desktop\Projects\gif_converter\giftolottie\vendor\gif2numpy.py", line 263, in __init__
    self._read()
  File "C:\Users\Cesar MLW\Desktop\Projects\gif_converter\giftolottie\vendor\gif2numpy.py", line 266, in _read
    self.magic = self._io.ensure_fixed_contents(b"\x47\x49\x46")
  File "C:\Users\Cesar MLW\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kaitaistruct.py", line 279, in ensure_fixed_contents
    (actual, expected)
Exception: unexpected fixed contents: got b'', was waiting for b'GIF'
@lalettan-fan
Copy link

i am running on ubuntu and the same error occured

@bodqhrohro
Copy link
Owner

Are you sure you provide a valid GIF file as an input? Seems like the file contains something other actually.

@kopyl
Copy link

kopyl commented Aug 5, 2024

Are you sure you provide a valid GIF file as an input? Seems like the file contains something other actually.

I am

patrick-bateman-sigma

@bodqhrohro
Copy link
Owner

@kopyl it's another error, see #5

Anyway, this GIF is too large and dithered for a vector sticker.

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

4 participants