Giter Site home page Giter Site logo

md5 missmatch. about localshop HOT 4 OPEN

gregtap avatar gregtap commented on June 2, 2024
md5 missmatch.

from localshop.

Comments (4)

gregtap avatar gregtap commented on June 2, 2024

I have redone an installation from scratch on a Vagrant vm with ansible and still experience the same issue.

from localshop.

mvantellingen avatar mvantellingen commented on June 2, 2024

Ok, will try to reproduce. I assume the filesize doesn't match either?

from localshop.

gregtap avatar gregtap commented on June 2, 2024

Right they do not. I digged a bit deeper and at one point I thought it was the distutils upload method from Python 2.7.8 on Mac going wrong during the multipart upload.

I finally gave up and setup pypiserver for now. The upload step worked well and did not corrupt the tar gz.

from localshop.

eisensheng avatar eisensheng commented on June 2, 2024

I'm also affected by this.

I put a bit of research into it and it appears that there is an unnecessary UTF-8 encoding happening somewhere. An ZIP archive starting with

000000 50 4b 03 04 14 00 00 00 08 00 c5 6e 65 47 cb af  >PK.........neG..<

becomes when uploaded

000000 50 4b 03 04 14 00 00 00 08 00 c3 85 6e 65 47 c3  >PK..........neG.<

Notice that the byte sequence 00 c5 6e 65 changed to the sequence 00 c3 85 6e 65. The byte sequence c3 85 is the UTF-8 encoded value for the character Å which has the code point 197 or to express it in hexadecimal c5, the byte of the original input.

I can't tell who's here the one to be blamed though.

Edit:
It appears to be working with twine though. So it's highly likely that distutils/setuptools is the one to be blamed here. But then again why is it working with other implementations of the PYPI?

from localshop.

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.