Open jubinjacobthomas opened 8 years ago
I think you can remove requests from the first import line (requests is not a built-in module). Let me know if that works and I'll test and update the code.
Removing requests from import line didnt work as it is being used in other files. I was able to run the app by manually adding the request module to the application directory. So the issue may be with the bluemix environment. Anyways the app is working fine after adding the module manually. Thanks for the reply.
Great thanks for the follow u[, did you add the module manually?
how did you add the module manually?
i downloaded the module using pip. Then pasted it to the root folder of the project
I followed the instructions and tried to push the app to bluemix. After pushing i am getting following error in bluemix logs
2016-05-30T11:28:21.136+0530[DEA/159]OUTStarting app instance (index 0) with guid 7856df92-292d-4984-8b18-767e452cf37b 2016-05-30T11:28:35.511+0530[App/0]ERRTraceback (most recent call last): 2016-05-30T11:28:35.511+0530[App/0]ERR import os, requests, json, string, datetime 2016-05-30T11:28:35.511+0530[App/0]ERR File "welcome.py", line 15, in
2016-05-30T11:28:35.511+0530[App/0]ERRImportError: No module named requests
2016-05-30T11:28:35.513+0530[App/0]OUT
2016-05-30T11:28:35.579+0530[DEA/159]ERRInstance (index 0) failed to start accepting connections