Giter VIP home page Giter VIP logo

Comments (3)

jsirois avatar jsirois commented on August 13, 2024

One thing to note @eci-aashish is that an issue filed without a concrete example is always a bad footing to start from. If you can provide full examples that allow re-producing the issue, that is best.

I am building my project using pex but getting memory error due to the large size of requirements.txt file.

It's not a memory error. Its an error because the zip requires Zip64 extensions and the Python zipimporter does not support 64 bit zips (that's what the error message tries to convey).

Tried --layout=packed and --layout=loose but still unable to run the pex build file.

There are many distributions that do not work properly with complicated sys.path setups; so you should try --venv which will cause the PEX to turn into a venv at runtime with a ~single sys.path site-packages entry that those distributions expect.

There are other distributions that do not tolerate the tricks Pex uses when laying out a venv to save space on your machine (it uses symlinks by default); so you want to use --venv-site-packages-copies.

All together, that means --layout packed --venv --venv-site-packages-copies.

from pex.

jsirois avatar jsirois commented on August 13, 2024

@eci-aashish I've labelled this as a question. If my suggestion works for you, please let me know and I'll close the question as answered.

from pex.

jsirois avatar jsirois commented on August 13, 2024

@eci-aashish I gave you the options you were likely missing in your pex command line (--layout packed --venv --venv-site-packages-copies). I'm going to assume the silence means your question is answered and close. Speak up if not.

from pex.

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.