Re: [web2py] getting " [Errno 13] Permission denied" over and over

2015-05-29 Thread Dave S
On Thursday, May 28, 2015 at 9:33:28 PM UTC-7, Gene wrote: > > Encountered the same ticket on windows 8.1, web2py 2.9. 'Fixed' by > uninstalling McAfee, no tickets thereafter. > You might not have to uninstall; McAfee, AIUI, does provide the ability to exclude certain directories from scanning

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2015-05-28 Thread Gene
Encountered the same ticket on windows 8.1, web2py 2.9. 'Fixed' by uninstalling McAfee, no tickets thereafter. On Monday, September 15, 2014 at 11:22:15 PM UTC+8, Willoughby wrote: > > I'm late to this thread but one issue I always run into with web2py on > Windows (well, anything with SQLite) a

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-15 Thread Willoughby
I'm late to this thread but one issue I always run into with web2py on Windows (well, anything with SQLite) are virus scanners randomly locking files. Especially if they're corporate network machines. That's another avenue you might look into. On Thursday, September 4, 2014 3:22:47 AM UTC-4,

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-13 Thread Simon Ashley
Had installed the anaconda distribution so couldn't uninstall just pywin32. (needed it for other apps). No mention of it in the 8.1 registries. Renamed all pywin32 related files to non-descipt file extentions (on Win8.1) and have hammered it for the last 8 hours without issue. Another machine wi

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread JorgeH
Ok I ran out of hypothesis then On Friday, September 12, 2014 4:06:27 PM UTC-5, Niphlod wrote: > > SQLite has nothing to do with portalocker > > On Friday, September 12, 2014 10:59:21 PM UTC+2, JorgeH wrote: >> >> Hmmm >> >> I tend to think that the combination of SQLite + Windows, may have

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread Niphlod
SQLite has nothing to do with portalocker On Friday, September 12, 2014 10:59:21 PM UTC+2, JorgeH wrote: > > Hmmm > > I tend to think that the combination of SQLite + Windows, may have most > or everything to do with the prob with portalocker. > > Time will tell > > > On Friday, September 1

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread JorgeH
Hmmm I tend to think that the combination of SQLite + Windows, may have most or everything to do with the prob with portalocker. Time will tell On Friday, September 12, 2014 8:22:32 AM UTC-5, Leonel Câmara wrote: > > It may seem like it disappeared but it hasn't because the database has > no

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread Leonel Câmara
It may seem like it disappeared but it hasn't because the database has nothing to do with it, it's the files web2py uses to save the table structure and perform migrations which are creating the problem. 13 table definitions doesn't seem excessive to me and shouldn't create any problems. -- Re

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread JorgeH
Well I am already moving the app to mysql, the problem dissapeared. One thing I suspect has something to do with this issue, is that in the model file I was using 13 table definitions. Even using lazy_tables = true, this error was rising up. Almost every time pointing to a different line of the

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-12 Thread Leonel Câmara
One thing we can do to avoid this can of weird async stuff from happening (LockFileEx is asynchronous if the file is not opened in synchronous mode) is to use LOCKFILE_FAIL_IMMEDIATELY and then actively wait. Sort of the approach followed by oauth2client: https://github.com/google/oauth2client/b

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-11 Thread JorgeH
Definitely , looks sooo Random.. On Thursday, September 11, 2014 9:26:04 PM UTC-5, Leonel Câmara wrote: > > I'm going to give you guys a simple workaround - Uninstall pywin32. That > way there will be no file locking. Which should be no problem for a > development machine. If this is a productio

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-11 Thread Leonel Câmara
I'm going to give you guys a simple workaround - Uninstall pywin32. That way there will be no file locking. Which should be no problem for a development machine. If this is a production machine just turn migrations off. That said it would be nice to know what the problem is exactly. Probably s

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-11 Thread Simon Ashley
> > > quite painful on win8.1 and web2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39PythonPython 2.7.7: C:\Anaconda\python.exe (prefix: C:\Anaconda) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread JorgeH
Ok, it looked like web2py installation for win32 (not 'source' download) was using the pywin32 afterall. Something to do with the python path, perhaps., Because I change the name of the folder C:\Python27 to C:\Python27.hide just to see what happens And problem seems to be resolved after 10

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread Leonel Câmara
Derek it's because portalocker changes 'w' to 'a' when it opens the file so then it has to emulate 'w'. I have no freaking idea why portalocker does this instead of just using 'w', I'm guessing it was done to get around a quirk that once existed. OTOH I don't see why truncate is not bei

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread JorgeH
- *File C:\web2py\gluon\dal.py in file_open at line 799* code arguments variables Function argument list (self=, filename=r'C:\web2py\applications\ZenuToolkit\databases\c8b669d15150d7109e5f7ab36744a5b7_agua.table', mode='w', lock=True) - *Fil

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread Derek
ah, i see that web2py is not using the latest version of portalocker. ok, so line 122 of portalocker is "self.file.truncate()" so you don't have permission to truncate a file. And apparently the file does is not being opened in append mode... so what file? hmm, judging from the trace, it's goin

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread JorgeH
windows 7 32 bit Thanks for your answer Any help is very appreciated. On Monday, September 8, 2014 3:48:10 PM UTC-5, Derek wrote: > > just out of curiosity, what version of windows? > > Here's the possible values for os.name... > > 'posix', 'nt', 'os2', 'ce', 'java', 'riscos' > > so it looks l

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread Derek
just out of curiosity, what version of windows? Here's the possible values for os.name... 'posix', 'nt', 'os2', 'ce', 'java', 'riscos' so it looks like 'ce' or 'posix' could be returned... Is it Windows CE? On Monday, September 8, 2014 1:45:17 PM UTC-7, Derek wrote: > > Line 122 is for posix

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread Derek
Line 122 is for posix_lock, and that should not be occurring because you are on windows. That's very strange. For some reason os.name must be returning something other than 'nt'. On Monday, September 8, 2014 11:05:51 AM UTC-7, JorgeH wrote: > > > It happens on version 2.9.9 too > > Version web2p

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread JorgeH
Yes I do. But I am using the web2py package for win. Theoretically, it should not interfere .. On Monday, September 8, 2014 2:03:52 PM UTC-5, Leonel Câmara wrote: > > Jorge do you have pywin32 installed? That is very weird. > -- Resources: - http://web2py.com - http://web2py.com/book (Document

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread Leonel Câmara
Jorge do you have pywin32 installed? That is very weird. -- 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 subscri

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread JorgeH
Worse thing is that everytime this happens. Web2py freezes and I have to shut the console and reboot it. Otherwise it doesn't work anymore. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-08 Thread JorgeH
It happens on version 2.9.9 too Version web2py™ Version 2.9.9-stable+timestamp.2014.09.08.13.16.54 Python Python 2.7.6: C:\web2py\web2py.exe (prefix: C:\Python27) Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Traceback (most recent call last): File "gluon/restricted.py", line 221

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-04 Thread JorgeH
It seems to have something to do with Traceback (most recent call last): File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 220, in restricted File "C:/web2py/applications/ZenuToolkit/models/zenu.py" , li

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-04 Thread JorgeH
It's on Windows. The default user. On Thursday, September 4, 2014 2:22:47 AM UTC-5, Johann Spies wrote: > > On 3 September 2014 23:31, JorgeH > wrote: > > I discovered that by cleaning errors, cache and sessions, its work again. >> But now Im getting the error like every other time I test. >> >>

Re: [web2py] getting " [Errno 13] Permission denied" over and over

2014-09-04 Thread Johann Spies
On 3 September 2014 23:31, JorgeH wrote: I discovered that by cleaning errors, cache and sessions, its work again. > But now Im getting the error like every other time I test. > > Any hints?? > > Which user owns web2py/applications//models? Regards Johann -- Because experiencing your loyal lov

[web2py] getting " [Errno 13] Permission denied" over and over

2014-09-03 Thread JorgeH
Hello I just get the following error: [Errno 13] Permission denied everytime it points to a different line of the model. I discovered that by cleaning errors, cache and sessions, its work again. But now Im getting the error like every other time I test. Any hints?? Thanks -- Resources