Skip to content

"ImportError: cannot import name _remove_dead_weakref" on device but simulator works #17803

@fotiDim

Description

@fotiDim

When trying to run an app on an actual device, I am getting:

Running pod install...
Running Xcode clean...
Starting Xcode build...
Xcode build done.
Installing and launching...
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>
    import weakref
  File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
Syncing files to device iPhone...
flutter: Error performing request for GARAGE/LOADING_GARAGE/REQUEST: <html>
flutter: Error occured (GARAGE/LOADING_GARAGE/FAILURE): Error performing request for GARAGE/LOADING_GARAGE/REQUEST: <html>
Application finished.

In the meantime the same app on the simulator works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions