You are not logged in.

#1 2018-08-29 07:29:04

Dario
Member
Registered: 2013-07-29
Posts: 8

Python - after updating to 3.7 my VENVs are no more working

Hello to everybody.
I've just updated and got Python 3.7 in the process.
I have a couple of VENV I use for Django projects running in Apache. They've been working before the update, and survived a couple of years of updates.
Now, there are errors preventing them to run correctly: Modules not found, "populate() not reentrant".
Try to activate the VENV and running pip, it says

ModuleNotFoundError: No module named 'pip'

I'm searching the internet trying to understand what happened.
In the meantime, do you have any help or hint?

Thanks in advance,

Dario

Offline

#2 2018-08-29 07:31:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Python - after updating to 3.7 my VENVs are no more working


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-08-29 08:09:45

Dario
Member
Registered: 2013-07-29
Posts: 8

Re: Python - after updating to 3.7 my VENVs are no more working

Hi.
Thanks for the hint.
PIP system-wide works correctly, it's just the PIP inside the VENVs that's not working.
I'll investigate the bug by the way.

Thanks,

Dario

Offline

#4 2018-08-29 08:16:49

Dario
Member
Registered: 2013-07-29
Posts: 8

Re: Python - after updating to 3.7 my VENVs are no more working

It turns out that python in venv/bin is a symbolic link to system wide python... https://bugs.python.org/issue32444
Maybe this is the problem...

Offline

#5 2018-08-29 14:38:12

Dario
Member
Registered: 2013-07-29
Posts: 8

Re: Python - after updating to 3.7 my VENVs are no more working

I solved rebuilding the VENVs. I still don't know what caused the mishaps, but at least the Django applications are working again.

Thanks,

Dario

Offline

#6 2018-08-29 14:44:35

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Python - after updating to 3.7 my VENVs are no more working

The mishap is that you *always* need to upgrade your venv after a major.minor python update.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB