[web2py] Re: Internal error Ticket issued: unrecoverable

2016-08-06 Thread Massimo Di Pierro
I do not know. But I would not recommend doing web development for Google App Engine on Windows Vista. I do not know that anybody is supporting that. You will run into trouble. On Saturday, 6 August 2016 01:59:34 UTC-5, SRI HARSHA Gajavalli wrote: > > i am getting the same error even after remov

[web2py] Re: Internal error Ticket issued: unrecoverable

2016-08-05 Thread SRI HARSHA Gajavalli
i am getting the same error even after removing the compiled version On Sunday, January 23, 2011 at 8:57:16 PM UTC+5:30, Massimo Di Pierro wrote: > > You may be trying to run a compiled app on GAE. You cannot do that. > Run web2py normally first (no appserver), remove the compiled one, > then ru

[web2py] Re: Internal error while session varaible value printing

2015-09-28 Thread Leonel Câmara
Instead of: session.a= session.a + 1 Use: session.a= (session.a or 0) + 1 As session.a will return None if a isn't there and you can't add None and 1. Also you need to understand that 127.0.0.1 is the loopback address so we can't really see the tickets you have there. -- Resources: - http://w

[web2py] Re: Internal error while session varaible value printing

2015-09-27 Thread 黄祥
what is the error traceback said? perhaps you must initiate the session value first e.g. default.py def index(): session.a= 0 session.a= int(session.a) + 1 message = 'a=%s' % session.a return locals() best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/boo

Re: [web2py] Re: "internal error: [Errno 1] Operation not permitted" when attempting Pack All

2015-03-17 Thread Marco Mansilla
El Tue, 17 Mar 2015 19:38:07 -0700 (PDT) LoveWeb2py escribió: > Check your file permissions. Are you using windows or linux? > > On Tuesday, March 17, 2015 at 8:17:46 PM UTC-4, Tom Campbell wrote: > > > > Attempting to do a Manage > Pack All on a project but I get this > > message: > > > >

[web2py] Re: "internal error: [Errno 1] Operation not permitted" when attempting Pack All

2015-03-17 Thread LoveWeb2py
Check your file permissions. Are you using windows or linux? On Tuesday, March 17, 2015 at 8:17:46 PM UTC-4, Tom Campbell wrote: > > Attempting to do a Manage > Pack All on a project but I get this message: > > messageinternal error: [Errno 1] Operation not permitted: > > I am attempting to

[web2py] Re: Internal error Ticket issued: unrecoverable

2014-03-12 Thread TYRANISTAR
No I haven't (not that I know of anyway). How do i check? The command sudo chown www-data.www-data -R * doesn't return anything. And I didn't update web2py either. Τη Τρίτη, 11 Μαρτίου 2014 6:40:37 μ.μ. UTC+2, ο χρήστης Massimo Di Pierro έγραψε: > > This is usually due to web2py unable to writ

[web2py] Re: Internal error Ticket issued: unrecoverable

2014-03-11 Thread Massimo Di Pierro
This is usually due to web2py unable to write on filesystem. Did you accidentally change permissions? On Tuesday, 11 March 2014 09:20:44 UTC-5, TYRANISTAR wrote: > > Hello everyone, I have a simple application that returns a MySQL table > using a SQLFORM.grid and requires a username-password a

Re: [web2py] Re: Internal Error - Ticket unknown - only over HTTPS?!

2013-11-01 Thread Michele Comitini
Great you found the problem and the solution! You should not need 777 permissions though. Just set the owner and/or the group of your web2py app dir to the same user as the apache user (web-user as I see in your mail). As a side note I see you use WSGIDaemonProcess web2py user=web-user group=w

[web2py] Re: Internal Error - Ticket unknown - only over HTTPS?!

2013-11-01 Thread AbrahamLinksys
Also -- I'm pretty sure all the tickets turned to unknown/unrecoverable because the errors directory was also unwritable, hence the inability to see the actual error messages (which probably referred to the database most of the time... ) So a good way to check for that early on when receiving s

[web2py] Re: Internal Error - Ticket unknown - only over HTTPS?!

