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 <module>
>>>     from gluon.sql import DAL,Field
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/__init__.py", line 
>>> 15, in <module>
>>>     from globals import current
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/globals.py", line 18, 
>>> in <module>
>>>     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 <module>
>>>     import rewrite
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/rewrite.py", line 27, 
>>> in <module>
>>>     from fileutils import abspath, read_file
>>>   File "/home/lmk/Temp/web2py-web2py-ac95b39/gluon/fileutils.py", line 
>>> 388, in <module>
>>>     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 <module>
>>>     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'
>>>
>>  

-- 



Reply via email to