Project

General

Profile

Bug #24388

Line of Python 2 print syntax breaks xml conversion when run with Python 3.x set up

Added by Kenneth Herner 7 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Urgent
Target version:
-
Start date:
05/07/2020
Due date:
% Done:

100%

Estimated time:
Duration:

Description

Hi,

Some DUNE users are trying to run the xml conversion tool while they have a 3.x version of Python set up from Larsoft. There seems to be one line in Project.py that was not converted to Python 3 print syntax:

File "/cvmfs/fermilab.opensciencegrid.org/products/common/db/../prd/project_py/v1_4_0/NULL/bin/Project.py", line 629
print list
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(list)?

History

#1 Updated by Kenneth Herner about 2 months ago

Hi, did this ever get fixed? Someone was reporting an issue with it recently.

#2 Updated by Vito Di Benedetto about 2 months ago

  • Assignee changed from Yuyi Guo to Vito Di Benedetto
  • Status changed from New to Assigned

I missed this, I just assigned this issue to me.
There is a updated local product area for Project-py that can be set up with:

source /dune/app/users/vito/products/setup.sh

Then all other setup from the wiki are the same.

That version is working with both python 2 and 3.

However I'll try to publish a new version of Project-py on CVMFS by tonight or by at least by tomorrow morning.

#3 Updated by Vito Di Benedetto about 2 months ago

  • % Done changed from 0 to 100
  • Status changed from Assigned to Resolved

A new version of project_py has been uploaded to CVMFS.

Also available in: Atom PDF