Comments (5)
I am encountering this error as well. Checked all versions of pip I have and it is there. Probably the path to module is incorrect since there are multiple versions of Python installed on my machine. That might help your issue @port513
I will report back
from analyze-community-ghidra-plugin.
Check which path is used within Ghidra to get installed packages and make sure the requests package is there.
Let me know if it works for you
from analyze-community-ghidra-plugin.
Add this to the beginning of whatever script you're trying to run within Ghidra.
For Linux systems, something like:
import sys
sys.path.append('/usr/local/lib/python2.7/dist-packages')
sys.path.append('/usr/lib/python2.7/dist-packages')
For Windows:
import sys
sys.path.append("C:\Python27\Lib\site-packages")
This is what got the script working for me bc of how Ghidra handles packages for Jython.
from analyze-community-ghidra-plugin.
Greetings,
The following pull request change may help you:
#20
Also, if that does not help you, the diagnostic process that I used to view how each of the conditions resolves inside Ghidra should at least show you where the problem is located:
>>> import os
>>> import sys
>>> (os.name == "Posix") and (("Linux") in os.uname())
False
>>> os.name == "java"
True
>>> ("Darwin") in os.uname()
True
>>> os.name == "nt" or ("windows") in java.lang.System.getProperty("os.name").lower()
False
>>> os.name
PyShadowString('java', 'posix')
>>> os.uname()
('Darwin', 'example.com', '20.6.0', 'Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64', 'x86_64')
from analyze-community-ghidra-plugin.
I have added documentation that is very specific and should solve the error ImportError: No module named requests
.
from analyze-community-ghidra-plugin.
Related Issues (13)
- Error while running script on Ghidra 9.2 HOT 8
- Python Requests Error HOT 2
- Feature request HOT 2
- Ghidra 10.1.1 not showing up? HOT 4
- Ghidra Bridge / Python3 port HOT 1
- OS Name Not Detected Properly in Ubuntu 22.04 LTS
- AttributeError HOT 4
- UnicodeEncodeError HOT 3
- import requests ImportError: No module named requests
- Incompatibility with the current Jython? HOT 7
- os.name is 'java' for me, not 'posix' HOT 6
- Error running script HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analyze-community-ghidra-plugin.