Re: [web2py] Re: Problem running Web2py DAL (Trunk) as Standalone

2012-07-25 Thread Phyo Arkar
I c, Let me check again.

Thanks!

On Thu, Jul 19, 2012 at 9:17 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Can you check if trunk now works?
>
>
>
> On Wednesday, 18 July 2012 10:55:51 UTC-5, Phyo Arkar wrote:
>>
>> Hello Massimo and all;
>>
>> I had to update to trunk version of web2py because we having issue of
>> web2py DAL not closing down connection , casuing connections to queue up
>> and then mysql no longer accept connection (Limit reached).
>>
>> But when we run it we get this error:
>>
>> It is just a simple script to test close() function..
>>
>> Please help.
>>
>> Traceback (most recent call last):
>>   File "mysql_data_test.py", line 40, in 
>> from gluon.sql import DAL,Field
>>   File "/home/lmk/Temp/web2py-web2py-**ac95b39/gluon/__init__.py", line
>> 15, in 
>> from globals import current
>>   File "/home/lmk/Temp/web2py-web2py-**ac95b39/gluon/globals.py", line
>> 18, in 
>> from streamer import streamer, stream_file_or_304_or_206,
>> DEFAULT_CHUNK_SIZE
>>   File "/home/lmk/Temp/web2py-web2py-**ac95b39/gluon/streamer.py", line
>> 15, in 
>> import rewrite
>>   File "/home/lmk/Temp/web2py-web2py-**ac95b39/gluon/rewrite.py", line
>> 27, in 
>> from fileutils import abspath, read_file
>>   File "/home/lmk/Temp/web2py-web2py-**ac95b39/gluon/fileutils.py", line
>> 388, in 
>> from settings import global_settings # we need to import settings
>> here because
>>   File "/home/lmk/Temp/web2py-web2py-**ac95b39/gluon/settings.py", line
>> 36, in 
>> version_info = open(os.path.join(global_**settings.gluon_parent,
>> 'VERSION'), 'r')
>> IOError: [Errno 2] No such file or directory:
>> '/home/lmk/Temp/web2py-web2py-**ac95b39/applications/**
>> EDCentric/modules/VERSION'
>>
>  --
>
>
>
>

-- 





[web2py] Re: Problem running Web2py DAL (Trunk) as Standalone

2012-07-18 Thread Massimo Di Pierro
Can you check if trunk now works?



On Wednesday, 18 July 2012 10:55:51 UTC-5, Phyo Arkar wrote:
>
> Hello Massimo and all;
>
> I had to update to trunk version of web2py because we having issue of 
> web2py DAL not closing down connection , casuing connections to queue up 
> and then mysql no longer accept connection (Limit reached).
>
> But when we run it we get this error:
>
> It is just a simple script to test close() function..
>
> Please help.
>
> Traceback (most recent call last):
>   File "mysql_data_test.py", line 40, in 
> from gluon.sql import DAL,Field
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py", line 15, 
> in 
> from globals import current
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py", line 18, 
> in 
> from streamer import streamer, stream_file_or_304_or_206, 
> DEFAULT_CHUNK_SIZE
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py", line 15, 
> in 
> import rewrite
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py", line 27, 
> in 
> from fileutils import abspath, read_file
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py", line 
> 388, in 
> from settings import global_settings # we need to import settings here 
> because
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py", line 36, 
> in 
> version_info = open(os.path.join(global_settings.gluon_parent, 
> 'VERSION'), 'r')
> IOError: [Errno 2] No such file or directory: 
> '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION'
>

-- 





[web2py] Re: Problem running Web2py DAL (Trunk) as Standalone

2012-07-18 Thread Massimo Di Pierro
Open a ticket. there was some recent rearrangement and optimizations of the 
code and need more testing...

