mostafa / grest

Build REST APIs with Neo4j and Flask, as quickly as possible!
http://grest.readthedocs.io/
GNU General Public License v3.0
115 stars 11 forks source link

using grest command #330

Closed whatSocks closed 3 years ago

whatSocks commented 3 years ago

perhaps this is obvious, but I can't get the grest command to work. Using MacOS Catalina, python 3

 grest boop
zsh: //usr/local/Cellar/python@3.7/3.7.10_3/Frameworks/Python.framework/Versions/3.7/bin/grest: bad interpreter: c:\Python27\python.exe^M: no such file or directory
mostafa commented 3 years ago

Hey @whatSocks,

I haven't tested it on MacOS, yet the shebang at the start of the grest command points to #!/usr/bin/python. It's pretty strange that you are getting this error. This error usually happens on Windows machines.

bad interpreter: c:\Python27\python.exe^M: no such file or directory

Can you give me more info? Which version of gREST you've installed? Where did you install it (venv or global)? And any other useful piece of information, so I can figure out the issue.

whatSocks commented 3 years ago

hi @mostafa - I don't have that much more info.

I did pip3 install pygrest in a venv and couldn't get it to work at all, tried globally, then tried to resolve a permissions error,

chmod +x /usr/local/Cellar/python@3.7/3.7.10_3/Frameworks/Python.framework/Versions/3.7/bin/grest

and then got the error above on grest blablabla

I'm using zsh and homebrew on mac

mostafa commented 3 years ago

I fixed the shebang and upgraded most of the packages to the latest version. So, please try to install version 2.3.0 of pygrest to see if it fixes your issue. Also, uninstall the previous versions.