[p2pu-dev] Installation on Debian Squeeze

Totschnig, Michael Michael.Totschnig at hpi.uni-potsdam.de
Thu Jul 5 11:52:52 UTC 2012


Thank you Jose and Dirk for helping me out. I will install 2.7. then.
May I suggest to add this requirement on top of https://github.com/p2pu/lernanta/wiki/Lernanta's-Setup-Install ?

Best regards,

Michael

-----Original Message-----
From: p2pu-dev-bounces at lists.p2pu.org [mailto:p2pu-dev-bounces at lists.p2pu.org] On Behalf Of Jos Flores
Sent: Donnerstag, 5. Juli 2012 13:39
To: P2PU Technical Development
Subject: Re: [p2pu-dev] Installation on Debian Squeeze

You could also try this solution:
http://stackoverflow.com/questions/6286591/django-caught-valueerror-while-rendering-list-removex-x-not-in-list

but I wouldn't deviate much from the core if you want to use Lernanta somewhere else.

cheers,
Jose

On 5 July 2012 12:30, Dirk Uys <dirk at p2pu.org> wrote:
> We currently require python 2.7, I also didn't know :)
>
> This string: query_db_string =
> u'qs:{}::db:{}'.format(self.query_string, self.db) uses the format 
> feature in a way thats only supported in python 2.7.
>
> See:
> http://stackoverflow.com/questions/5446964/valueerror-zero-length-fiel
> d-name-in-format-error-in-python-3-0-3-1-3-2
> http://docs.python.org/library/string.html#format-string-syntax
>
> I don't know if there is any other things that relies on python 2.7?
>
> The problem is in https://github.com/paulosman/python-xrd so you can 
> change that if you want?
>
> I recommend compiling python 2.7 on the server and using that for the 
> virtual environment. I've done this before on a shared server and it 
> worked fairly well. Here is a guide of how to do that on bluehost:
> https://my.bluehost.com/cgi/help/python-install
>
> Hope that helps a bit
> Cheers
> d
>
> On Thu, Jul 5, 2012 at 1:13 PM, Totschnig, Michael 
> <Michael.Totschnig at hpi.uni-potsdam.de> wrote:
>>
>> Hello Jose,
>> Thank you for your answer. It is true that on Debian Squeeze I have Python 2.6.6. on Ubuntu 2.7.3.
>> I could not find information about Lernanta minimal requirement with respect to Python version.
>> Best regards,
>> Michael
>>
>> -----Original Message-----
>> From: p2pu-dev-bounces at lists.p2pu.org 
>> [mailto:p2pu-dev-bounces at lists.p2pu.org] On Behalf Of Jos Flores
>> Sent: Donnerstag, 5. Juli 2012 13:08
>> To: P2PU Technical Development
>> Subject: Re: [p2pu-dev] Installation on Debian Squeeze
>>
>> Hi there, are you using python 2.6 in Ubuntu too? I think it defaults to 2.7.3, but your debian box seems to be using 2.6.6. Not sure that is the cause (should it work in 2.6?).
>>
>> cheers,
>> Jose
>>
>> On 5 July 2012 10:52, Totschnig, Michael <Michael.Totschnig at hpi.uni-potsdam.de> wrote:
>> > Hello,
>> >
>> >
>> >
>> > I am trying to set up lernanta for evaluating it as a platform for 
>> > online courses, and while I succeeded without problem on a local 
>> > Ubuntu 12.04 VM, I fail with a Debian Squeeze provided on a shared VM.
>> >
>> >
>> >
>> > After following the installation instructions, and starting the web 
>> > server, accessing through web browser, gives following error:
>> >
>> >
>> >
>> > TemplateSyntaxError at /
>> >
>> > Caught ValueError while rendering: zero length field name in format
>> >
>> >
>> >
>> > Full details:
>> >
>> > http://dpaste.com/767620/
>> >
>> >
>> >
>> > Is there anything, I could have done wrong during installation?
>> >
>> >
>> >
>> > Best regards,
>> >
>> >
>> >
>> > Michael
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > p2pu-dev mailing list
>> > p2pu-dev at lists.p2pu.org
>> > http://lists.p2pu.org/mailman/listinfo/p2pu-dev
>> >
>> _______________________________________________
>> p2pu-dev mailing list
>> p2pu-dev at lists.p2pu.org
>> http://lists.p2pu.org/mailman/listinfo/p2pu-dev
>> _______________________________________________
>> p2pu-dev mailing list
>> p2pu-dev at lists.p2pu.org
>> http://lists.p2pu.org/mailman/listinfo/p2pu-dev
> _______________________________________________
> p2pu-dev mailing list
> p2pu-dev at lists.p2pu.org
> http://lists.p2pu.org/mailman/listinfo/p2pu-dev
_______________________________________________
p2pu-dev mailing list
p2pu-dev at lists.p2pu.org
http://lists.p2pu.org/mailman/listinfo/p2pu-dev


More information about the p2pu-dev mailing list