Ionic run ios python error


#1

When doing ionic run ios i get the errors

Traceback (most recent call last):
  File "<string>", line 1, in <module>

  File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py", line 98, in <module>
    import six
ImportError: No module named six

(lldb) command source -s 0 '/tmp/3A51C948-93CE-4C08-AFE3-CDB2A4FE9B47/fruitstrap-lldb-prep-cmds-b274a53858027eb3c62c5ae1bebca0ae676273a1'

Executing commands in '/tmp/3A51C948-93CE-4C08-AFE3-CDB2A4FE9B47/fruitstrap-lldb-prep-cmds-b274a53858027eb3c62c5ae1bebca0ae676273a1'.
(lldb)     platform select remote-ios --sysroot '/Users/etuwebdev02/Library/Developer/Xcode/iOS DeviceSupport/9.3.2 (13F69)/Symbols'
  Platform: remote-ios
 Connected: no
  SDK Path: "/Users/etuwebdev02/Library/Developer/Xcode/iOS DeviceSupport/9.3.2 (13F69)/Symbols"
(lldb)     target create "/space/www/applications/wav/platforms/ios/build/device/Letudiant: Visiteurs Salons.app"

Traceback (most recent call last):
  File "<string>", line 1, in <module>

NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>

NameError: name 'run_one_line' is not defined

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError
: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>

NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>

NameError: name 'run_one_line' is not defined

Traceback (most recent call last):

  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined

Current executable set to '/space/www/applications/wav/platforms/ios/build/device/Letudiant: Visiteurs Salons.app' (armv7).
(lldb)     script fruitstrap_device_app="/private/var/containers/Bundle/Application/1B168064-7BB0-4A97-BF5B-515B50673F07/Letudiant: Visiteurs Salons.app"

Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError:
name 'run_one_line' is not defined

error: python failed attempting to evaluate 'fruitstrap_device_app="/private/var/containers/Bundle/Application/1B168064-7BB0-4A97-BF5B-515B50673F07/Letudiant: Visiteurs Salons.app"'

#2

Nobody can reproduce this ? I’m on el capitan by the way.


#3

I’m having the same issue.

Command:

ionic run ios --device

System information:

Cordova CLI: 6.3.0
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.9-201606271842
Ionic CLI Version: 2.0.0-beta.35
Ionic App Lib Version: 2.0.0-beta.19
ios-deploy version: 1.8.6 
ios-sim version: 5.0.4 
OS: Mac OS X El Capitan (10.11.6)
Node Version: v4.2.3
Xcode version: Xcode 7.3.1 Build version 7D1014

Interestingly the same works on my iMac with the same project. I’ll try
to figure out differences of both setups within the next days.


#5

I had another look into it. Here are the steps I tried. I executed the steps on both machines. Nothing changed.

  • I removed and reinstalled all global npm modules

      sudo npm remove -g ionic@beta cordova ios-sim ios-deploy
      sudo npm install -g ionic@beta cordova ios-sim
      sudo npm install -g ios-deploy --unsafe-perm=true
    
  • I deleted and cloned the project what basically deletes those folders:

      /platforms
      /plugins
      /node_modules
    

The Python versions are slightly different, although I have the same OS X version installed:

  • iMac (works) Python 2.7.10
  • MacBook (fails) Python 2.7.11

Currently I guess it might be an XCode issue so I’ll try to delete and reinstall XCode. I’ll reply here when I’ve done this.


#6

Reinstalling XCode didn’t help. That’s all I could for the moment. Maybe someone can help.


#7

Getting the same error. Works on one of my Mac minis, not on the other. Both are on El Capitan.


#8

I hame the same problem on my devices


#9

+1 having the same issue


#10

+1 having the same issue


#11

This was the solution to the problem for me. Hope it serves everyone here!


#12

install six fix it on my local


#13

install six removed part of the errors but i still get

Device Locked


Error: Error code 254 for command: ios-deploy with args: --justlaunch,--no-wifi,-d,-b,/space/www/applications/wav/platforms/ios/build/device/Visiteurs Salons.app


Caught exception:
 undefined

#14

This normally means your device is locked by a PIN-Code or similar. Make sure to unlock your phone during the app install process.


#15

‘easy_install six’ fixed the problem for me :slight_smile:


#16

This fixed it for me…


#17

Thanks, @guizmoNC1
Your solutions work perfectly!. :smiley: