Skip to content

addImportPath with qrc paths broken #123

@wasular

Description

@wasular

I am currently trying to run pyotherside in a project on MacOs Monteray and QT 5.15.2 but I can't quite get this specific issue solved ... anyone here an idea ... On Windows and Linux it runs like a charm

Python Version via pyenv 3.9.6

Got library name:  "/opt/homebrew/Cellar/qt@5/5.15.2_1/qml/io/thp/pyotherside/libpyothersideplugin.dylib"
qml: Added Handler
"PyOtherSide error: Traceback (most recent call last):

  File \"<frozen importlib._bootstrap>\", line 919, in _find_spec
AttributeError: 'PyOtherSideQtRCImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

ImportError: PyCapsule_Import could not import module \"datetime\"

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load
  File \"<frozen importlib._bootstrap>\", line 982, in _find_and_load_unlocked
  File \"<frozen importlib._bootstrap>\", line 921, in _find_spec
  File \"<frozen importlib._bootstrap>\", line 895, in _find_spec_legacy
  File \"qrc://io/thp/pyotherside/qrc_importer.py\", line 26, in find_module
  File \"qrc://io/thp/pyotherside/qrc_importer.py\", line 38, in get_filename
SystemError: <built-in function qrc_is_file> returned a result with an error set

Unhandled PyOtherSide error: Cannot import module: bridge (Traceback (most recent call last):

  File "<frozen importlib._bootstrap>", line 919, in _find_spec

AttributeError: 'PyOtherSideQtRCImporter' object has no attribute 'find_spec'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions