Git Product home page Git Product logo

Comments (5)

hartescout avatar hartescout commented on July 20, 2024

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.

NicoleFishbein avatar NicoleFishbein commented on July 20, 2024

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.

micahflack avatar micahflack commented on July 20, 2024

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.

utkonos avatar utkonos commented on July 20, 2024

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.

utkonos avatar utkonos commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.