facebook / chisel

Chisel is a collection of LLDB commands to assist debugging iOS apps.
MIT License
9.13k stars 803 forks source link

Xcode11 error: module importing failed: Missing parentheses in call to 'print' #272

Closed ceekay1991 closed 4 years ago

ceekay1991 commented 5 years ago

error: 'pviews' is not a valid command. error: module importing failed: Missing parentheses in call to 'print'. Did you mean print('Whoops! You are missing the <' + arg.argName + '> argument.')? (fblldb.py, line 98) File "temp.py", line 1, in

danielpetroianu commented 5 years ago

I experience the same error message when running with Xcode 11. This is a duplicate of https://github.com/facebook/chisel/issues/262 - Xcode 11 uses Python 3 - that's way we see that Python error.

spnkr commented 5 years ago

you're using python 3, which doesn't work with chisel. the python binary xcode 11 uses is here fwiw: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework

to fix it do 2 things:

  1. use python2 (https://github.com/facebook/chisel/issues/262)
defaults write com.apple.dt.lldb DefaultPythonVersion 2
  1. then check out this branch https://github.com/facebook/chisel/tree/FBPrintCoreAnimationTree-cleanup - there were errors w/ xcode 11 and python2 and FBPrintCoreAnimationTree

I still get a few error messages, but most of the chisel commands now work.

TomLongJoy commented 5 years ago

cd ~/Downloads && git clone https://github.com/chenjiangchuan/chisel.git && cd chisel &&cp -f -R -v libexec /usr/local/Cellar/chisel/1.8.1 I use this , my chisel work.

kolinkrewinkel commented 5 years ago

Should be fixed with #266!

monologue555 commented 5 years ago

Use brew install chisel (1.8.1) not work, because merge #266! not update to brew repo. So I download master code to fix this issue.

mattjankowiak commented 5 years ago

Still seeing this issue with Chisel 1.8.1. Any chance we can get the brew repo updated with the changes from #266 ? Been using Chisel for many years and I love it. Thanks for all your hard work!

raytso commented 5 years ago

Still seeing this with 1.8.1.

hvsw commented 5 years ago

Same issue here

Ronaldoh1 commented 4 years ago

same

nikunjinexture commented 4 years ago

Same issue

kolinkrewinkel commented 4 years ago

Sorry folks, I've been a neglectful maintainer!

kolinkrewinkel commented 4 years ago

Should be good to go now with a brew upgrade. Let us know if there are any issues!

yayang commented 4 years ago

cd ~/Downloads && git clone https://github.com/chenjiangchuan/chisel.git && cd chisel &&cp -f -R -v libexec /usr/local/Cellar/chisel/1.8.1 I use this , my chisel work.

worked for me, thanks