do you have python installed ? Source distribution means that you have a
python environment available on your computer....
>From then on (usually on windows the python installation path is
c:\python2.7 ) you just do
cd c:\where_web2py_is_extracted\
c:\python2.7\python.exe web2py.py
On Sunday, June 16, 2013 3:49:43 PM UTC+2, Marco Ippolito wrote:
>
> Hi everybody,
> before I installed the binary version of web2py but didn't manage to make
> it starting as windows service.
>
> So I decided to install the source version of web2py.
> I extracted web2py_src file in C:\
> Following the instructions on web2y site "To run from source, type:
>
> >
>
> python2.5 web2py.py "
>
> I typed in python2.7 shell "web2py.py"
> but nothing happened.
>
> in web2py directory the file "web2py.py" contains the following:
> "#!/usr/bin/env python
> # -*- coding: utf-8 -*-
>
> import os
> import sys
>
> if '__file__' in globals():
> path = os.path.dirname(os.path.abspath(__file__))
> elif hasattr(sys, 'frozen'):
> path = os.path.dirname(os.path.abspath(sys.executable)) # for py2exe
> else: # should never happen
> path = os.getcwd()
> os.chdir(path)
>
> sys.path = [path] + [p for p in sys.path if not p == path]
>
> # import gluon.import_all ##### This should be uncommented for py2exe.py
> import gluon.widget
>
> # Start Web2py and Web2py cron service!
> if __name__ == '__main__':
> try:
> from multiprocessing import freeze_support
> freeze_support()
> except:
> sys.stderr.write('Sorry, -K only supported for python 2.6-2.7\n')
> if os.environ.has_key("COVERAGE_PROCESS_START"):
> try:
> import coverage
> coverage.process_startup()
> except:
> pass
> gluon.widget.start(cron=True) "
>
> What do I have to do?
>
> Thank you in advance for your kind help
> Marco
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.