Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: module importing failed: invalid pathname #284

Closed
zkhalapyan opened this issue May 1, 2020 · 11 comments
Closed

error: module importing failed: invalid pathname #284

zkhalapyan opened this issue May 1, 2020 · 11 comments

Comments

@zkhalapyan
Copy link

Do we need to update brew after deb751e? 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
Copy link
Author

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

@zkhalapyan
Copy link
Author

Alright, seems like I got what happened:

  • Python 3 support was in 2.0.0, but xrange fix (d5f155d) wasn't included, so it's still breaking 😢
  • There hasn't been a new release since the naming change (deb751e) and therefore brew vs. repo are out of sync.

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:

  • Replace xrange with range to fix Python 3 issue (d5f155d) - thanks to @kastiglione!
  • Renaming all fblldb* to fbioslldb* to avoid conflict with lldb (deb751e) - thanks to @aadsm
  • New copy command that can be used to copy any NSURL or NSData to the host machine (0c9ee31) - awesome new tool by Chris Ellsworth.

Once a release is created, need to update homebrew formula, similar to this: Homebrew/homebrew-core@b12704f

@kolinkrewinkel
Copy link
Contributor

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

@Linyok
Copy link

Linyok commented Jun 18, 2020

I also have this question in my Xcode Version 11.4.1

@Hastewave
Copy link

The problem is still relevant

@Tliens
Copy link

Tliens commented Jul 15, 2020

Successfully! 👏

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

# ~/.lldbinit
command script import /usr/local/Cellar/chisel/libexec/fblldbbase.py

@zkhalapyan
Copy link
Author

200

@kolinkrewinkel
Copy link
Contributor

kolinkrewinkel commented Aug 11, 2020 via email

@kolinkrewinkel
Copy link
Contributor

Homebrew/homebrew-core#59799 in progress!

@kolinkrewinkel
Copy link
Contributor

Should be good now, sorry it took so long!

@zkhalapyan
Copy link
Author

yay, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants