byob icon indicating copy to clipboard operation
byob copied to clipboard

cant run run.py please help me i am beging to you please

Open PARIKAKUGOD1 opened this issue 1 year ago • 19 comments

Traceback (most recent call last): File "/home/kali/byob/web-gui/run.py", line 1, in from buildyourownbotnet import create_app File "/home/kali/byob/web-gui/buildyourownbotnet/init.py", line 8, in from flask_login import LoginManager ModuleNotFoundError: No module named 'flask_login'

please tell me how to fix this please

PARIKAKUGOD1 avatar Jan 09 '24 10:01 PARIKAKUGOD1

I have the same problem!! PLS help!!

Muwix avatar Jan 11 '24 11:01 Muwix

#666 its the same problem. Check here for a sulation

Muwix avatar Jan 12 '24 12:01 Muwix

Stale issue message

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

Can Somone fix this issue?

Muwix avatar Mar 13 '24 10:03 Muwix

just install requirements.txt, or manually install every single module that pops up an error

Aerialflame7125 avatar Mar 17 '24 05:03 Aerialflame7125

run "pip install flask_login"

CatieIs avatar Apr 17 '24 02:04 CatieIs

try sudo apt install flask_login I've done that before

uuuuuuuhgdjkgeb avatar May 24 '24 07:05 uuuuuuuhgdjkgeb

try sudo apt install flask_login I've done that before

Still not working

Muwix avatar May 24 '24 07:05 Muwix

I have the same issue. I am trying to run this through Parrot6 security edition.

I have been all over the internet trying to find a solution to this issue. I have read places where people can simply > sudo pip install flask_login - I get this message when I try to install from pip. Anyone else this far down the rabbit hole? Thoughts?

error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information

** this is my first post. I'm new here, so if more info is needed or this is not helpful please let me know. **

Pixel-Aspect avatar Jun 18 '24 15:06 Pixel-Aspect

I was able to get past the initial setup. This is what I did: https://github.com/malwaredllc/byob/issues/713#issuecomment-2189276221

Pixel-Aspect avatar Jul 08 '24 15:07 Pixel-Aspect

try sudo apt install flask_login I've done that before

how were you able to get flask through apt? don't you have to get it from pip? as it's python...?

Pixel-Aspect avatar Jul 11 '24 17:07 Pixel-Aspect

Suggestion: Use pip install instead of apt to install packages

To streamline the installation process, it's recommended to use pip install instead of apt. For instance, to install Flask, you can run:

pip install flask

Quicksilver-lab avatar Jul 17 '24 01:07 Quicksilver-lab

Solution for ImportError in app.py

The issue stems from app.py attempting to import create_app from buildyourownbotnet, but create_app.py is missing from its expected location. This causes the import to fail with the following traceback:

Traceback (most recent call last):
  File "/home/kali/byob/web-gui/run.py", line 1, in <module>
    from buildyourownbotnet import create_app
  File "/home/kali/byob/web-gui/buildyourownbotnet/__init__.py", line 8, in <module>
    from flask_login import LoginManager
ModuleNotFoundError: No module named 'flask_login'

Quicksilver-lab avatar Jul 17 '24 01:07 Quicksilver-lab

same issue !! any soultions ??

MinaEMaad avatar Jul 24 '24 14:07 MinaEMaad

#666 its the same problem. Check here for a sulation

run it again using a venv (source venv/bin/activate) you wont have to use python3 and can use regular python and can automatically install python packages. and can run.py without python3. but keep in mind youll have to backdate your python to 3.7 version because python 3.11 doesn't support numpy==1.21.2

CSaV720 avatar Aug 07 '24 22:08 CSaV720

same issue !! any soultions ??

^^^ just posted the solution but you will bottleneck if you don't backdate your python.

CSaV720 avatar Aug 07 '24 22:08 CSaV720

#666 its the same problem. Check here for a sulation

run it again using a venv (source venv/bin/activate) after running "python3 -m venv venv"(may have you install deps using apt but it'll tell you the package name ). you wont have to use python3 and can use regular python and can automatically install python packages. and can run.py without python3. but keep in mind youll have to backdate your python to 3.7 version because python 3.11 doesn't support numpy==1.21.2

CSaV720 avatar Aug 08 '24 13:08 CSaV720