byob icon indicating copy to clipboard operation
byob copied to clipboard

having problems with run.py

Open bcwlkr opened this issue 1 year ago • 8 comments

when running run.py i get the message:

Traceback (most recent call last): File "/home/brecken/byob/web-gui/run.py", line 1, in from buildyourownbotnet import create_app File "/home/brecken/byob/web-gui/buildyourownbotnet/init.py", line 16, in from buildyourownbotnet import client, server File "/home/brecken/byob/web-gui/buildyourownbotnet/server.py", line 32, in from .models import db File "/home/brecken/byob/web-gui/buildyourownbotnet/models.py", line 2, in from flask_bcrypt import Bcrypt ModuleNotFoundError: No module named 'flask_bcrypt'

Update: I am using Kali Linux and tried using venv and a clean install in venv, that has NOT fixed my issue.

Theory: going through the web-gui folder, I don't a .models to call db from, if anyone knows if this was (or is) a package for Python please tell.

bcwlkr avatar Nov 30 '23 03:11 bcwlkr

If you haven't done so yet, you could try installing the requirements: pip install -r requirements.txt I would reccomend using a virtual environment for this project. You can do so by entering following command: python3 -m venv venv Then you activate the virtual environment using source venv/bin/activate You would have to do this before installing the requirements.

This all is for Linux. If you need any more help, feel free to add another comment!

DanceMonkey276 avatar Dec 07 '23 17:12 DanceMonkey276

When running it says that "source is an unknown command" please advise

bcwlkr avatar Dec 07 '23 18:12 bcwlkr

Are you using Linux?

DanceMonkey276 avatar Dec 07 '23 18:12 DanceMonkey276

I'm using Kali, I figured out how to use vinv but I still get the error

On Thu, Dec 7, 2023, 12:41 PM DanceMonkey276 @.***> wrote:

Are you using Linux?

— Reply to this email directly, view it on GitHub https://github.com/malwaredllc/byob/issues/686#issuecomment-1845912961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMD3WRPQSHHJA4QZCOZXKE3YIIEW5AVCNFSM6AAAAABAAQTJASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVHEYTEOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

bcwlkr avatar Dec 07 '23 18:12 bcwlkr

Are you using Linux?

I'm using Kali, I figured out vinv but when running it I still get the aforementioned error

bcwlkr avatar Dec 07 '23 18:12 bcwlkr

Have you tried rerunning the startup.sh script? Worst case, you would have to delete the entire thing and get a new, clean byob install. Then, you can set up the entire thing inside of the venv. That worked for me

DanceMonkey276 avatar Dec 07 '23 20:12 DanceMonkey276

Have you tried rerunning the startup.sh script? Worst case, you would have to delete the entire thing and get a new, clean byob install. Then, you can set up the entire thing inside of the venv. That worked for me

I reinstalled and ran venv as I ran requirements.txt and ./startup.sh and still the same error, should I try with py 2.7 instead of py 3.11?

Edit: I'm going to see if running the requirements.txt in ~/BYOB/BYOB fixes it

bcwlkr avatar Dec 08 '23 18:12 bcwlkr

when running run.py i get the message:

Traceback (most recent call last): File "/home/brecken/byob/web-gui/run.py", line 1, in from buildyourownbotnet import create_app File "/home/brecken/byob/web-gui/buildyourownbotnet/init.py", line 16, in from buildyourownbotnet import client, server File "/home/brecken/byob/web-gui/buildyourownbotnet/server.py", line 32, in from .models import db File "/home/brecken/byob/web-gui/buildyourownbotnet/models.py", line 2, in from flask_bcrypt import Bcrypt ModuleNotFoundError: No module named 'flask_bcrypt'

Update: I am using Kali Linux and tried using venv and a clean install in venv, that has NOT fixed my issue.

Theory: going through the web-gui folder, I don't a .models to call db from, if anyone knows if this was (or is) a package for Python please tell.

Should use pip to seperate install without requirements.txt of this >>> ModuleNotFoundError: No module named 'flask_bcrypt'

pip that flask_bcrypt only ...

ThePuteh avatar Jan 05 '24 06:01 ThePuteh

Stale issue message

github-actions[bot] avatar Mar 06 '24 01:03 github-actions[bot]