question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.

See original GitHub issue
/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/site-packages/IPython/core/interactiveshell.py:726: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
  warn("Attempting to work in a virtualenv. If you encounter problems, please "
Python 2.7.14 (default, Nov 14 2017, 19:52:12) 
Type "copyright", "credits" or "license" for more information.

IPython 5.5.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: python.el: native completion setup loaded

In [2]: import os, sys, IPython

In [3]: print os.environ['VIRTUAL_ENV']
print sys.executable
print IPython.__file__
print sys.path
/Users/netsu/.virtualenvs/csr-44kfYsMA

In [4]: /Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/bin/python2.7

In [5]: /Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/site-packages/IPython/__init__.pyc

In [6]: ['/Users/netsu/.virtualenvs/csr-44kfYsMA/lib/python2.7/site-packages', '', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/bin', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python27.zip', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/plat-darwin', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/plat-mac', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/lib-tk', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/lib-old', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/lib-dynload', '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/site-packages', '/Users/netsu/.local/share/virtualenvs/csr-44kfYsMA/lib/python2.7/site-packages/IPython/extensions', '/Users/netsu/.ipython']

What cause that warning?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
Interesting6commented, Mar 31, 2020

May be you should activate the virtual environment again.

2reactions
takluyvercommented, Dec 20, 2017

(I’m working on it - I think I’ve found a nicer, more robust way to do the check)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing ipython inside virtual environment - Stack Overflow
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. WARNING: IPython History requires SQLite, ...
Read more >
How to Make iPython Work in a virtualenv Virtual Environment
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
Read more >
Running iPython cleanly inside a virtualenv - Coderwall
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. Python 2.7.3 (default, Jan 2 2013, ......
Read more >
iPython and Virtual Environments - Scott Johnson
... UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
Read more >
Getting started with PythonOnWheels -Installation
See it work: ... Go on, create a virtualenv and install the requirements ... virtualenv. On Windows: (if you are in your todo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found