Skip to content

Renamed glue2/types.py so that in python 3.9 and greater, it doesn't#31

Open
ericblau wants to merge 1 commit into
masterfrom
stampedefix
Open

Renamed glue2/types.py so that in python 3.9 and greater, it doesn't#31
ericblau wants to merge 1 commit into
masterfrom
stampedefix

Conversation

@ericblau
Copy link
Copy Markdown

conflict with functool's types.py. (Also changed IPF references from types to glue2types)

conflict with functool's types.py.  (Also changed IPF references from types to glue2types)
@ericblau
Copy link
Copy Markdown
Author

This is intended to address:

(venv) blau@MacBookPro glue2 % python -m py_compile modules.py Could not import runpy module Traceback (most recent call last): File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 15, in <module> import importlib.util File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/util.py", line 2, in <module> from . import abc File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/abc.py", line 17, in <module> from typing import Protocol, runtime_checkable File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/typing.py", line 23, in <module> import contextlib File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/contextlib.py", line 6, in <module> from functools import wraps File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/functools.py", line 22, in <module> from types import GenericAlias ImportError: cannot import name 'GenericAlias' from 'types' (/Users/blau/access/ipf/ipf/ipf/glue2/types.py)

which causes modules.py not to get loaded with an error like:
ipf.error.WorkflowError: "no step is known with name 'ipf.glue2.modules.ExtendedModApplicationsStep'"

See https://access-ci.atlassian.net/browse/CTT-910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants