I just upgraded to 1.91.4. Running the source version on Linux, I get
this in web2py.log when attempting startup:

Traceback (most recent call last):
  File "web2py.py", line 16, in <module>
    import gluon.widget
  File "/media/EZTRAIN/web2py_lin/gluon/widget.py", line 24, in
<module>
    import main
  File "/media/EZTRAIN/web2py_lin/gluon/main.py", line 88, in <module>
    version_info = open(abspath('VERSION'), 'r')
IOError: [Errno 2] No such file or directory: '/media/EZTRAIN/
web2py_lin/VERSION
'

I copied the "version" file to the name "VERSION", and was able to get
the server started. However, this would appear to be something that
should work out of the box. I don't know where the problem was
introduced. I upgraded from 1.81.4. That version of the code opened
the file like this:

   version_info = open(os.path.join(web2py_path, 'VERSION'), 'r')

The 1.91.4 version opens the file like this:

   version_info = open(abspath('VERSION'), 'r')

Either the code should be looking for the name 'version' (since that's
what is shipped) or the file should be renamed 'VERSION' (since that's
what's hardcoded in the source). Shipping 'version' and coding
'VERSION' is just asking for the problem we currently see.

Reply via email to