2013-11-01 Thread AbrahamLinksys
Hi Michele, Thanks for your response. I actually managed to solve it. To review, thanks for the idea of looking at tickets -- unfortunately, part of the issue was that tickets were not being written for these errors, thus there is nothing to unpickle :( So, since the app was not generating err

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-12 Thread lucas
it took a while to figure this out, but with the postgres repository that i am using for 9.1, the python-psycopg2 rpm that is installed on my system is from the pgdg91 repository. so i would have to conclude that the psycopg2 driver from that repository is for postgresql-9.1 and not the centos

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-12 Thread LightDot
I'd just rebuild the source RPM if I was you. Way simpler... besides you'll need to take care of the updates all by yourself now, same as for your postgres. Just taking Red Hat (or CentOS) updates and rebuilding them (couple of seconds of work) really simplifies things. Your postges RPMs are fr

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread lucas
ok, i am working on installing the psycopg2 from source, i got it to compile and it looked like it was installed under the python site_packages, but when i just try to import it into python i get >>> import psycopg2 Traceback (most recent call last): File "", line 1, in File "/usr/lib/pyth

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread LightDot
About python-psycopg2 - I'd rebuild the source rpm with your 9.1 posgresql-devel, just in case. RHEL/CentOS 6 originally ships with postgres 8.4.x, so this might be an issue. Usual caveats apply - don't (re)build rpm packages as root, etc. Regards, Ales On Tuesday, September 11, 2012 6:11:43 P

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread Massimo Di Pierro
print db._adapter.driver_name but psycopg2 always gets priority over pg8000 unless otherwise specified in driver_args. On Tuesday, 11 September 2012 11:11:43 UTC-5, lucas wrote: > > > > On Tuesday, September 11, 2012 10:35:02 AM UTC-4, Massimo Di Pierro wrote: >> >> Some problems have been repor

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread lucas
On Tuesday, September 11, 2012 10:35:02 AM UTC-4, Massimo Di Pierro wrote: > > Some problems have been reported with pg8000. Can you reproduce the errors > with psycopg2. yes, i can reinstall the psycopg2 rpm package. how do you specify and ensure that web2py is using that driver in the DAL?

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread Massimo Di Pierro
Some problems have been reported with pg8000. Can you reproduce the errors with psycopg2. Can you email me one of the corrupt tickets? I may be able to read them and see what is going on. On Tuesday, 11 September 2012 09:31:46 UTC-5, lucas wrote: > > oh cr#p, because i was able to definitely tr

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread lucas
oh cr#p, because i was able to definitely trace that cPickle.load error to the unrecoverable error. makes sense now. so how can i narrow this terrible thing down. i am using apache httpd 2.2.15 on centos 6.3, postgresql 9.1 with the web2py contrib pg8000 driver, and web2py 2.0.8. i have exclu

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread Massimo Di Pierro
This traceback means the ticket file is corrupted/truncated. On Tuesday, 11 September 2012 06:18:11 UTC-5, lucas wrote: > > ok, maybe some progress. i removed any instances of psycopg2 from my > computer and web2py by default was and is not forced to use only the > contrib/pg8000 driver. i th

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-11 Thread lucas
ok, maybe some progress. i removed any instances of psycopg2 from my computer and web2py by default was and is not forced to use only the contrib/pg8000 driver. i think i would rather use that one anyway. when i changed the pool_size from the default 0 to 16, the initial ticket/exception abo

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-07 Thread lucas
On Friday, September 7, 2012 4:57:37 AM UTC-4, Michele Comitini wrote: > > lucas, > > OK. So there is no error at SQL level. The problem is probably a closing > cursor that happens somewhere in the DAL, that is triggered by some > usage/environment peculiar to your application. > > Check the fol

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-07 Thread Michele Comitini
lucas, OK. So there is no error at SQL level. The problem is probably a closing cursor that happens somewhere in the DAL, that is triggered by some usage/environment peculiar to your application. Check the following just to be sure: 1) pooling connections. Try to work with pooled connection and

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-06 Thread lucas
> > ok, so i turned on debug5 in the postgres.conf file and restarted it. > gives lots of entries. i then waited for that type ticket to arise again, > it did, and traced to logs to that date/time stamp. the entries are > below. i really can't see anything unusual except to say that it is

