Comments (9)
Can you link me to a simple venv setup I can use for testing?
from prettyerrors.
You want me to upload a venv in github with a pth to show you how it works ?
from prettyerrors.
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.
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.
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.
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.
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.
It's probably this: pypa/pipenv#3824
from prettyerrors.
Something similar yes, as I'm not using pipenv but the bug seems exactly the same.
from prettyerrors.
Related Issues (20)
- Django Compatibility? HOT 3
- Backslash related failure in virtualenv in Windows
- PrettyErrors doesn't work with Hydra HOT 1
- File path unclickable in pycharm HOT 2
- Error using global install script with venv HOT 7
- Running pretty_errors as script with virtualenv does not find install folders HOT 3
- line_length default of 0 causes division by zero exception unless overridden HOT 1
- Jupyter & Vscode HOT 1
- Hello, why I cannot use it in pytest? HOT 1
- "incomplete escape \U at position 3" when running "python -m pretty_errors" HOT 2
- Update README to remove reference to "-m pretty_errors" for Python3 HOT 1
- Links in powershell/PyCharm HOT 1
- [Question] Can PrettyErrors handle pdb's output?
- Not clickable output HOT 1
- stack trace when exception occurs in concurrent.futures.ThreadPoolExecutor
- Show function arguments?
- [Question] Can I change PrettyErrors' configuration globally? HOT 3
- .pyw files stop working once PrettyErrors is intalled
- No folders to install into are found when run in a virtual environment HOT 1
- SyntaxError messages just say 'invalid syntax' instead of the provided hints HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettyerrors.