using ngix + uwsgi I get this:
File "/opt/web2py/gluon/languages.py", line 250, in read_possible_plurals
for pname in os.listdir(pdir):
OSError: [Errno 2] No such file or directory: '/gluon/contrib/rules'
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
I think absolutepath is not good
I got that too in the openshift template, but because I moved the gluon dir to another location and added it to the python path with sys.path.append(). I ended up just making a symlink into web2py/ to fix that particular issue.Are you maintaining the standard web2py structure?
On Thursday, August 30, 2012 12:46:19 PM UTC-5, Francisco Costa wrote:using ngix + uwsgi I get this:
File "/opt/web2py/gluon/languages.py", line 250, in read_possible_plurals
for pname in os.listdir(pdir):
OSError: [Errno 2] No such file or directory: '/gluon/contrib/rules'
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
I think absolutepath is not good
--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
Why mount point is ""?
these errors are still active
On Friday, August 31, 2012 10:40:04 AM UTC+1, Francisco Costa wrote:also this line 109 at gluon/main.py
version_info = open(pjoin(global_settings.gluon_parent, 'VERSION'), 'r')
IOError: [Errno 2] No such file or directory: '/VERSION'
On Friday, August 31, 2012 10:28:57 AM UTC+1, Francisco Costa wrote:Hi Massimo,
the problem now is on "/applications"
added /opt/web2py/ to pythonpath.
Traceback (most recent call last):
File "/opt/web2py/wsgihandler.py", line 33, in <module>
import gluon.main
File "/opt/web2py/gluon/main.py", line 60, in <module>
create_missing_folders()
File "/opt/web2py/gluon/admin.py", line 463, in create_missing_folders
os.mkdir(path)
OSError: [Errno 13] Permission denied: '/applications'
I need the Spoller from uwsgi,
so in my app I have a module that imports stuff for sending Email
from gluon.tools import Mail
when I comment this line the error goes away, so I suppose that importing gluon is somewhere trying to create the /applications