Error "OS is not recognised ..."

Help
Marcel S.
2014-07-18
2014-07-26
  • Marcel S.
    Marcel S.
    2014-07-18

    Hi nanotube,
    I try to use the keylogger on Manjaro Linux. When I try to execute the keylogger.pyw I get the error message "OS is not recognised as windows or linux". But I use Linux, Manjaro is based on Arch Linux. I have installed all dependencies.

    How can the error be solved?

    Thank you
    Marcel

     
  • nanotube
    nanotube
    2014-07-18

    Hi Marcel,

    If you open keylogger.pyw in a text editor, you'll see it does the check by looking at the content of os.name. So open up a python instance, and run "import os; os.name" and see what that says. On linux-like systems, it should be 'posix' but apparently it isn't on your os. You can change line 27 and put in whatever you have in os.name.

    Cheers,
    nanotube

     
  • Marcel S.
    Marcel S.
    2014-07-26

    Hi nanotube,

    thank you very much for your reply. I did try the commands you wrote. And the result is "posix". I did have a look into the keylogger.pyw, line 27. Just "posix".

    Well, any idea what could cause the if statement to return false?