python - 'sleepymongoose' is not defined? -
i trying set sleepy.mongoose, mongodb rest interface using instructions here.
i using windows 8, :( ...anyway... have python 3.3.2 installed , accessible cmd prompt. have pymongo installed, when enter help('modules')
python, pymongo on list of available modules!
but when try run python httpd.py
sleepy.mongoose dir (thanks karthikr), error:
c:\users\brook\desktop\sleepy.mongoose>python httpd.py traceback (most recent call last): file "httpd.py", line 1, in <module> sleepymongoose/httpd.py nameerror: name 'sleepymongoose' not defined
now tried cd
ing proper dir, other error:
c:\users\brook\desktop\sleepy.mongoose\sleepymongoose>python httpd.py file "httpd.py", line 221 print "\n=================================" ^ syntaxerror: invalid syntax
you using python 3 run python 2 code. syntax print
amongst other things has changed. use python 2 or server supports python 3.
Comments
Post a Comment