Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-2758

update configFile access for python 3.12

    XMLWordPrintable

    Details

      Description

      The archiver uses config files. We could/should update to standard ICS YAML files, but the usage is a bit unusual – the archiver uses the config file to seed the optparse structures, and the archiver is not actually a normal actor so does not automatically pick up the usual yaml config.

      But the specific ConfigParser interface has been deprecated, as below. I'm not up to doing the proper redesign, so just making the suggested fix:

      Traceback (most recent call last):
        File "/software/mhs/products/Linux64/ics_archiver/1.2.6b/bin/archiveServer.py", line 199, in <module>
          main()
        File "/software/mhs/products/Linux64/ics_archiver/1.2.6b/bin/archiveServer.py", line 140, in main
          import opscore.utility.config as config
        File "/software/mhs/products/Linux64/tron_actorcore/2.4.21a/python/opscore/utility/config.py", line 25, in <module>
          class ProductConfig(configparser.SafeConfigParser):
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      

        Attachments

          Activity

            People

            • Assignee:
              cloomis cloomis
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: