yashwanth-javvaji / intrusion-detection-system

This project is a network intrusion detector that uses machine learning algorithms to distinguish between bad (intrusions/attacks) and good (normal) connections. The UI is built using Flask framework and the KDD Cup 1999 dataset is used for training. Python, Flask, and Scikit-learn are the main technologies used in this project.
2 stars 2 forks source link

Can you help me to build the system #1

Open weikunzz opened 1 year ago

weikunzz commented 1 year ago

Hello, i git clone then repo into my desktop( it's os version is ubuntu20.04), then pip3 install the requirements.txt, but when i execute the "python app.py", it report a wrong msg.

ttributeError: 'NoneType' object has no attribute 'replace'

So,could you share me your baseOS env,and how to setup system in details.

Thanks

yashwanth-javvaji commented 1 year ago

Hello,

I apologize for the delay in my response. I just saw your email regarding the issue you are facing with running the "app.py" file. Based on the error message you provided, it seems like there may be an issue with the configuration settings in your application.

Here are a couple of solutions you could try:

  1. Check the value of the "DATABASE_URL" environment variable: The error message indicates that the "NoneType" object is being returned by the "os.environ.get('DATABASE_URL')" line. This could be because the "DATABASE_URL" environment variable is not properly set. @.***:5432
  2. Switch to a different configuration: If setting the "DATABASE_URL" environment variable does not resolve the issue, you could try switching to a different configuration. For example, you could switch to the "DevelopmentConfig" configuration by modifying the line in your code that sets the configuration object. app.config.from_object("config.ProductionConfig") to app.config.from_object("config.DevelopmentConfig")

I hope this helps you resolve the issue. If you have any further questions or concerns, please let me know.

Again, I apologize for the delayed response and any inconvenience this may have caused.

Best regards, Yashwanth

On Mon, Mar 20, 2023 at 8:41 AM weikunzz @.***> wrote:

Hello, i git clone then repo into my desktop( it's os version is ubuntu20.04), then pip3 install the requirements.txt, but when i execute the "python app.py", it report a wrong msg.

ttributeError: 'NoneType' object has no attribute 'replace'

So,could you share me your baseOS env,and how to setup system in details.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/yashwanth-javvaji/intrusion-detection-system/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPSEOYFEZRW73XSP2SJETW5BNBNANCNFSM6AAAAAAWBDLDW4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

IMMORTALCHIRU commented 2 months ago

Hello, I apologize for the delay in my response. I just saw your email regarding the issue you are facing with running the "app.py" file. Based on the error message you provided, it seems like there may be an issue with the configuration settings in your application. Here are a couple of solutions you could try: 1. Check the value of the "DATABASE_URL" environment variable: The error message indicates that the "NoneType" object is being returned by the "os.environ.get('DATABASE_URL')" line. This could be because the "DATABASE_URL" environment variable is not properly set. @.:5432 2. Switch to a different configuration: If setting the "DATABASE_URL" environment variable does not resolve the issue, you could try switching to a different configuration. For example, you could switch to the "DevelopmentConfig" configuration by modifying the line in your code that sets the configuration object. app.config.from_object("config.ProductionConfig") to app.config.from_object("config.DevelopmentConfig") I hope this helps you resolve the issue. If you have any further questions or concerns, please let me know. Again, I apologize for the delayed response and any inconvenience this may have caused. Best regards, Yashwanth On Mon, Mar 20, 2023 at 8:41 AM weikunzz @.> wrote: Hello, i git clone then repo into my desktop( it's os version is ubuntu20.04), then pip3 install the requirements.txt, but when i execute the "python app.py", it report a wrong msg. ttributeError: 'NoneType' object has no attribute 'replace' So,could you share me your baseOS env,and how to setup system in details. Thanks — Reply to this email directly, view it on GitHub <#1>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYPSEOYFEZRW73XSP2SJETW5BNBNANCNFSM6AAAAAAWBDLDW4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Even i'm facing the same issue, can you please help me out for database creation?!