Project

General

Profile

Bug #23454

Deprecation warning in ups.py for setup from within python scripts

Added by Lauri Carpenter 24 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/21/2019
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Duration:

Description

We still use ups in tissue/ncis/fbi, and specifically we use the ups.py module to schlepp the environment from within python in our web apps.

I'm seeing a whole lotta deprecation warnings:
[Mon Oct 21 09:30:00 2019] [error] /fnal/ups/etc/ups.py:164: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.
[Mon Oct 21 09:30:00 2019] [error] (stdin,stdout,stderr) = os.popen3(cmd)

Need to convert to use subprocess module (or some other newer feature that works in python 2.6 and python 3).



Also available in: Atom PDF