Upon running cuckoo web command; I've gotten the error message as follow
"SyntaxError: Non-ASCII character 'x90' in file C:Python27Scriptscuckoo on line 1, but no encoding declared"
Same problem here.
Did u found a solution for this or does it still remain?
Norrax
I also have this issue. Even tried to run python -m cuckoo web which used to work when i had the same problem with flask.
I have the same environment as the OP and having the same issue. Any solution available?
Same problem, I am eager to solution
Same problem
Is there a way to run the webserver from sources? I tried to look at main.py but can't understand how the web method is invoked...
Adding some information: When looking at the calls with ProcessHacker, I see calling "cuckoo web" creates a cuckoo.exe process which in turn creates a python.exe child process with command:
c:python27python.exe "C:Python27Scriptscuckoo-script.py" "web"
I think a simple fix would be to add this line in main.py BEFORE it's converted to exe
Ok so I have a VERY HACKY workaround (until a fix), you will need to run cuckoo and API from installed module, and the web part from sources.
main()python main.py web -H 0.0.0.0 -p 8080The web server should run.
Now working :)

Ok so I have a VERY HACKY workaround (until a fix), you will need to run cuckoo and API from installed module, and the web part from sources.
- Download sources
- modify main.py to add this line in the end:
main()- now run main.py from command line:
python main.py web -H 0.0.0.0 -p 8080The web server should run.
Amazing!!!
Thank you so much!!!
When I did as you said, the problem was solved.
I modified the main.py in this folder "C:Python27Libsite-packagescuckoo".
ββββββββββββββββββββββββββββββββββββ
when I restart cuckoo laterοΌcuckoo web continue to POST and snapshot not start again.
The problem is that main.py be added code "main()".
The solution I found in "http://www.sanjaysaha.info/blog/installation-of-cuckoo-sandbox-in-windows-10/" is to copy "cuckoo-script.py" and rename it cuckoo.

No problem :)
Yeah it works too, I just didn't want to modify existing package to avoid breaking with updates

@Tigzy
I do not have the ability to drag the file for analysis, do you know what the problem is? submit doesn't work either
Host: windows 10
Ok so I have a VERY HACKY workaround (until a fix), you will need to run cuckoo and API from installed module, and the web part from sources.
- Download sources
- modify main.py to add this line in the end:
main()- now run main.py from command line:
python main.py web -H 0.0.0.0 -p 8080The web server should run.
This fixed it. Thanks dude!
@KirSlayk to me it sounds like cuckoo isn't working. Did you launch the 3 services ? (cuckoo, API, web)
Same Issue, After doing the method mentioned by Tigzy
The cuckoo interface file dragging , etc would not work.
@NewSystemGames this is typical of Cuckoo main script not running, can you verify ?
This error message comes with a suggestion and it reads
_SyntaxError: Non-ASCII character 'x90' in file /path/to/file on line #lineno, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details_
The bold part is where the suggestion is. This PEP is very straight forward and the solution is just to define an encoding for your source file.
You will most likely to have
#!/usr/bin/env python
# coding=utf-8
The interpreter line is optional, but the coding can be defined second if you have interpreter line or first if you dont
Set the encoding depending on your character sets. utf-8 should work for most cases, or you may need other encodings.
@sovello I tried this and it's not the issue. The fix has been given above, thanks.
@Tigzy I used you solution and it looks like the cuckoo web interface is working. but after I submit a file and start the analysis it get stuck to pending state
C:Python27Scripts>cuckoo web
File "C:Python27Scriptscuckoo", line 1
SyntaxError: Non-ASCII character 'x90' in file C:Python27Scriptscuckoo on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
I am stilling facing the above issue.
Changes I made:-

Can anyone please, tell me what is exact work around.
@Tigzy
@wyzora
@sovello
@srensamblador
Most helpful comment
Ok so I have a VERY HACKY workaround (until a fix), you will need to run cuckoo and API from installed module, and the web part from sources.
main()python main.py web -H 0.0.0.0 -p 8080The web server should run.