GreyDGL / PentestGPT

A GPT-empowered penetration testing tool
MIT License
7.28k stars 883 forks source link

Error when launching #54

Closed KhryptorGraphics closed 1 year ago

KhryptorGraphics commented 1 year ago

This is the error i get when i run it. Using python3.10 in a conda env.

Traceback (most recent call last): File "/home/kp/ai/pentestgpt/test_connection.py", line 4, in from utils.chatgpt import ChatGPT File "/home/kp/ai/pentestgpt/utils/chatgpt.py", line 14, in from config.chatgpt_config import ChatGPTConfig ModuleNotFoundError: No module named 'config.chatgpt_config'

redactedaccount commented 1 year ago

Copy the sample, rename to itself without the 'sample' (chatgpt_config.py)

This is not detailed in the README and should be.

GreyDGL commented 1 year ago

Please check if the problem persists. Copying sample is documented. Please follow the installation guide.

redactedaccount commented 1 year ago

Ah I missed it.

However it is not communicated an explicit instruction required to run, I suggest changing this step to:

2.A sample configuration has been provided in `config`. Copy it and rename it to 'chatgpt_config.py', then add your cookie and useragent (or API key if using that option)

`cp config/chatgpt_config_sample.py config/chatgpt_config.py.`