-
Notifications
You must be signed in to change notification settings - Fork 385
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
Analyzer creation : "invalid output" #412
Comments
Hello @ovalrem
|
Hello and thank you for the quick answer. |
It seems that the problem is due to something regarding the python editor... The strange thing is the following : (files and folders rights are OK, regarding chmod, chgrp, chown). If you have more information about the way you're typing the code (editor, indentations, names of files and flavors ? maybe there is a key that I do not understand for the moment). |
You can use PyCharm, Atom, VSCode, Vi, I mean any text editor. |
Thank you, I will try this. I've only test with Gedit and nano for the moment. |
Request Type
Bug
Work Environment
N/A
Description
Hi everyone, I'm currently facing an issue, and I don't know how to resolve it....
I'm trying to create my own analyzer : really simple, in python, based on the one which is provided for abuse_finder (because, it's probably a good example, and quite simple to understand).
Everytime I test it under cortex, I get an "invalid output" error message on the GUI, so no success. I precise that I don't use a responder. The code is only under analyzers/myscript/myscript.py. I juste have one requirement file, my script and so the json file.
What could be wrong ?
I tried to investigate about this error : by comparing my analyzer with some existing ones (who work), Check the rights on files in my folder (same rights for other analyzers that are working, with execution flax for the .py file)....
To be sure that it could not be a problem in my code, i keep it really simple : just a main function run, containing the result function that should give me a success (dict in argument, with something like a "hello world").
I see nothing in my program, that could be different that abuse_finder or everything else...
Important : I also have a problem with my shebang : #!/usr/bin/env python
When I run my analyzer, Cortex in addition returns me the following messgae with the "invalid output" one: "#!/usr/bin/env python unable to find this file (not the exact sentence)". Really strange, cause it's the same shebang in every analyzers.... that are working in those ones. (BTW it seems to work instead with #!/usr/bin/python).
Possible Solutions
Complementary information
No screen for the moment. I could provide some with my code in the future, if no suggestions about the problem.
The text was updated successfully, but these errors were encountered: