[SàT dev]Installation on CentOS6.5

Furist Vyacheslav siaffa at gmail.com
Mar 20 Mai 23:01:38 CEST 2014


Hello.

I tried to install latest release I got from
ftp://ftp.goffi.org/sat/sat.taz.bz2
Today I dived deeper in the code and found where the problem was.
Sentences like "{unicode(key): unicode(value) for key, value in
extra.items()}" isn't supported by python 2.6
It requires python 2.7
But latest CentOS 6.5 contains only 2.6 and I couldn't upgrade it using
yum. I could only build it from the source and install in parallel with
2.6. But two pythons 2.6 and 2.7 in parallel also made me troubles.
I wasted a lot of time today with it, and finally removed CentOS6.5 and
installed latest Debian 7.5 what is delivered with python 2.7 and
installation of sat went fine.
I propose to include in wiki page a note that python 2.7 is required. It
might save time for somebody next.

Finally I managed to run primitivus and ran the terminal version.
But my final aim - to install Libervia because I need to have HTML Web
client.
Installation procedure is really tricky....
In wiki is written that I have to install local XMPP server (Prosody).
Do I really need to install it if I already have XMPP server in my LAN and
I need only Web frontend to my existing XMPP server?


With best regards,
Slava.



2014-05-20 20:08 GMT+03:00 Goffi <goffi at goffi.org>:

> Hi,
>
> did you install the last release or the development version ? If it is the
> development version, when exactly did you install it ? If you still have
> the mercurial clone you can try "hg sum" to have the exact version, but as
> you follow the installation instruction which use pip, you probably don't
> have it anymore...
>
>
>
>
> On 19/05/2014 15:06, Furist Vyacheslav wrote:
>
>> Hello.
>>
>> I'm trying to run SAT on CentOS 6.5
>> Installation was done successfully according manual:
>> http://wiki.goffi.org/wiki/Salut_%C3%A0_Toi
>>
>> But it won't run:
>> ------------------------------------------------------------
>> --------------------
>> [root at centos ~]# sat
>> Unhandled Error
>> Traceback (most recent call last):
>>    File "/usr/lib64/python2.6/site-packages/twisted/application/app.py",
>> line 642, in run
>>      runApp(config)
>>    File "/usr/lib64/python2.6/site-packages/twisted/scripts/twistd.py",
>> line 23, in runApp
>>      _SomeApplicationRunner(config).run()
>>    File "/usr/lib64/python2.6/site-packages/twisted/application/app.py",
>> line 376, in run
>>      self.application = self.createOrGetApplication()
>>    File "/usr/lib64/python2.6/site-packages/twisted/application/app.py",
>> line 441, in createOrGetApplication
>>      application = getApplication(self.config, passphrase)
>> --- <exception caught here> ---
>>    File "/usr/lib64/python2.6/site-packages/twisted/application/app.py",
>> line 452, in getApplication
>>      application = service.loadApplication(filename, style, passphrase)
>>    File
>> "/usr/lib64/python2.6/site-packages/twisted/application/service.py",
>> line 405, in loadApplication
>>      application = sob.loadValueFromFile(filename, 'application',
>> passphrase)
>>    File "/usr/lib64/python2.6/site-packages/twisted/persisted/sob.py",
>> line 210, in loadValueFromFile
>>      exec fileObj in d, d
>>    File "/usr/lib/python2.6/site-packages/sat/sat.tac", line 24, in
>> <module>
>>      from sat.core.sat_main import SAT
>> exceptions.SyntaxError: invalid syntax (sat_main.py, line 475)
>>
>> Failed to load application: invalid syntax (sat_main.py, line 475)
>> ------------------------------------------------------------
>> --------------------
>>
>> [root at centos ~]# cat ~/.sat.conf
>> [DEFAULT]
>> media_dir=/home/siaffa/sat_media_dir
>>
>>
>> Please advice what's wrong?
>>
>> Thanks.
>>
>> Slava.
>>
>>
>> _______________________________________________
>> dev mailing list
>> dev at goffi.org
>> http://lists.goffi.org/listinfo/dev
>>
>>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.goffi.org/pipermail/dev/attachments/20140521/3a6c1564/attachment.html>


Plus d'informations sur la liste de diffusion dev