GithubHelp home page GithubHelp logo

Comments (9)

onelivesleft avatar onelivesleft commented on September 18, 2024

Can you link me to a simple venv setup I can use for testing?

from prettyerrors.

ksamuel avatar ksamuel commented on September 18, 2024

You want me to upload a venv in github with a pth to show you how it works ?

from prettyerrors.

onelivesleft avatar onelivesleft commented on September 18, 2024

No, on second thought I almost have .pth working: when I upload it you can see if it meets your needs, and if it doesn't I'll look at setting up a venv.

from prettyerrors.

onelivesleft avatar onelivesleft commented on September 18, 2024

I've updated to 1.2.2, which allows you to use .pth files. I'm hoping that when it scans available install sites it finds the paths for venv. Check it out and let me know.

from prettyerrors.

ksamuel avatar ksamuel commented on September 18, 2024

With 3.7 you'll get:

AttributeError:
module 'site' has no attribute 'getsitepackages'

getsitepackages() is not always available. Loop over sys.path and find the first entry containing 'site-packages'', it's probably your best bet.

from prettyerrors.

onelivesleft avatar onelivesleft commented on September 18, 2024

I'm on 3.7 and it works ok, as it does in 2.7, so there's something else up with that, though I can't guess what it could be. Looking at the source - https://github.com/python/cpython/blob/2.7/Lib/site.py - getsitepackages is in all the branches listed, from 3.5 up.

from prettyerrors.

ksamuel avatar ksamuel commented on September 18, 2024

Either it's not in the virtualenv, or it's not in Python on some OS. Linux maintainers have the bad habits of changing such details.

from prettyerrors.

onelivesleft avatar onelivesleft commented on September 18, 2024

It's probably this: pypa/pipenv#3824

from prettyerrors.

ksamuel avatar ksamuel commented on September 18, 2024

Something similar yes, as I'm not using pipenv but the bug seems exactly the same.

from prettyerrors.

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.