On Wednesday, 18 July 2012 11:08:54 UTC-5, Phyo Arkar wrote:
>
> Commenting out : those lines
>
> version_info = open(os.path.join(global_settings.gluon_parent, 'VERSION'), 
> 'r')
> raw_version_string = version_info.read().strip()
> version_info.close()
>
> from fileutils import parse_version # we need fileutils import here, 
> because
> # fileutils also imports settings
> global_settings.web2py_version = parse_version(raw_version_string)
>
>
> Works with standalone DAL.
>
> Are those necessary?
>
>
>
> On Wednesday, July 18, 2012, Phyo Arkar wrote:
>
>> I canot comprehand why it is searching for a VERSION File inside module 
>> folder.. 
>> Might be a bug..
>>
>> On Wednesday, July 18, 2012, Phyo Arkar wrote:
>>
>>> Hello Massimo and all;
>>>
>>> I had to update to trunk version of web2py because we having issue of 
>>> web2py DAL not closing down connection , casuing connections to queue up 
>>> and then mysql no longer accept connection (Limit reached).
>>>
>>> But when we run it we get this error:
>>>
>>> It is just a simple script to test close() function..
>>>
>>> Please help.
>>>
>>> Traceback (most recent call last):
>>>   File "mysql_data_test.py", line 40, in 
>>> from gluon.sql import DAL,Field
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py", line 
>>> 15, in 
>>> from globals import current
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py", line 18, 
>>> in 
>>> from streamer import streamer, stream_file_or_304_or_206, 
>>> DEFAULT_CHUNK_SIZE
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py", line 
>>> 15, in 
>>> import rewrite
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py", line 27, 
>>> in 
>>> from fileutils import abspath, read_file
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py", line 
>>> 388, in 
>>> from settings import global_settings # we need to import settings 
>>> here because
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py", line 
>>> 36, in 
>>> version_info = open(os.path.join(global_settings.gluon_parent, 
>>> 'VERSION'), 'r')
>>> IOError: [Errno 2] No such file or directory: 
>>> '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION'
>>>
>>  

-- 





[web2py] Re: Problem running Web2py DAL (Trunk) as Standalone

2012-07-18 Thread Phyo Arkar
Commenting out : those lines

version_info = open(os.path.join(global_settings.gluon_parent, 'VERSION'),
'r')
raw_version_string = version_info.read().strip()
version_info.close()

from fileutils import parse_version # we need fileutils import here, because
# fileutils also imports settings
global_settings.web2py_version = parse_version(raw_version_string)


Works with standalone DAL.

Are those necessary?



On Wednesday, July 18, 2012, Phyo Arkar wrote:

> I canot comprehand why it is searching for a VERSION File inside module
> folder..
> Might be a bug..
>
> On Wednesday, July 18, 2012, Phyo Arkar wrote:
>
>> Hello Massimo and all;
>>
>> I had to update to trunk version of web2py because we having issue of
>> web2py DAL not closing down connection , casuing connections to queue up
>> and then mysql no longer accept connection (Limit reached).
>>
>> But when we run it we get this error:
>>
>> It is just a simple script to test close() function..
>>
>> Please help.
>>
>> Traceback (most recent call last):
>>   File "mysql_data_test.py", line 40, in 
>> from gluon.sql import DAL,Field
>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py", line 15,
>> in 
>> from globals import current
>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py", line 18,
>> in 
>> from streamer import streamer, stream_file_or_304_or_206,
>> DEFAULT_CHUNK_SIZE
>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py", line 15,
>> in 
>> import rewrite
>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py", line 27,
>> in 
>> from fileutils import abspath, read_file
>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py", line
>> 388, in 
>> from settings import global_settings # we need to import settings
>> here because
>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py", line 36,
>> in 
>> version_info = open(os.path.join(global_settings.gluon_parent,
>> 'VERSION'), 'r')
>> IOError: [Errno 2] No such file or directory:
>> '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION'
>>
>

-- 





[web2py] Re: Problem running Web2py DAL (Trunk) as Standalone

2012-07-18 Thread Phyo Arkar
I canot comprehand why it is searching for a VERSION File inside module
folder..
Might be a bug..

On Wednesday, July 18, 2012, Phyo Arkar wrote:

> Hello Massimo and all;
>
> I had to update to trunk version of web2py because we having issue of
> web2py DAL not closing down connection , casuing connections to queue up
> and then mysql no longer accept connection (Limit reached).
>
> But when we run it we get this error:
>
> It is just a simple script to test close() function..
>
> Please help.
>
> Traceback (most recent call last):
>   File "mysql_data_test.py", line 40, in 
> from gluon.sql import DAL,Field
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py", line 15,
> in 
> from globals import current
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py", line 18,
> in 
> from streamer import streamer, stream_file_or_304_or_206,
> DEFAULT_CHUNK_SIZE
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/streamer.py", line 15,
> in 
> import rewrite
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py", line 27,
> in 
> from fileutils import abspath, read_file
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py", line
> 388, in 
> from settings import global_settings # we need to import settings here
> because
>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/settings.py", line 36,
> in 
> version_info = open(os.path.join(global_settings.gluon_parent,
> 'VERSION'), 'r')
> IOError: [Errno 2] No such file or directory:
> '/home/lmk/Temp/web2py-web2py-ac95b39/applications/EDCentric/modules/VERSION'
>

--