Code Monkey home page Code Monkey logo

Comments (10)

FrancescAlted avatar FrancescAlted commented on July 22, 2024

Hmm, I have tested decompress_ptr() quite extensively before releasing 1.4.3. Could you please post a minimal example reproducing the problem?

from python-blosc.

jreback avatar jreback commented on July 22, 2024

@FrancescAlted we just received the same issue on our builds: pandas-dev/pandas#14143

this works on macosx, failing on linux though.

from python-blosc.

jreback avatar jreback commented on July 22, 2024

@FrancescAlted ahh I see @solarix888 reported this from pandas ok, let me see if i can repro

from python-blosc.

jreback avatar jreback commented on July 22, 2024

hmm, I cannot repro this locally (on a 64-bit linux vm). maybe some conflict with some other libs on linux? (tried 3.5, now trying 2.7)

from python-blosc.

solarix888 avatar solarix888 commented on July 22, 2024

Hmm, my specific use case is that I save a pandas DataFrame to msgpack using the pd.to_msgpack() method, compressed using blosc. Then I read it back later. In this case, the compressed DataFrame was compressed with the previous version python-blosc, and then version update, I wasn't able to decompress.

from python-blosc.

jreback avatar jreback commented on July 22, 2024
-> return _ext.decompress(bytesobj, as_bytearray)
(Pdb) l
480         ...                                      as_bytearray=True)) is bytearray
481         True
482  
483         """
484  
485  ->     return _ext.decompress(bytesobj, as_bytearray)
486  
487  
488     def decompress_ptr(bytesobj, address):
489         """decompress_ptr(bytesobj, address)
490  
(Pdb) p bytesobj
'\x02\x01\x01\x08\xf0\x00\x00\x00\xf0\x00\x00\x00L\x00\x00\x00\x14\x00\x00\x004\x00\x00\x00!\x00\x00\xe0\xaa\x00\x1f\xf0\x00\x08\x10\x14\x18\x1c "$&(*,.0123456789:;<=\x00?@\xe0\t\x00\x08@@@@@@@@@'

so this appears to be a compress-decompress ONLY on 2.7/linux. In this example we are using latin-1 encoding (but not sure if that matters)

The data is coming from a file that we created
here.

I don't know the exact version of blosc that was used originally, maybe https://github.com/kawochen remembers (this was checked in 7 months ago)

And working on 1.4.1 just fine.

lmk if any other data can provide

from python-blosc.

FrancescAlted avatar FrancescAlted commented on July 22, 2024

Yep, I can reproduce that. There is a fix in: Blosc/c-blosc@07d4bb0. I'll try to release new versions of C-Blosc and Python-Blosc as soon as possible,

from python-blosc.

FrancescAlted avatar FrancescAlted commented on July 22, 2024

I have released new versions of C-Blosc (1.11.1) and Python-Blosc (1.4.4). Please give them a test.

from python-blosc.

jreback avatar jreback commented on July 22, 2024

thanks @FrancescAlted looks great!

from python-blosc.

eapetitfils avatar eapetitfils commented on July 22, 2024

I had a very similar issue with version 1.5.1, getting an exit code -1073741819 while decompressing data generated with pandas msgpack function.

Upgrading to blosc 1.6.1 on the environment doing the decompression fixed the issue. The compression is still performed with blosc 1.5.1.

from python-blosc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.