[web2py] Re: Trouble starting web2py

2010-05-31 Thread szimszon
Okay. Works but requires=IS_DATE(format=T('%Y-%m-%d))), works too :) TNX. On máj. 31, 21:42, mdipierro wrote: >                 Field('expire','date', >                       label=T("Expire"), >                       requires=IS_DATE(format='%Y.%m.%d)), > > The format appears in two places,

[web2py] Re: Trouble starting web2py

2010-05-31 Thread mdipierro
Field('expire','date', label=T("Expire"), requires=IS_DATE(format='%Y.%m.%d)), The format appears in two places, the language file for the js calendar and the validator above. On May 31, 2:30 pm, szimszon wrote: > Okay. Now the validato

[web2py] Re: Trouble starting web2py

2010-05-31 Thread szimszon
Okay. Now the validator says: enter date as 1963-08-28 The 2010.05.31 isn't valid. :( But have a '%Y-%m-%d': '%Y.%m.%d' in language file and the date picker is working correctly On máj. 31, 21:17, mdipierro wrote: > h. I do not know. I need to see more about the app. > Anyway > >      

[web2py] Re: Trouble starting web2py

2010-05-31 Thread mdipierro
h. I do not know. I need to see more about the app. Anyway Field('expire','date', label=T("Expire"), requires=IS_NOT_EMPTY()), should be Field('expire','date', label=T("Expire"),

[web2py] Re: Trouble starting web2py

2010-05-31 Thread szimszon
I was able to start web2py. But I have a problem I don't know if it's existed in before... SQLite db: In hu-hu.py: '%Y-%m-%d': '%Y.%m.%d', In db.py: db.define_table('dnssec_zsk', Field('dns_id',db.dns, label=T('DNS config'),

[web2py] Re: Trouble starting web2py

2010-05-31 Thread mdipierro
I think I fixed this. Following advice from Alexandre Andrade. Please check latest trunk. Massimo On May 31, 10:35 am, szimszon wrote: > Any progress? Can I help somehow? > > On ápr. 19, 22:58, mdipierro wrote: > > > Mind that this is not the end of the story. Thesimplejsonthat ships > > with w

[web2py] Re: Trouble starting web2py

2010-05-31 Thread szimszon
Any progress? Can I help somehow? On ápr. 19, 22:58, mdipierro wrote: > Mind that this is not the end of the story. Thesimplejsonthat ships > with web2py was modified to handle date/datetime/time. By replacing > with the latest officialsimplejsonyou will may not be able to > serialize DAL records

Re: [web2py] Re: Trouble starting web2py

2010-04-21 Thread Mathieu Clabaut
Mmmmh, my bad you have to create the environment without the site packages : mkvirtualenv --no-site-packages web2py (It probably worked on my side because I've reinstalled python-simplejson, after creating the environment ...) Hope this helps... -Mathieu On Mon, Apr 19, 2010 at 13:58, szimszon

[web2py] Re: Trouble starting web2py

2010-04-19 Thread szimszon
Okay. I'll wait :) 1.77.3 isn't working yet... On ápr. 19, 22:58, mdipierro wrote: > Mind that this is not the end of the story. The simplejson that ships > with web2py was modified to handle date/datetime/time. By replacing > with the latest official simplejson you will may not be able to > ser

[web2py] Re: Trouble starting web2py

2010-04-19 Thread mdipierro
Mind that this is not the end of the story. The simplejson that ships with web2py was modified to handle date/datetime/time. By replacing with the latest official simplejson you will may not be able to serialize DAL records. One option is to include latest web2py in web2py and re-apply the patch.

[web2py] Re: Trouble starting web2py

2010-04-19 Thread szimszon
Okay, copy "/usr/share/pyshared/simplejson" to gluon/contrib seems to work for me. BigTNX. (1.77.2 :) On ápr. 19, 22:25, mdipierro wrote: > try copy simplejson into gluon/contrib/simplejson for now. > > On Apr 19, 3:23 pm, szimszon wrote: > > > > > I can't run it (1.77.1) even if I installed th

[web2py] Re: Trouble starting web2py

2010-04-19 Thread mdipierro
try copy simplejson into gluon/contrib/simplejson for now. On Apr 19, 3:23 pm, szimszon wrote: > I can't run it (1.77.1) even if I installed the simplejson 1.9.2 in > virtualenv: > > >>> sys.path > > ['', '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/ > setuptools-0.6c11-py2.5.

[web2py] Re: Trouble starting web2py

2010-04-19 Thread szimszon
I can't run it (1.77.1) even if I installed the simplejson 1.9.2 in virtualenv: >>> sys.path ['', '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/ setuptools-0.6c11-py2.5.egg', '/home/szimszon/.virtualenvs/web2py/lib/ python2.5/site-packages/simplejson-1.9.2-py2.5.egg'... On ápr.

[web2py] Re: Trouble starting web2py

2010-04-19 Thread szimszon
I got the some traceback as before :( >>> sys.path ['', '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/ setuptools-0.6c11-py2.5.egg', '/usr/lib/pymodules/python2.5', '/home/ szimszon/.virtualenvs/web2py/lib/python2.5', '/home/ szimszon/.virtualenvs/web2py/lib/python2.5/plat-linux2

Re: [web2py] Re: Trouble starting web2py

2010-04-19 Thread Mathieu Clabaut
I use virtualenvwrapper http://www.doughellmann.com/docs/virtualenvwrapper/ which seems to work like a charm. export WORKON_HOME=$HOME/.virtualenvs source /usr/bin/virtualenvwrapper.sh # put those 2 lines in your $HOME/.bashrc mkvirtualenv web2py >From here, you just have to type : workon web2py

[web2py] Re: Trouble starting web2py

2010-04-19 Thread szimszon
Is there now a quick way to start web2py without removing simplejson from debian? Tnx. On ápr. 11, 16:23, mdipierro wrote: > What's your advice about this? > > Out r version of simplejson is patched to serialize dates. We could > upgrade to the latest and re-patch and for now this problem will g

[web2py] Re: Trouble starting web2py

2010-04-12 Thread Mathieu Clabaut
I didn't try it, but perhaps the use of virtualenv should be considered : http://pypi.python.org/pypi/virtualenv (http://www.doughellmann.com/docs/virtualenvwrapper/ may be considered too)... -Mathieu On Sun, Apr 11, 2010 at 20:45, muybay wrote: > Yikes, I was a little to quick on the send but

[web2py] Re: Trouble starting web2py

2010-04-11 Thread muybay
Yikes, I was a little to quick on the send button... To finish that slightly off-topic thought, I think we have a better chance of incorporating our fork with pyfacebook. On Apr 11, 1:37 pm, muybay wrote: > I am encountering something similar with pyfacebook, we are basically > dealing with fork

[web2py] Re: Trouble starting web2py

2010-04-11 Thread muybay
I am encountering something similar with pyfacebook, we are basically dealing with forking woes. Simplejson looks like a well-maintained package, I think the clean solution would be for them to incorporate our changes but realistically that may not be feasible. So upgrading, patching and changing

[web2py] Re: Trouble starting web2py

2010-04-11 Thread mdipierro
What's your advice about this? Out r version of simplejson is patched to serialize dates. We could upgrade to the latest and re-patch and for now this problem will go away but this is not a long term solution. Clearly we must change something in the way simplejson is imported to avoid conflict. M

[web2py] Re: Trouble starting web2py

2010-04-11 Thread muybay
I have the issue also. I am going to try this suggestion and possibly diff the two versions (upgraded vs web2py simplejson). On Apr 8, 8:00 am, mdipierro wrote: > One solution is to upgrade thesimplejsonthat comes with web2py. The > problem is that the one we use has been modified to handle dates

[web2py] Re: Trouble starting web2py

2010-04-08 Thread mdipierro
One solution is to upgrade the simplejson that comes with web2py. The problem is that the one we use has been modified to handle dates. On Apr 8, 4:27 am, Johann Spies wrote: > Removing Debian's python-simplejson helped me to start web2py again - > and broke some other stuff on Debian. > > Regard

Re: [web2py] Re: Trouble starting web2py

2010-04-08 Thread Johann Spies
Removing Debian's python-simplejson helped me to start web2py again - and broke some other stuff on Debian. Regards Johann -- "Every good gift and every perfect gift is from above, and cometh down from the Father of lights, with whom is no variableness, neither shadow of turnin

Re: [web2py] Re: Trouble starting web2py

2010-04-08 Thread Johann Spies
I have exactly the same problem on Debian after I upgraded several packages this morning. I suppose Debian installed an uncompatible simplejson. Any solution yet? if not path in sys.path: sys.path.insert(0,path) os.chdir(path) did not help for me either. Regards Johann -- "Every goo

Re: [web2py] Re: Trouble starting web2py

2010-04-07 Thread Alexei Vinidiktov
It didn't work either, sorry. I've just tried to install simplejson not with a Python egg, but with a MS Windows installer, but it didn't help either. I'm getting the same traceback. On Thu, Apr 8, 2010 at 1:20 PM, mdipierro wrote: > another possible issue is that this is the order of your sys.

[web2py] Re: Trouble starting web2py

2010-04-07 Thread mdipierro
another possible issue is that this is the order of your sys.path 'C:\\Python25\\lib\\site-packages', '../gluon', while I'd be more comfortable with '../gluon', 'C:\\Python25\\lib\\site-packages' you can try change in web2py.py if not path in sys.path: sys.path.append(path) os.chdir(path)

Re: [web2py] Re: Trouble starting web2py

2010-04-07 Thread Alexei Vinidiktov
Thanks, Massimo. I've replaced the lines that you cited in your email in encoder.py. In decoder.py there were only these lines: from scanner import make_scanner try: from simplejson._speedups import scanstring as c_scanstring except ImportError: c_scanstring = None I replaced the try: .

[web2py] Re: Trouble starting web2py

2010-04-07 Thread mdipierro
The problem is that I only packages the pure c version of simplejson for portability. You installed the full one so web2py finds it and it is incompatible. You may fix it (temporarily) by editing gluon/contrib/simplejson/encode.py and decoder.py at the top they have try:... except: like try:

Re: [web2py] Re: Trouble starting web2py

2010-04-07 Thread Alexei Vinidiktov
I'm not sure I used the right way to obtain the path. I just stuck these lines in the welcome app's default/index.html view to get the sys.path: {{import sys}} {{=sys.path}} The simplejson library is located at: C:\Python25\Lib\site-packages\simplejson-2.1.1-py2.5-win32.egg I installed it via ea

[web2py] Re: Trouble starting web2py

2010-04-07 Thread mdipierro
Can you as web2py to print the sys.path? On Apr 7, 8:26 pm, Alexei Vinidiktov wrote: > Hello, > > I'm having trouble starting web2py.py on my local machine. > > I'm using web2py 1.76.5, Python 2.5.4 on Windows 7. > > I have simplejson 2.1.1 installed in site-packages. If I remove it, > web2py.py