Bunch of warnings emitted when using pyobjc on Python 3.7 with PYTHONWARNINGS=all

Issue #252 resolved
Łukasz Rogalski created an issue

Steps to reproduce:

  1. Install Python 3.7 (e.g. from Homebrew)
  2. Start Python REPL with warnings enabled: PYTHONWARNINGS=all python3
  3. Run import Cocoa in REPL
  4. Observed behavior: warnings emitted
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_mapping.py:130: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  lst.append(collections.Mapping if readonly else collections.MutableMapping)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_mapping.py:130: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  lst.append(collections.Mapping if readonly else collections.MutableMapping)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsdictionary.py:39: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  class nsdict_view (collections.Set):
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsdictionary.py:231: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.KeysView.register(nsdict_keys)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsdictionary.py:232: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.ValuesView.register(nsdict_values)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsdictionary.py:233: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.ItemsView.register(nsdict_items)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsset.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.MutableSet.register(NSMutableSet)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsarray.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.Sequence.register(NSArray)
/Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_convenience_nsarray.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.MutableSequence.register(NSMutableArray)
/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:3226: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  elif isinstance( exprs, collections.Iterable ):
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
  1. Expected behaviour: warnings shouldn't be emitted

Comments (4)

  1. Ronald Oussoren repo owner

    Thanks for the report.

    This should be fixed in the current tip of the tree, but I haven't run a full test run with this setting yet and may have missed some places that need changes.

  2. Łukasz Rogalski reporter

    With Py 3.7.0 and pyobic 5.1.1 still some warnings occur:

    /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/PyObjCTools: missing __init__
      _warnings.warn(msg.format(portions[0]), ImportWarning)
    /Users/lrogalsk/Library/Python/3.7/lib/python/site-packages/objc/_bridgesupport.py:834: DeprecationWarning: use createStructAlias instead
      warnings.warn("use createStructAlias instead", DeprecationWarning)
    
  3. Łukasz Rogalski reporter

    Still occurs with 5.1.2.
    It seems that automatically generated code in PyObjC uses deprecated method.

    MacPro-BDW-17:src berta$ python3 -m pip install pyobjc-framework-Quartz
    Looking in indexes: https://pypi.python.org/simple, https://pypi.apple.com/simple
    Requirement already satisfied: pyobjc-framework-Quartz in /Users/berta/Library/Python/3.7/lib/python/site-packages (5.1.2)
    Requirement already satisfied: pyobjc-core>=5.1.2 in /Users/berta/Library/Python/3.7/lib/python/site-packages (from pyobjc-framework-Quartz) (5.1.2)
    Requirement already satisfied: pyobjc-framework-Cocoa>=5.1.2 in /Users/berta/Library/Python/3.7/lib/python/site-packages (from pyobjc-framework-Quartz) (5.1.2)
    MacPro-BDW-17:src berta$ python3 -W error -c "import Quartz"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/berta/Library/Python/3.7/lib/python/site-packages/Quartz/__init__.py", line 83, in <module>
        _load()
      File "/Users/berta/Library/Python/3.7/lib/python/site-packages/Quartz/__init__.py", line 21, in _load
        from Quartz import CoreGraphics as m
      File "/Users/berta/Library/Python/3.7/lib/python/site-packages/Quartz/CoreGraphics/__init__.py", line 12, in <module>
        from Quartz.CoreGraphics import _metadata
      File "/Users/berta/Library/Python/3.7/lib/python/site-packages/Quartz/CoreGraphics/_metadata.py", line 18, in <module>
        misc.update({'CGFunctionCallbacks': objc.createStructType('CGFunctionCallbacks', b'{CGFunctionCallbacks=I^?^?}', []), 'CGDeviceByteColor': objc.createStructType('CGDeviceByteColor', b'{CGDeviceByteColor=CCC}', ['red', 'green', 'blue']), 'CGPoint': objc.registerStructAlias(sel32or64(b'{CGPoint=ff}', b'{CGPoint=dd}'), objc._resolve_name('Foundation.NSPoint')), 'CGDataProviderCallbacks': objc.createStructType('CGDataProviderCallbacks', b'{CGDataProviderCallbacks=^?^?^?^?}', []), 'CGDataProviderSequentialCallbacks': objc.createStructType('CGDataProviderSequentialCallbacks', b'{CGDataProviderSequentialCallbacks=I^?^?^?^?}', []), 'CGPatternCallbacks': objc.createStructType('CGPatternCallbacks', b'{CGPatternCallbacks=I^?^?}', []), 'CGSize': objc.registerStructAlias(sel32or64(b'{CGSize=ff}', b'{CGSize=dd}'), objc._resolve_name('Foundation.NSSize')), 'CGDeviceColor': objc.createStructType('CGDeviceColor', b'{CGDeviceColor=fff}', ['red', 'green', 'blue']), 'CGDataProviderDirectAccessCallbacks': objc.createStructType('CGDataProviderDirectAccessCallbacks', b'{CGDataProviderDirectAccessCallbacks=^?^?^?^?}', []), 'CGAffineTransform': objc.createStructType('CGAffineTransform', sel32or64(b'{CGAffineTransform=ffffff}', b'{CGAffineTransform=dddddd}'), ['a', 'b', 'c', 'd', 'tx', 'ty']), 'CGDataConsumerCallbacks': objc.createStructType('CGDataConsumerCallbacks', b'{CGDataConsumerCallbacks=^?^?}', []), 'CGVector': objc.createStructType('CGVector', sel32or64(b'{CGVector=ff}', b'{CGVector=dd}'), ['dx', 'dy']), 'CGPathElement': objc.createStructType('CGPathElement', sel32or64(b'{CGPathElement=I^{CGPoint=ff}}', b'{CGPathElement=I^{CGPoint=dd}}'), ['type', 'points']), 'CGScreenUpdateMoveDelta': objc.createStructType('CGScreenUpdateMoveDelta', b'{CGScreenUpdateMoveDelta=ii}', ['dX', 'dY']), 'CGEventTapInformation': objc.createStructType('CGEventTapInformation', b'{__CGEventTapInformation=IIIQiiBfff}', ['eventTapID', 'tapPoint', 'options', 'eventsOfInterest', 'tappingProcess', 'processBeingTapped', 'enabled', 'minUsecLatency', 'avgUsecLatency', 'maxUsecLatency']), 'CGPSConverterCallbacks': objc.createStructType('CGPSConverterCallbacks', b'{CGPSConverterCallbacks=I^?^?^?^?^?^?^?}', []), 'CGRect': objc.registerStructAlias(sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}', b'{CGRect={CGPoint=dd}{CGSize=dd}}'), objc._resolve_name('Foundation.NSRect'))})
      File "/Users/berta/Library/Python/3.7/lib/python/site-packages/objc/_bridgesupport.py", line 834, in registerStructAlias
        warnings.warn("use createStructAlias instead", DeprecationWarning)
    DeprecationWarning: use createStructAlias instead
    
  4. Log in to comment