You are not logged in.

#1 2017-04-22 23:57:44

xtian
Member
Registered: 2013-08-25
Posts: 179

Using iPython with virtual environments produce errors

My question is about using iPython and python virtual environments (virtualenvwrapper) installed from Arch repositories (using pacman).

When I launch iPython inside of this virtual environment, I get a lot of errors. I don't get these errors when I launch the standard Python interpreter, `$ python`, or if run my project in the standard interpreter. It seems to effect only iPython and Jupyter.

Anyone else on Arch using the Arch Repo versions of iPython and Python and having trouble with virtual environments?

//UPDATE rewrite for brevity. I posted this to iPython Google Group, and here's what one poster suggested:

OK, it looks like something has set sys.path like this:

sys.path = filter(...)

That won't work in Python 3, because filter() returns an iterator. You'll need to adapt it to:

sys.path = list(filter(...))

Unfortunately there's nothing to indicate where the code in question is. I don't believe it's part of IPython.

Last edited by xtian (2017-04-26 01:27:55)

Offline

#2 2017-08-23 19:32:27

speckledlemon
Member
Registered: 2012-08-31
Posts: 5

Re: Using iPython with virtual environments produce errors

The pastebin link expired. Can you post the error text directly?

Offline

Board footer

Powered by FluxBB