facebook / chisel

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

error: module importing failed: invalid pathname #284

Closed zkhalapyan closed 4 years ago

zkhalapyan commented 4 years ago

Do we need to update brew after deb751e596ad74425a1b293d7b98b625cac9d94d? Currently running brew update; brew install chisel doesn't fetch latest, so command script import /usr/local/opt/chisel/libexec/fbchisellldb.py path doesn't resolve, since the installed file is still called fblldb.py.

Thought could install head, but doesn't seem like this is working. I can manually resolve the path to fblldb.py in my ~/.lldbinit, but wanted to see what's the right way of doing this?

% brew install --head chisel
Warning: chisel  is already installed
The currently linked version is 2.0.0
You can use `brew switch chisel ` to link this version.
zkhalapyan commented 4 years ago

Also realized, the version installed by brew doesn't have Python3 support, so seems pretty old. It's installing version 2.0.0.

zkhalapyan commented 4 years ago

Alright, seems like I got what happened:

I would recommend making a new minor release 2.0.1 with the new commits; to make it simple, I have drafted the release notes 😎maybe @kolinkrewinkel or @kastiglione could take up on it! 🙏

Release Name: It's Not Halting (2.0.1)

Pushing a minor release to fix a Python 3 issue (d5f155d) as well as to sync brew with latest naming convention (deb751e), see below for more details:


Once a release is created, need to update homebrew formula, similar to this: https://github.com/Homebrew/homebrew-core/commit/b12704fb179a822b406669faff020cfb5e4e273e

kolinkrewinkel commented 4 years ago

I'll take a pass at fixing this as soon as I can (probably Friday or Monday)! Thanks for digging into it @zkhalapyan!

Linyok commented 4 years ago

I also have this question in my Xcode Version 11.4.1

Hastewave commented 4 years ago

The problem is still relevant

Tliens commented 4 years ago

Successfully! 👏

1、直接下载zip包 2、解压缩 3、打开 /usr/local/Cellar/ 4、将下载好的所有文件放到这个文件夹中 5、.lldbinit文件中修改为

# ~/.lldbinit
command script import /usr/local/Cellar/chisel/libexec/fblldbbase.py
zkhalapyan commented 4 years ago

200

kolinkrewinkel commented 4 years ago

I’ll try and get an update to brew out later today, thanks for the reminder!

kolinkrewinkel commented 4 years ago

https://github.com/Homebrew/homebrew-core/pull/59799 in progress!

kolinkrewinkel commented 4 years ago

Should be good now, sorry it took so long!

zkhalapyan commented 4 years ago

yay, thanks!