Skip to content

Commit

Permalink
fix: New lazy-imports feature in globus-sdk 3.9 causing error on startup
Browse files Browse the repository at this point in the history
The new lazy imports remove references which would otherwise exist, which
DGPF relies on for supporting older versions of the Globus SDK.
  • Loading branch information
NickolausDS committed Jun 3, 2022
1 parent 1bb7516 commit d7b909c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions globus_portal_framework/gclients.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@

GLOBUS_SDK_VERSION = Version(globus_sdk.version.__version__)

if GLOBUS_SDK_VERSION.major >= 3:
# Skip any versions less than 3.9
if GLOBUS_SDK_VERSION.major == 3 and GLOBUS_SDK_VERSION.minor < 9:
pass
else:
globus_sdk._force_eager_imports()

# This is legacy code for pre SDK-v3.3.x versions, it will be removed in the
# next version of DGPF.
CUSTOM_ENVS = {
Expand Down

0 comments on commit d7b909c

Please sign in to comment.