glideinWMS / glideinwms

The glideinWMS Project
http://tinyurl.com/glideinwms
Apache License 2.0
16 stars 46 forks source link

A couple of issues with analyze_entries and python3 #194

Closed mmascher closed 2 years ago

mmascher commented 2 years ago

It surns out that in python2 you could use urllib to open a local file (/var/lib/gwms-factory/work-dir/monitor/rrd_Log_Completed.xml in this case), but with python3 you need to inser file:// to avoid this error:

ValueError: unknown url type: '/var/lib/gwms-factory/work-dir/monitor/rrd_Log_Completed.xml'

Also, you cannot use .sort() on the result of a dict.keys() since this is a view and not an iterator now. I was getting:

AttributeError: 'dict_keys' object has no attribute 'sort'