Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update-db command error 'cannot update' #212

Open
MiChaelinzo opened this issue Oct 1, 2023 · 3 comments
Open

update-db command error 'cannot update' #212

MiChaelinzo opened this issue Oct 1, 2023 · 3 comments

Comments

@MiChaelinzo
Copy link

Traceback (most recent call last):
  File "/home/michael/ㄒㄖㄖㄥ丂/theZoo/theZoo.py", line 109, in <module>
    main()
  File "/home/michael/ㄒㄖㄖㄥ丂/theZoo/theZoo.py", line 104, in main
    terminalHandler.MainMenu()
  File "/home/michael/ㄒㄖㄖㄥ丂/theZoo/imports/terminal_handler.py", line 91, in MainMenu
    self.actOnCommand(cmd)
  File "/home/michael/ㄒㄖㄖㄥ丂/theZoo/imports/terminal_handler.py", line 120, in actOnCommand
    db_ver = update_handler.get_maldb_ver()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/ㄒㄖㄖㄥ丂/theZoo/imports/update_handler.py", line 46, in get_maldb_ver
    with file(globals.vars.maldb_ver_file) as f:
         ^^^^
NameError: name 'file' is not defined. Did you mean: 'filter'?

@dexter74
Copy link

+1

@BumblingBen
Copy link

Not an actual bug. I had the same issue when running using python3.

You need to ensure python2.7 is installed, I can't seem to see this within the ReadMe or the requirements docs, correct me if I'm wrong. So you'll need to do the following:

Install the correct version of Python
sudo apt install python2.7

Explicitly run the script using version 2.7
python2.7 theZoo.py

@MiChaelinzo
Copy link
Author

Not an actual bug. I had the same issue when running using python3.

You need to ensure python2.7 is installed, I can't seem to see this within the ReadMe or the requirements docs, correct me if I'm wrong. So you'll need to do the following:

Install the correct version of Python
sudo apt install python2.7

Explicitly run the script using version 2.7
python2.7 theZoo.py

Alright thanks I still have python2 in my ParrotOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants