Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-06 Thread PRACHI VAKHARIA



 

Dear Massimo and Christian,

You both were *right* about the *web2py version*. Since the latest version 
was not running or getting deployed on GAE, I used the old version which I 
had previously used to upload and deploy on GAE, hoping that might work.


So, I corrected the old version issue and used the latest version : *web2py 
2.8.2 *

 

*Dignosis*


*GAE-Launcher Problem*

It seems that when Creating a New Application on GAE-launcher, and adding 
the *Application Directory* and *Application ID* to the settings, 
GAE-launcher would create a *new folder with the Appication ID as the name*, 
and would point to it, instead of pointing at the web2py main root 
directory. This was causing the major problems during deployment.

 

GAE-Launcher Solution

I went to GAE-launcher application settings directory in Mac OS *Library*, 
and edited the PLIST file to *reset the pointer to the web2py main root 
directory* instead of the automatically created Application ID directory. 
This *solved* the problem. 



So, I thank you both very much for looking at the problem, and suggesting 
the solutions. This was really very helpful, and also very quick.

Thanks a lot.


Gratefully,

PRACHI






 


 

 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-06 Thread PRACHI VAKHARIA



 

*New Error Ticket on GAE*


What does this error mean? What is the solution to this error?



 

Traceback (most recent call last):\n File 
/base/data/home/apps/s~myapp/1.372124618390164258/gluon/main.py, line 
551, in wsgibase\n session._try_store_in_db(request, response)\n File 
/base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/globals.py, 
line 728, in _try_store_in_db\n record_id = table.insert(**dd)\n File 
/base/data/home/apps/s~myapp/1.372124618390164258/gluon/dal.py, line 
7806, in insert\n ret = 
self._db._adapter.insert(self,self._listify(fields))\n File 
/base/data/home/apps/s~myapp/1.372124618390164258/gluon/dal.py, line 
4618, in insert\n rid = Reference(tmp.key().id())\nOverflowError: Python 
int too large to convert to C long\n' p6570 s.







-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-06 Thread Massimo Di Pierro
This is the same error as before. It should not happen with 2.8.2

On Friday, 6 December 2013 12:34:58 UTC-6, PRACHI VAKHARIA wrote:




  

 *New Error Ticket on GAE*


 What does this error mean? What is the solution to this error?



  

 Traceback (most recent call last):\n File 
 /base/data/home/apps/s~myapp/1.372124618390164258/gluon/main.py, line 
 551, in wsgibase\n session._try_store_in_db(request, response)\n File 
 /base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/globals.py, 
 line 728, in _try_store_in_db\n record_id = table.insert(**dd)\n File 
 /base/data/home/apps/s~myapp/1.372124618390164258/gluon/dal.py, line 
 7806, in insert\n ret = 
 self._db._adapter.insert(self,self._listify(fields))\n File 
 /base/data/home/apps/s~myapp/1.372124618390164258/gluon/dal.py, line 
 4618, in insert\n rid = Reference(tmp.key().id())\nOverflowError: Python 
 int too large to convert to C long\n' p6570 s.









-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread James Burke
Hi Prachi,

Your code works fine for me, uploading to GAE.

It may be that your app.yaml file is configured incorrectly. Do you have it 
setup to use python 2.5 or 2.7?

# use this line for Python 2.5
#
#runtime: python


# use these lines for Python 2.7
# upload app with: appcfg.py update web2py (where 'web2py' is web2py's root 
directory)
#
runtime: python27
threadsafe: true# true for WSGI  concurrent requests (Python 2.7 only)


- url: .*
  #script: gaehandler.py # CGI
  script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
  secure: optional

Is how mine is setup, if you don't have wsgihandler.py or gaehandler.py in 
your root web2py folder then you will also need to copy them from the 
examples folder.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread PRACHI VAKHARIA



Dear James,

First, thank you very much for the response, and taking the effort to try 
out the application on GAE.



The *app.yaml* file I am using is configured just as you have stated.

 
runtime: python27
threadsafe: true

 

 
- url: .*
  script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
  secure: optional

 


 

I also have the *wsgihandler.py* and *gaehandler.py* in the *root web2py 
folder* — *I think it was already there to begin with and I did not tamper 
with it at all.*


I have used the same application and app.yaml file to upload the 
application to GAE before. Since I got a new computer, installed python2.7 
and the latest w2p and GAE-launcher, I was trying to see if everything is 
set up right and working. But it seems that it is not working once uploaded 
to GAE, whether it is from my new computer or even my old computer.



QUESTION

Were you able to upload and run the application on GAE? Did the Forms 
appear and insert-append records properly?



Eagerly awaiting your reply.



Gratefully,

PRACHI 

 

 

 

 

 



On Thursday, December 5, 2013 1:44:56 PM UTC-5, James Burke wrote:

 Hi Prachi,

 Your code works fine for me, uploading to GAE.

 It may be that your app.yaml file is configured incorrectly. Do you have 
 it setup to use python 2.5 or 2.7?

 # use this line for Python 2.5
 #
 #runtime: python


 # use these lines for Python 2.7
 # upload app with: appcfg.py update web2py (where 'web2py' is web2py's 
 root directory)
 #
 runtime: python27
 threadsafe: true# true for WSGI  concurrent requests (Python 2.7 
 only)


 - url: .*
   #script: gaehandler.py # CGI
   script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
   secure: optional

 Is how mine is setup, if you don't have wsgihandler.py or gaehandler.py in 
 your root web2py folder then you will also need to copy them from the 
 examples folder.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread James Burke
Hi Prachi

When I ran the code the form appeared. 

I didn't try the form. Will do so when I get home

James Burke 


 On 6/12/2013, at 8:28 am, PRACHI VAKHARIA prachivakha...@gmail.com wrote:
 
 
 
 
 Dear James,
 First, thank you very much for the response, and taking the effort to try out 
 the application on GAE.
 
 
 The app.yaml file I am using is configured just as you have stated.
  
 runtime: python27
 threadsafe: true
  
  
 - url: .*
   script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
   secure: optional
  
 
  
 I also have the wsgihandler.py and gaehandler.py in the root web2py folder — 
 I think it was already there to begin with and I did not tamper with it at 
 all.
 
 I have used the same application and app.yaml file to upload the application 
 to GAE before. Since I got a new computer, installed python2.7 and the latest 
 w2p and GAE-launcher, I was trying to see if everything is set up right and 
 working. But it seems that it is not working once uploaded to GAE, whether it 
 is from my new computer or even my old computer.
 
 
 QUESTION
 Were you able to upload and run the application on GAE? Did the Forms appear 
 and insert-append records properly?
 
 
 Eagerly awaiting your reply.
 
 
 Gratefully,
 PRACHI 
  
  
  
  
  
 
 
 On Thursday, December 5, 2013 1:44:56 PM UTC-5, James Burke wrote:
 Hi Prachi,
 
 Your code works fine for me, uploading to GAE.
 
 It may be that your app.yaml file is configured incorrectly. Do you have it 
 setup to use python 2.5 or 2.7?
 
 # use this line for Python 2.5
 #
 #runtime: python
 
 
 # use these lines for Python 2.7
 # upload app with: appcfg.py update web2py (where 'web2py' is web2py's root 
 directory)
 #
 runtime: python27
 threadsafe: true# true for WSGI  concurrent requests (Python 2.7 only)
 
 
 - url: .*
   #script: gaehandler.py # CGI
   script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
   secure: optional
 
 Is how mine is setup, if you don't have wsgihandler.py or gaehandler.py in 
 your root web2py folder then you will also need to copy them from the 
 examples folder.
 
 -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 --- 
 You received this message because you are subscribed to a topic in the Google 
 Groups web2py-users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/ms87Y02KlIg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
also Prachi, can you visit the GAE logs and paste in the error you are 
getting?  that might make it even quicker for us to help you sort it out.

