Skip to content
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

Issues with installation #84

Open
Molie79 opened this issue Apr 26, 2017 · 7 comments
Open

Issues with installation #84

Molie79 opened this issue Apr 26, 2017 · 7 comments

Comments

@Molie79
Copy link

Molie79 commented Apr 26, 2017

Hi,
This might sound quite a silly request but I am not able to run the program on my local machine.
These are the steps I have followed:

  1. Installed Google App Engine.
  2. Created a new project on Google cloud platform.
  3. Ran 'gcloud components install app-engine-python' on local machine. After running this in command prompt it says 'All components are upto date'
  4. Cloned the repo 'git clone [email protected]:Yelp/beans.git' and activated virtual environment in the /beans folder.
  5. Run make development. However, on running this it gives the error 'make is not recognized as an internal or external command'

I am running the above on windows machine running Windows 7.

Please help.

Regards,
Amol

@ajm188
Copy link
Contributor

ajm188 commented Apr 26, 2017

Hi Amol!

Thanks for bringing this up!

make is tool that is typically only available on unix-based OSes (Mac and linux, in general).
However, there are ways to get unix tools on a windows machine.
One is to install Cygwin.
I would try that, and let me know if you're still running into issues after getting that set up!

@ajm188
Copy link
Contributor

ajm188 commented Apr 26, 2017

@Molie79 I am going to add my reply to the "Getting Started" section of the wiki and close this issue. Feel free to re-open this issue if you are still having troubles.

Wiki link

@Molie79
Copy link
Author

Molie79 commented Apr 30, 2017

@ajm188 I have installed Cygwin and running it on the console but am not able to point it to the beans directory. Another thing, can you please explain step by step the process of setting up Beans. What I have done is this:

  1. Created account on Google Cloud and create project on it. Then I go to Google gcloud shell and create a virtual environment venv under beans.
  2. I activate the virtual environment venv by doing to Scripts folder and typing activate.
  3. I open Cygwin terminal and want open bash to the location of beans under Google shell as listed in point 1. However, I am not able to change the location. What is the syntax for opening the Cygwin shell in a particular location.

Also, I need to run the files in bean folder on the local machine or Google shell? Please clarify.

@ajm188
Copy link
Contributor

ajm188 commented Apr 30, 2017

I have installed Cygwin and running it on the console but am not able to point it to the beans directory

cd path\to\local\beans

where the path\to\local\beans is wherever you cloned beans on your machine.

If you have set up Google App Engine and downloaded the Python SDK (it sounds like you have), all further instructions should be run on the local machine.

@Molie79
Copy link
Author

Molie79 commented May 1, 2017

@ajm188 I changed the path as well but make development gives the following error:

$ make development
./bin/venv-update
venv= venv/ --python=python2.7
install= -r requirements.txt -r requirements-dev.txt
bootstrap-deps= -r requirements-bootstrap.txt
pip-command= pymonkey pip-custom-platform -- pip-faster install --upgrade --prune

virtualenv 'C:\cygwin\home\lenovo/.cache\venv-update\2.0.0\venv'
Using base prefix 'c:\users\lenovo\appdata\local\programs\python\python36-32'
New python executable in C:\cygwin\home\lenovo.cache\venv-update\2.0.0\venv\Scripts\python.exe
Installing setuptools, pip, wheel...done.
'C:\cygwin\home\lenovo/.cache\venv-update\2.0.0\venv\bin\python' -m pip.main install virtualenv --target 'C:\cygwin\home\lenovo/.cache\venv-update\2.0.0\src.tmp'
Traceback (most recent call last):
File "./bin/venv-update", line 448, in
exit(main())
File "./bin/venv-update", line 443, in main
exec_scratch_virtualenv(args)
File "./bin/venv-update", line 203, in exec_scratch_virtualenv
run((scratch_python, '-m', 'pip.main', 'install', 'virtualenv', '--target', tmp))
File "./bin/venv-update", line 135, in run
check_call(cmd)
File "c:\users\lenovo\appdata\local\programs\python\python36-32\Lib\subprocess.py", line 286, in check_call
retcode = call(*popenargs, **kwargs)
File "c:\users\lenovo\appdata\local\programs\python\python36-32\Lib\subprocess.py", line 267, in call
with Popen(*popenargs, **kwargs) as p:
File "c:\users\lenovo\appdata\local\programs\python\python36-32\Lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "c:\users\lenovo\appdata\local\programs\python\python36-32\Lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
make: *** [Makefile:42: venv] Error 1
(venv)

@ajm188
Copy link
Contributor

ajm188 commented May 1, 2017

My bet is that you need to change your separator to work for windows. On Unix systems, this is '/', but on Windows it's ''.

So I'm guessing it should be more like:

.\bin\venv-update
venv= venv\
install= blah
bootstrap-deps = blah blah
pip-command= blah blah blah

@asottile looping you in here; do I seem to be on the right track?

@ajm188 ajm188 reopened this May 1, 2017
@asottile
Copy link
Contributor

asottile commented May 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants