Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-28386

Package versions change depending on Python imports

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: base
    • Labels:
      None
    • Story Points:
      0.5
    • Team:
      Architecture
    • Urgent?:
      No

      Description

      This problem was discovered while running ci_hsc_gen2 in Jenkins (both the ci_hsc job and user stack-os-matrix jobs that include the ci_hsc product.

      pooch._version_ == "v1.3.0" while conda list pooch gives 1.3.0.  Because Packages lists everything from conda first, then updates with versions it introspects in Python, what you get depends on whether you've imported pooch (or something that imports it). This mismatch goes on to cause package version conflicts in the recorded packages.pickle (at least for Gen2 Butler).

        Attachments

          Activity

          Hide
          tjenness Tim Jenness added a comment -

          So the plan is for the introspected version from python to always trust conda and so if there is a conda version already then don't update it?

          Show
          tjenness Tim Jenness added a comment - So the plan is for the introspected version from python to always trust conda and so if there is a conda version already then don't update it?
          Hide
          ktl Kian-Tat Lim added a comment -

          Looks reasonable, and Tim Jenness says that a quick build passed on his iMac.

          Show
          ktl Kian-Tat Lim added a comment - Looks reasonable, and Tim Jenness says that a quick build passed on his iMac.

            People

            Assignee:
            tjenness Tim Jenness
            Reporter:
            ktl Kian-Tat Lim
            Reviewers:
            Kian-Tat Lim
            Watchers:
            Kian-Tat Lim, Tim Jenness
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.