On Thursday, December 5, 2013 1:07:37 PM UTC-8, James Burke wrote:

 Hi Prachi

 When I ran the code the form appeared. 

 I didn't try the form. Will do so when I get home

 James Burke 


 On 6/12/2013, at 8:28 am, PRACHI VAKHARIA prachiv...@gmail.comjavascript: 
 wrote:




 Dear James,

 First, thank you very much for the response, and taking the effort to try 
 out the application on GAE.



 The *app.yaml* file I am using is configured just as you have stated.

  
 runtime: python27
 threadsafe: true

  

  
 - url: .*
   script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
   secure: optional

  


  

 I also have the *wsgihandler.py* and *gaehandler.py* in the *root web2py 
 folder* — *I think it was already there to begin with and I did not 
 tamper with it at all.*


 I have used the same application and app.yaml file to upload the 
 application to GAE before. Since I got a new computer, installed python2.7 
 and the latest w2p and GAE-launcher, I was trying to see if everything is 
 set up right and working. But it seems that it is not working once uploaded 
 to GAE, whether it is from my new computer or even my old computer.



 QUESTION

 Were you able to upload and run the application on GAE? Did the Forms 
 appear and insert-append records properly?



 Eagerly awaiting your reply.



 Gratefully,

 PRACHI 

  

  

  

  

  



 On Thursday, December 5, 2013 1:44:56 PM UTC-5, James Burke wrote:

 Hi Prachi,

 Your code works fine for me, uploading to GAE.

 It may be that your app.yaml file is configured incorrectly. Do you have 
 it setup to use python 2.5 or 2.7?

 # use this line for Python 2.5
 #
 #runtime: python


 # use these lines for Python 2.7
 # upload app with: appcfg.py update web2py (where 'web2py' is web2py's 
 root directory)
 #
 runtime: python27
 threadsafe: true# true for WSGI  concurrent requests (Python 2.7 
 only)


 - url: .*
   #script: gaehandler.py # CGI
   script: gaehandler.wsgiapp# WSGI (Python 2.7 only)
   secure: optional

 Is how mine is setup, if you don't have wsgihandler.py or gaehandler.py 
 in your root web2py folder then you will also need to copy them from the 
 examples folder.

  -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source code)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/ms87Y02KlIg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Massimo Di Pierro
When posting a comment the last 5 lines are usually sufficient:

'Traceback (most recent call last):\n File /base/data/home/apps/s~pv-4-
vp/1.372124618390164258/gluon/main.py, line 551, in wsgibase\n 
session._try_store_in_db(request, response)\n File 
/base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/globals.py, 
line 728, in _try_store_in_db\n record_id = table.insert(**dd)\n File 
/base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/dal.py, line 
7806, in insert\n ret = self._db._adapter.insert(self,self._listify(fields))\n 
File /base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/dal.py, 
line 4618, in insert\n rid = Reference(tmp.key().id())\nOverflowError: 
Python int too large to convert to C long\n' p6570 s.

This looks like a bug in DAL but what web2py version are you using?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
this strikes me as an old version of web2py.  GAE upgraded IDs to be 
longs a few months back and i know we made sure the DAL in the latest 
version supports that, yet this looks like such an error. :(


On 12/5/13, 21:42 , Massimo Di Pierro wrote:

When posting a comment the last 5 lines are usually sufficient:

'Traceback (most recent call last):\n File /base/data/home/apps/s~pv-4-
vp/1.372124618390164258/gluon/main.py, line 551, in wsgibase\n
session._try_store_in_db(request, response)\n File
/base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/globals.py,
line 728, in _try_store_in_db\n record_id = table.insert(**dd)\n File
/base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/dal.py, line
7806, in insert\n ret = self._db._adapter.insert(self,self._listify(fields))\n
File /base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/dal.py,
line 4618, in insert\n rid = Reference(tmp.key().id())\nOverflowError:
Python int too large to convert to C long\n' p6570 s.

This looks like a bug in DAL but what web2py version are you using?



--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups web2py-users group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Massimo Di Pierro
Looking at this in more detail. This is a bug that was fixed some time ago. 
I believe in 2.4.2. You are using a very old version of web2py. :-(

Massimo


On Thursday, 5 December 2013 23:42:10 UTC-6, Massimo Di Pierro wrote:

 When posting a comment the last 5 lines are usually sufficient:

 'Traceback (most recent call last):\n File /base/data/home/apps/s~pv-4-
 vp/1.372124618390164258/gluon/main.py, line 551, in wsgibase\n 
 session._try_store_in_db(request, response)\n File 
 /base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/globals.py, 
 line 728, in _try_store_in_db\n record_id = table.insert(**dd)\n File 
 /base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/dal.py, line 
 7806, in insert\n ret = 
 self._db._adapter.insert(self,self._listify(fields))\n 
 File /base/data/home/apps/s~pv-4-vp/1.372124618390164258/gluon/dal.py, 
 line 4618, in insert\n rid = Reference(tmp.key().id())\nOverflowError: 
 Python int too large to convert to C long\n' p6570 s.

 This looks like a bug in DAL but what web2py version are you using?


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: GAE - Not Working || Full Code Attached

2013-12-04 Thread James Burke
Nothing looks obvious at first glance...

if the ticket issued is unrecoverable then it can be that GAE hasn't 
created the indexes for your datastore table yet. It may be just a case of 
waiting a few minutes and refreshing the page.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.