Re: [web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-06 Thread Michele Comitini
lucas, I think you can try looking in postgresql logs. Change your postgresql.conf configuration file so that it logs all the queries or at least all the queries that cause errors. Instructions are inside the postgresql.conf comments. Then restart postgresql and check the logs. It will not giv

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-06 Thread lucas
the ticket frequency seems to be increasing. i put in regular linux cron to restart the httpd service in the morning, as well as, delete the sessions under that application. but i have been figuring out that if only occurs upon login, assuming the user is registered. and it seems to have som

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-04 Thread lucas
yes, i mean ticket, sorry. should i just delete the session manually or should i do it programmatically? --

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-04 Thread Massimo Di Pierro
When you say crash you meat a ticket, right? Try delete all of your session files. On Tuesday, 4 September 2012 13:11:23 UTC-5, lucas wrote: > > well, i am still having this fatal crash after login. i simplified my > code, especially in layout.html to remove all instances of db, auth, and > s

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-04 Thread lucas
well, i am still having this fatal crash after login. i simplified my code, especially in layout.html to remove all instances of db, auth, and session. or checking for not None if i must like in session. i also scanned and checked index() and other start up pages or functions. are there any

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread Massimo Di Pierro
The problem is this. Suppose you try do something that the db does not allow. For example insert a duplicate record or invalid sql etc. The database server will complain and expects you to rollback the transaction. If you do not rollback and try any other db operation, it will close the connect

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread lucas
ok, i have tons of db() accesses throughout a few thousand lines of code. thinking out loud, but since it has to do with session and/or logging in and registering, then i can begin with the initial screens wherein the cookies or such may be reset and such. i have a few ideas of where, and in

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread Massimo Di Pierro
Can you show us the action that causes the problem? I suspect you have something like this: def youraction() try: do something with db except: do something else ... For some reason "do something with db" fails and closes the db cursor. It should be def youraction()

[web2py] Re: Internal Error clicking on the "mailing list" link on the official support page

2012-08-30 Thread Massimo Di Pierro
Thanks. Fixing in 2.0.3 On Thursday, 30 August 2012 04:57:25 UTC-5, Nico Zanferrari wrote: > > Hello, > > I've found that on the official support web page ( > http://web2py.com/examples/default/support) if you click on the first > link (= *mailing list* , that points to > http://web2py.com/examp

[web2py] Re: Internal Error if args are not passed

2012-08-29 Thread Anthony
{{if equipment:}} [code to display equipment] {{pass}} Anthony On Thursday, August 30, 2012 1:03:00 AM UTC-4, SeamusSeamus wrote: > > Sure... > > controller > . > try: > equipment = db.equipment[int(request.args(0))] > except: > equipment = db.equipment(request.args(0)

[web2py] Re: Internal Error if args are not passed

2012-08-29 Thread SeamusSeamus
Sure... controller . try: equipment = db.equipment[int(request.args(0))] except: equipment = db.equipment(request.args(0)) or db(db.equipment.slug == request.args(0)).select().first() view: {{extend 'layout.html'}} {{=equipment.title}} . . {{=equipment.d

[web2py] Re: Internal Error if args are not passed

2012-08-29 Thread Anthony
I think we have to see what your function is returning and what the view is doing with it to answer that one. On Thursday, August 30, 2012 12:02:46 AM UTC-4, SeamusSeamus wrote: > > Hi, > I am passing args from my SQLForm to a page (details.html) which pretty > much shows 'details' about a prod

Re: [web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Alec Taylor
Alright, happened again, just checked the uwsgi log: tmpfile(): No space left on device [proto/http.c line 338] error parsing request :\ On Thu, Jul 26, 2012 at 2:04 AM, Alec Taylor wrote: > I didn't do anything on the website for the past 3 hours (had some more > academic research to do), and

Re: [web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Alec Taylor
I didn't do anything on the website for the past 3 hours (had some more academic research to do), and when I went back to the site, it loaded. Checking tickets, found a few of these: *OSError: [Errno 28] No space left on device: '/tmp/tmpznG08R'* + details

[web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Massimo Di Pierro
Look into admin/errors/ and look for the most recent file. You should be able to open it with an editor. Look at the last few lines. They contain the traceback. massimo On Wednesday, 25 July 2012 08:00:17 UTC-5, Alec Taylor wrote: > > I'm getting an annoying "Internal error" message on every pa

[web2py] Re: "Internal error" on every page, can't even access admin

2012-07-25 Thread Jim S
I just fought the same problem. Mine turned out to be an application error on my part. But, I found it by looking at the text file in the errors sub-directory under my application. If you look around the error files enough you'll eventually figure out what is going on. They aren't easy to r

Re: [web2py] Re: Internal Error on EC2/Ubuntu

2012-07-19 Thread lyn2py
Example: /home/www-data/web2py/applications By tree's owner do you mean the owner of web2py folder or owner of www-data folder? >From what I see, www-data folder is root:root web2py folder is www-data:www-data On Thursday, July 19, 2012 9:39:27 AM UTC+8, Jonathan Lundell wrote: > > On 18 Jul 201

Re: [web2py] Re: Internal Error on EC2/Ubuntu

2012-07-18 Thread Jonathan Lundell
On 18 Jul 2012, at 6:33 PM, lyn2py wrote: > Thanks Jonathan. I understand it better now. > > But why does web2py run into an internal error when the owner/group > permissions is not www-data:www-data? I'm assuming/guessing that web2py needs owner permissions, not group (see my 755 example for a

Re: [web2py] Re: Internal Error on EC2/Ubuntu

2012-07-18 Thread lyn2py
Thanks Jonathan. I understand it better now. But why does web2py run into an internal error when the owner/group permissions is not www-data:www-data? On Thursday, July 19, 2012 12:11:30 AM UTC+8, Jonathan Lundell wrote: > > On 18 Jul 2012, at 9:01 AM, lyn2py wrote: > > Correction: changing the

Re: [web2py] Re: Internal Error on EC2/Ubuntu

2012-07-18 Thread Jonathan Lundell
On 18 Jul 2012, at 9:01 AM, lyn2py wrote: > Correction: changing the permissions back to www-data ironed things out. > However, I would like user ubuntu to have access to www-data folder. > > How can I make it work? > > I have tried > sudo adduser ubuntu www-data > and confirmed that ubuntu bel

[web2py] Re: Internal Error on EC2/Ubuntu

2012-07-18 Thread lyn2py
Correction: changing the permissions back to www-data ironed things out. However, I would like user ubuntu to have access to www-data folder. How can I make it work? I have tried sudo adduser ubuntu www-data and confirmed that ubuntu belongs to the www-data group. But it still doesn't work. Th

Re: [web2py] Re: Internal error

2011-10-12 Thread Johann Spies
On 12 October 2011 15:31, Massimo Di Pierro wrote: > How long is the list of sids? Slite? This is not a web2py error but > most likely a driver error. Try commit after every every update. > > Thanks for your reply Massimo. The list is normally not long - between 1 and 5 most of the times although

[web2py] Re: Internal error

2011-10-12 Thread Massimo Di Pierro
How long is the list of sids? Slite? This is not a web2py error but most likely a driver error. Try commit after every every update. On Oct 12, 5:49 am, Johann Spies wrote: > I am running a script to update data and on some records I get the error: > > *** InternalError: current transaction is ab

[web2py] Re: Internal error Ticket issued: unrecoverable

2011-01-23 Thread Massimo Di Pierro
It would be nice to be able to deploy bytecode compiled code on GAE but they seem to use a different magic_number which prevents it. On Jan 23, 9:50 am, devGS wrote: > Thanks a lot! I removed the compiled version and it works now. > > On Jan 23, 5:27 pm, Massimo Di Pierro > wrote: > > > > > > >

[web2py] Re: Internal error Ticket issued: unrecoverable

2011-01-23 Thread devGS
Thanks a lot! I removed the compiled version and it works now. On Jan 23, 5:27 pm, Massimo Di Pierro wrote: > You may be trying to run a compiled app on GAE. You cannot do that. > Run web2py normally first (no appserver), remove the compiled one, > then run it. > > On Jan 23, 7:32 am, devGS wrot

[web2py] Re: Internal error Ticket issued: unrecoverable

2011-01-23 Thread Massimo Di Pierro
You may be trying to run a compiled app on GAE. You cannot do that. Run web2py normally first (no appserver), remove the compiled one, then run it. On Jan 23, 7:32 am, devGS wrote: > Update: there is an error I found in the log > > ERROR    2011-01-23 06:30:11,664 restricted.py:151] Traceback (m

[web2py] Re: Internal error Ticket issued: unrecoverable

2011-01-23 Thread devGS
Update: there is an error I found in the log ERROR2011-01-23 06:30:11,664 restricted.py:151] Traceback (most recent call last): File "C:\Users\vitamin\Desktop\web2py\gluon\main.py", line 446, in wsgibase serve_controller(request, response, session) File "C:\Users\vitamin\Desktop\web2py

[web2py] Re: Internal error Ticket issued: unrecoverable

2011-01-23 Thread devGS
It didn't work. I also tried to run it in different ways, the only thing that worked was starting web2py and GAE launcher on the same port (web2py first). The first time I tried to run it, there were no problems or errors. However that was before the above error occurred. On Jan 23, 12:45 am, Mass

[web2py] Re: Internal error Ticket issued: unrecoverable

2011-01-22 Thread Massimo Di Pierro
Run it once without GAE launcher. The problem is that it is failing to create missing folders. This may be a due to a permission issue or to gaelauncher blocking write access to file system. On Jan 22, 3:29 pm, devGS wrote: > I'm getting "Internal error Ticket issued: unrecoverable" after running

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
I'm not sure how pyodbc works internally, but you might try turning on TCP protocol on the db if it is not already enabled. On Nov 12, 11:59 pm, Crim wrote: > thanks a lot for your help xD now the only errors im getting are from > not being able to connect to my db :P i think that there is someth

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
thanks a lot for your help xD now the only errors im getting are from not being able to connect to my db :P i think that there is something in the conf of the db that is keeping me from connecting :P ps if you just right click the web2py.py and run with python .. that works too xD thanks for teach

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
No problem. Just download this: http://www.web2py.com/examples/static/web2py_src.zip and extract it somewhere. From there do: Start / Run / cmd / Hit enter cd c:\where_ever_you_put_web2py_src python web2py.py If you get grief about python being an unknown command, then it means the python exe is

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
wait i take that back it keeps throwing this error Traceback (most recent call last): File "C:/Users/SmartAssX/Desktop/test", line 3, in snt = pyodbc.connect('driver={SQL Server};server=localhost;database=stuff;uid=sa;pwd=') Error: ('08001', '[08001] [Microsoft][ODBC SQL Server Driver] [DBN

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i ran the pyodbc.connect( and it work ... it didnt do anything ie no errors so it seems like its working xD im using the windows installer so i suppose binary ... i dont mean to sound like a huge noob but i am a little and would like to know how to "install" the source file On Nov 12, 11:13 pm,

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
You would need to do snt = pyodbc.connect(...). It sounds like the driver is working though. Are you running the binary or source version of web2py. If you're running the binary version then it is using the Python 2.5 that ships with web2py. You may want to try the source version so that it uses yo

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
python 2.7 the import worked fine i tryed this next in the shell and got the following error import pyodbc snt = connect('driver={SQL Server};server=localhost;database=stuff;uid=sa;pwd=') -- Traceback (most recent call last): File "C:/Users/name/Desktop/test", line 3, in

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Start / Run / c:\python26\python.exe (or whatever your python version is) import pyodbc I see that there is only a 64bit driver for python 2.7. What version are you running? On Nov 12, 10:55 pm, Crim wrote: > you mean just > import pyodbc > db = DAL('mssql://acc:p...@localhost/stuff', pool_size=

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
you mean just import pyodbc db = DAL('mssql://acc:p...@localhost/stuff', pool_size=0) ?? On Nov 12, 10:51 pm, "mr.freeze" wrote: > Are you able to open a python shell and do this without error? If not, > there is a problem with the driver: > import pyodbc > > On Nov 12, 10:47 pm, Crim wrote: >

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Are you able to open a python shell and do this without error? If not, there is a problem with the driver: import pyodbc On Nov 12, 10:47 pm, Crim wrote: > i do > > if it makes a difference im on a 64bit system > > On Nov 12, 10:46 pm, "mr.freeze" wrote: > > > Do you have the pyodbc driver insta

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i do if it makes a difference im on a 64bit system On Nov 12, 10:46 pm, "mr.freeze" wrote: > Do you have the pyodbc driver installed?http://code.google.com/p/pyodbc/ > > On Nov 12, 10:43 pm, Crim wrote: > > > > > > > > > it gives me this in the error snapshot: > > (global name 'pyodbc' is not d

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Do you have the pyodbc driver installed? http://code.google.com/p/pyodbc/ On Nov 12, 10:43 pm, Crim wrote: > it gives me this in the error snapshot: > (global name 'pyodbc' is not defined > (tried 5 times)) > > On Nov 12, 10:40 pm, mdipierro wrote: > > > Can you post the exact error? > > There i

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
sry about that no i had fixed that part :( On Nov 12, 10:42 pm, "mr.freeze" wrote: > If that is the actual URI, then it is missing a colon after mssql. > > On Nov 12, 10:40 pm, mdipierro wrote: > > > > > > > > > Can you post the exact error? > > There is not nothing working with your URI string

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
it gives me this in the error snapshot: (global name 'pyodbc' is not defined (tried 5 times)) On Nov 12, 10:40 pm, mdipierro wrote: > Can you post the exact error? > There is not nothing working with your URI string and the password is > indeed optional. > > Massimo > > On Nov 12, 10:36 pm, Crim

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
If that is the actual URI, then it is missing a colon after mssql. On Nov 12, 10:40 pm, mdipierro wrote: > Can you post the exact error? > There is not nothing working with your URI string and the password is > indeed optional. > > Massimo > > On Nov 12, 10:36 pm, Crim wrote: > > > i wasnt able

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mdipierro
Can you post the exact error? There is not nothing working with your URI string and the password is indeed optional. Massimo On Nov 12, 10:36 pm, Crim wrote: > i wasnt able to figure out the meaning of the error... > > On Nov 12, 10:32 pm, "mr.freeze" wrote: > > > Can you post the traceback of

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i wasnt able to figure out the meaning of the error... On Nov 12, 10:32 pm, "mr.freeze" wrote: > Can you post the traceback of the error? > > On Nov 12, 5:27 pm, Crim wrote: > > > > > > > > > so this is all the code i really have for this right now > > > db = DAL('mssql//s...@localhost/master')

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Can you post the traceback of the error? On Nov 12, 5:27 pm, Crim wrote: > so this is all the code i really have for this right now > > db = DAL('mssql//s...@localhost/master') > > just trying to connect to my localhost ms sql db that i set up using > the newest version of ms sql server > >

[web2py] Re: Internal error

2010-06-17 Thread Cory Coager
The databases directory is chmod 777 and I have pysqlite-2.6.0 for python 2.4 installed and included in the path PythonPath for htaccess. Is this version not compatible? On Jun 17, 8:11 am, mdipierro wrote: > Only two possibilities come to mind: > - unable to write on filesystem > - sqllite driv

[web2py] Re: Internal error

2010-06-17 Thread mdipierro
Only two possibilities come to mind: - unable to write on filesystem - sqllite driver missing or corrupted On Jun 16, 7:17 am, Cory Coager wrote: > See above, post #5. > > On Jun 15, 11:42 pm, mdipierro wrote: > > > No. the error you reported was with postgresql 8.1. What is the > > problem w

[web2py] Re: Internal error

2010-06-16 Thread Cory Coager
See above, post #5. On Jun 15, 11:42 pm, mdipierro wrote: > No. the error you reported was with postgresql 8.1. What is the > problem with sqlite?

[web2py] Re: Internal error

2010-06-15 Thread mdipierro
No. the error you reported was with postgresql 8.1. What is the problem with sqlite? On Jun 15, 7:57 am, Cory Coager wrote: > Any idea why sqlite is not working?

[web2py] Re: Internal error

2010-06-15 Thread Cory Coager
Any idea why sqlite is not working?

[web2py] Re: Internal error

2010-06-14 Thread mdipierro
the 8.1 should not be used. the default convention is not conform to SQL and may result is security issues. On Jun 14, 10:28 am, Cory Coager wrote: > According to the postgresql 8.1 documentation, > standard_conforming_strings is a read-only variable. > > http://postgresql2.openmirrors.org/docs/8

[web2py] Re: Internal error

2010-06-14 Thread Cory Coager
According to the postgresql 8.1 documentation, standard_conforming_strings is a read-only variable. http://postgresql2.openmirrors.org/docs/8.1/static/release-8-1.html

[web2py] Re: Internal error

2010-06-14 Thread mdipierro
this should work with 8.1 and later. Is it possible that it is fixed at the postgres configuration file? On Jun 13, 9:42 pm, Cory Coager wrote: > Here is the error when using PostGreSQL: > > Traceback (most recent call last): > File "gluon/restricted.py", line 178, in restricted > exec ccode in e

[web2py] Re: Internal error

2010-06-13 Thread Cory Coager
I did end up getting it working with MySQL although I would have preferred PostGreSQL.

[web2py] Re: Internal error

2010-06-13 Thread Cory Coager
Here is the error when using PostGreSQL: Traceback (most recent call last): File "gluon/restricted.py", line 178, in restricted exec ccode in environment File "/path/to/applications/test/models/db.py", line 17, in ? db=SQLDB('postgres://user:p...@localhost:5432/database') File "gluon/sql.py", line

[web2py] Re: Internal error

2010-06-13 Thread Cory Coager
Here is the error when using SQLite: Traceback (most recent call last): File "gluon/restricted.py", line 178, in restricted exec ccode in environment File "/path/to/applications/test/models/db.py", line 15, in ? db = DAL('sqlite://storage.sqlite') File "gluon/sql.py", line 3855, in DAL raise Runt

[web2py] Re: Internal error

2010-06-13 Thread howesc
Hi Cory, it's very hard to tell from the info so far. good that you have narrowed it down to a DB issue. have you checked the error files that web2py produces to see what is in there? those "tickets" are often quite helpful. (excuse me if you already checked) my best guess though is that

[web2py] Re: Internal error

2010-06-12 Thread Cory Coager
It seems to be failing on the model. I can't seem to get any DAL working. If I do a simple hello world test it works fine. If I add in a model like sqlite or postgresql, it gives "Internal error". Whats going on here?

[web2py] Re: Internal error

2010-06-12 Thread Cory Coager
I'm using python 2.4 on a shared host. I installed hashlib, uuid, pysqlite, psycopg2, MySQL-python, PyGreSQL. I'm using web2py with mod_python with my htaccess as follows: SetHandler python-program PythonHandler web2py_modpython PythonDebug On PythonPath "sys.path + ['', '/path/to/w2env/lib/pyth

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service [SOLVED]

2010-03-09 Thread mdipierro
Thank you On Mar 9, 6:39 pm, Igor Gassko wrote: > Done :-) > > http://www.web2pyslices.com/main/slices/take_slice/72 > > On Mar 10, 1:08 am, Kuba Kucharski wrote: > > > could you, please, make a slice with both web2py and flex code? > > @http://www.web2pyslices.com/ > > it would be useful since

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
Done :-) http://www.web2pyslices.com/main/slices/take_slice/72 On Mar 10, 1:08 am, Kuba Kucharski wrote: > could you, please, make a slice with both web2py and flex code? > @http://www.web2pyslices.com/ > it would be useful since there is a few flex specialists to answer > these questions here

Re: [web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Kuba Kucharski
could you, please, make a slice with both web2py and flex code? @ http://www.web2pyslices.com/ it would be useful since there is a few flex specialists to answer these questions here -- Kuba Kucharski -- You received this message because you are subscribed to the Google Groups "web2py-users" g

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
Case solved. I used invalid URL, that why request handler didn't recognize the service call. Following is the code that works: rpc.py: --- from gluon.tools import Service service = Service(globals()) def call(): session.forget() return service() @service.amfrpc3("mydomai

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
Tried that, the situation remains the same: ticket (and HTTP 500 in log) when accessing from the browser, no ticket (and HTTP 200 in log) when calling from Flex. But now I'm quite sure that the problem is either with my Flex code (or services-config.xml) or with pyamf. I just wonder if web2py allow

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
I've debugged Flex for a while and found out that "Service.ResourceNotFound" comes over from the server. Since I don't have a clue how to debug web2py, I just dig in pyamf sources untill I found out that Service.ResourceNotFound is a string message of UnknownServiceError which is raised in \pyamf\r

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread mdipierro
One more test. delete all tickets (errors/*) and see if a new tickets is generated by the flash request. It may contain some useful info. massimo On Mar 9, 3:39 pm, Igor Gassko wrote: > I embedded it right into the library.zip of web2py by openning .egg > package and using its pyamf folder. I'm

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
I embedded it right into the library.zip of web2py by openning .egg package and using its pyamf folder. I'm quite sure that pyamf is being imported, because before I did this trick I was getting "no module named pyamf" error. I also tried using the source version (by appending it directly to app.pa

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread mdipierro
not sure but: 1) let's concentrate on the first method since that is the new way of handling this 2) you appear to be using the windows binary distribution of web2py. that does not come with pyamf and would not see it even if installed. Could that be the problem? Could you try using the source vers