Trouble to deploy and download dependencies

106 views
Skip to first unread message

Dongcheng Li

unread,
Feb 12, 2020, 4:45:33 PM2/12/20
to Google App Engine

Before you deploy, ensure you have all the things (like libraries, other software) you need to be successful. The deploy script mentioned in the section below will try to download any dependencies also, but in this step you will get more messages about the process. These messages may help you if anything is wrong. To download dependencies, open a command prompt and get to your coursebuilder directory. Type the following command:

bash ./scripts/common.sh

I am stuck on this step. After type this command, it showed

1581542250(1).png

Does anyone know what caused it? Any clue? Thanks.
DC

Andrew Gorcester

unread,
Feb 12, 2020, 5:17:28 PM2/12/20
to google-a...@googlegroups.com
Hi, you're probably looking at the Course Builder documentation on a windows machine, right? You can install Cygwin, or if you have Windows 10, you can instead install Windows Subsystem for Linux, and that should get you a command prompt from which you can run bash without issue.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a9745897-36db-4ca8-a434-7cc9dd747a9c%40googlegroups.com.

Dongcheng Li

unread,
Feb 13, 2020, 9:18:34 AM2/13/20
to Google App Engine
Thank you. It passed this step. However, another issue appear

Windows is now supported as of version 1.11. In the scripts directory, there are two batch files:

  • windows_start_local.bat starts a local dev server so you can explore Course Builder in your browser for testing.
  • windows_deploy.bat deploys your application to Google App Engine.

Note: If you have an older version of Windows, you may need to manually download Cygwin. Watch the terminal for errors and instructions.

When I run  windows_start_local.bat   OR  windows_deploy.bat,  the window of Command Prompt showed 

image.png

I am wondering how I can run $ xcode-select --install from Command Prompt.

Thank you for your help.

DC



On Wednesday, February 12, 2020 at 5:17:28 PM UTC-5, Andrew Gorcester wrote:
Hi, you're probably looking at the Course Builder documentation on a windows machine, right? You can install Cygwin, or if you have Windows 10, you can instead install Windows Subsystem for Linux, and that should get you a command prompt from which you can run bash without issue.

On Wed, Feb 12, 2020, 1:45 PM Dongcheng Li <ldc...@gmail.com> wrote:

Before you deploy, ensure you have all the things (like libraries, other software) you need to be successful. The deploy script mentioned in the section below will try to download any dependencies also, but in this step you will get more messages about the process. These messages may help you if anything is wrong. To download dependencies, open a command prompt and get to your coursebuilder directory. Type the following command:

bash ./scripts/common.sh

I am stuck on this step. After type this command, it showed

1581542250(1).png

Does anyone know what caused it? Any clue? Thanks.
DC

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

Dongcheng Li

unread,
Feb 13, 2020, 9:18:36 AM2/13/20
to google-a...@googlegroups.com
Thank you. It passed this step. However, another issue appear

Windows is now supported as of version 1.11. In the scripts directory, there are two batch files:

  • windows_start_local.bat starts a local dev server so you can explore Course Builder in your browser for testing.
  • windows_deploy.bat deploys your application to Google App Engine.

Note: If you have an older version of Windows, you may need to manually download Cygwin. Watch the terminal for errors and instructions.

When I run  windows_start_local.bat   OR  windows_deploy.bat,  the window of Command Prompt showed 

image.png

I am wondering how I can run $ xcode-select --install from Command Prompt.

Thank you for your help.

DC




Mua Rachmann

unread,
Feb 13, 2020, 9:36:29 AM2/13/20
to google-a...@googlegroups.com
Xcode is a tool for Mac OS if I am not mistaken. 
You should try to look for a windows installation guide rather else I doubt it will go through.

Regards,
Mua

--

MUA N. LAURENT
: Software Engineer

Akwa, Douala,CM 00237 | 174 Royal Rd, Cape Town, WC 7405, SA
Phone: (237) 670-518-086

 

Andrew Gorcester

unread,
Feb 13, 2020, 12:18:41 PM2/13/20
to google-a...@googlegroups.com
That message from pycrypto is misleading. xcode is only needed on osx. For Windows you need a different way to install a C compiler. If you are using Cygwin, there should be a Cygwin package for a compiler such as gcc available but I'm afraid I am not certain about the details.

Dongcheng Li

unread,
Feb 13, 2020, 3:15:06 PM2/13/20
to google-a...@googlegroups.com
Thank you for your reply. The issue was fixed.

Have a great day!

DC

ramesh bandaru

unread,
Apr 27, 2020, 11:50:10 AM4/27/20
to Google App Engine
how u solved this problem...
once give me the clarity about that one..

thanks in advance
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

Massage School

unread,
May 19, 2020, 7:26:52 AM5/19/20
to Google App Engine
Yes, you are right ! But under windows platform, it still shows the same error message; xcode-select --install
How can I solve this problem ? Please advise.

Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.

Olu

unread,
May 19, 2020, 9:39:10 AM5/19/20
to Google App Engine
Please to be clear, the error is not "xcode-select --install". As far as I know, the error message is a Compilation error building pycrypto-2.6.1. Using xcode-select --install is just a way to fix such types of errors when in an OSX environment. Apparently, that is not your environment as you confirmed using a Windows environment. 

That being said, in a Windows environment, there might be a number of reasons for this error and different steps suggested on this GitHub thread[1] I suggest you try the steps suggested and ensure that you are running the appropriate Python Version. 

Meanwhile, one of my colleagues successfully deployed the CourseBuilder to a GCE VM by following the following steps below. I am hopeful the steps would be helpful to those trying to deploy the CourseBuilder to a VM environment:


1. Create a Compute Engine instance with the machine type “n1-standard-1”, the default image and the “Allow full access to all Cloud APIs” option enabled.

2. Connect to the instance, and use the command “sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install unzip && sudo apt-get install -y python-dev && sudo apt-get install -y git && sudo apt-get install -y build-essential manpages-dev”.

Note that this command may need some time, and will ask for some prompts.

3. At a point, you should encounter a blue screen, inside said screen select the second option, then the first option, and finally “yes”.
Run the command “wget https://github.com/google/coursebuilder-releases/blob/master/coursebuilder_1.11.001.zip?raw=true && unzip coursebuilder_1.11.001.zip\?raw\=true” in order to download and unzip the coursebuilder information.

4. Run the command “bash coursebuilder/scripts/common.sh”.

5. After this, run the command “wget https://curl.haxx.se/ca/cacert.pem -O coursebuilder_resources_1_11_001/runtime/google_appengine/lib/httplib2/httplib2/cacerts.txt” in order to get a new certificate for Coursebuilder.

6. Finally, run the command “bash ./coursebuilder/scripts/deploy.sh exploretice --noauth_local_webserver”. It is possible that you may be prompted to open a link in a browser in order to authorize this operation.

Reply all
Reply to author
Forward
0 new messages