Giter Site home page Giter Site logo

Comments (5)

jaraco avatar jaraco commented on June 8, 2024

I've encountered this issue before. This issue is triggered when Python and lib2to3 tries to expand a pickle in the system directory.

I'm surprised the install of irc is triggering this error because irc doesn't use 2to3.

I worked around this in my environments by first importing lib2to3.grammar (I think) before running any installs. Please try that and let me know if that helps.

Later, I'll have my main workstation and can confirm and investigate further.


Original comment by: Jason R. Coombs

from irc.

jaraco avatar jaraco commented on June 8, 2024

Ran the following, I assume this is what you meant?

Apologies if not, still new to Python :)

C:\Users\Tom>pip install lib2to3.grammar

Downloading/unpacking lib2to3.grammar

Could not find any downloads that satisfy the requirement lib2to3.grammar

Cleaning up...

No distributions at all found for lib2to3.grammar


Original comment by: Nuvelle

from irc.

jaraco avatar jaraco commented on June 8, 2024

I apologize. I didn't give very good advice, as I was working from memory.

What I meant was to run

python -c "import lib2to3.pygram"

That will trigger the Python environment to generate the lib2to3 grammar, which it stores as a pickle. If that code gets triggered first as part of installing a package, it will cause that sandbox violation (because writing outside of the sandboxed directory is disallowed).

My guess is if you run the command above, the install will work. It's possible you don't even need to run the command above and that it'll work. I'm not sure why installing httpie works but installing irc doesn't. It could be because irc uses 'setup_requires' requirements.

In any case, it's not a bug with irc. Please let me know if the above command doesn't get things going.


Original comment by: Jason R. Coombs

from irc.

jaraco avatar jaraco commented on June 8, 2024

I filed setuptools 121 to track the underlying error.


Original comment by: Jason R. Coombs

from irc.

jaraco avatar jaraco commented on June 8, 2024

Worked perfectly after running the command!

Thank you!!


Original comment by: Nuvelle

from irc.

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.