-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cannot use transformers package #59
Comments
Hi @Forsworns thank you for reporting. I'm trying to recreate on my end and received the following error:
To better help us troubleshoot this issue can you please provide your exact setup? |
Yep, you have to make sure you can use transformer with the native python interpreter at first. For me, I use Pytorch. But I cann't provide an exact https://gist.github.com/Forsworns/0a80a60cb8c362bb36a9ea4de4398370#file-requirements-txt The pytorch is installed by |
Hi @Forsworns - based on feedback from the |
The latest release fixes this issue in my local tests. Please reopen if you continue to experience issues with the latest release. |
@mike-hunhoff Thanks! Sorry for the late response, the last comments was buried in the mailbox list.
and get the following error, it seems my platform problem:
|
@mike-hunhoff seems it should call |
@Forsworns oh this is an interesting one. Based on the output that you provided I tracked the offending lines of code to The code calls >>> import sys
>>> sys.executable
'/home/spring/dragon/.env/bin/python3` Can you run the code listed above from your Ghidrathon interpreter? I'm guessing |
It appears the |
Thanks for your great work on this plugin.
My env:
MacOS 12.5 (x86), Python 3.11, Ghidrathon master branch, Ghidra 10.4
Background
Recently I'm trying to write a script like Gepetto to analyze bytecodes with llm. The langchain pacakge seems work well with Ghidrathon. But I want to use a local llm (after all, it's free, lol). So I played with Hugging Face and try to use transformers in Ghidrathon.
Problem
But I cannot import transformers, just try this in Ghidrathon:
and I got a CPython error
I guess it was due to the lazy module loading in
transformers
pakage. And I don't know if I need to place some package underPYTHON_SHARED_MODULES
orPYTHON_INCLUDE_PATHS
. Or if this related to a known limitation of JEP.The text was updated successfully, but these errors were encountered: