From goffi at goffi.org Mon May 5 21:14:05 2014 From: goffi at goffi.org (Goffi) Date: Mon, 05 May 2014 21:14:05 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= Logging and debugging Message-ID: <9520733.RBojnRKh2S@necton3> G'day, Logging system has been largely refactored lastly, here are some explanations. The goal was to use a unique logging system, and as SàT can be used in different environments (Twisted, Pyjamas, Urwid, etc), the new logging system use backends. 3 backends are available: - basic backend, which use print (mainly useful for Pyjamas) - twisted backend - standard backend which use stantard logging module The logging system is inspired (and use directly for the standard backend) by standard logging module, with some special additions. logging system use options, which can be configured in 2 ways: - either with an environment variable, in the form SAT_LOG_[UPPERCASE OPTION NAME], e.g. SAT_LOG_LEVEL=debug - or with a configuration option, in the frontend section ("DEFAULT" for backend), with log_[lowercase option name] = value, e.g.: [primitivus] log_level = debug The available options are as follow: - level: logging level (default "info") - colors: can be: * no: no color at all * true: use ANSI colors only if possible (output on a tty) * force: always use ANSI colors (can be usefull to log colors in a file, to replay when needed) - fmt: logging format, as for standard logging (values are formatted as for the % operator, e.g. "%(message)s". Available attribute depends on backend, but the following ones are always available: * name: name of the logger (see below) * message: the logged message itself * level: logging level (DEBUG, INFO, WARNING, ERROR or CRITICAL) - output: where to emit the logs. The syntax is "\\output_type(options)" where (options) is not mandatory. If there is only one file backend, a short syntax "/path/to/log/file" is used. The available outputs are: * \\default: use default logging backend (for Twisted, the one given with --logfile, for standard backend it's StreamHandler on stderr) * \\file: a file, options is the path (e.g. "\\file(/tmp/sat.log)") * \\memory: log are kept in a buffer, options is the limit of logs (default 50). Only available for standard backend yet. log.memoryGet is used to retrive the logs. outputs can be combinated, some examples: * "\\default\\file(/tmp/bla.log)": use the default output and the /tmp/bla.log file * "/tmp/sat.log": use only the /tmp/sat.log file * "\\memory\\file(/tmp/toto.log)\\file(/tmp/titi.log)": use memory output, and 2 files: /tmp/toto.log and /tmp/titi.log. - logger: a regex used to filter on logger name (see below) Logger: ******* at the begining of the module, the log object is instancied as follow: from sat.core.log import getLogger log = getLogger(__name__) That's directly coming from standard logging module. That allow to know where the log is comming from. By default this information is not shown, use something like SAT_LOG_FMT='[%(name)s] %(message)s' to show it. For Twisted backend, if the log is not coming directly from SàT, the "twisted" backend is used. If logger is not specify (e.g. a module use directly log.debug without getLogger), the "root" logger is used. You can filter on logger name, using a regex (with a search not a match, i.e. you have to specify "^" to tell "from the beginning of line, and "$" for the end). Some example: SAT_LOG_LOGGER="(xep_0095|xep_0065)": show only logs coming from plugin_xep_0095.py or plugin_xep_0065.py SAT_LOG_LOGGER=twisted: show only logs generated by Twisted or an other external module, not directly by SàT SAT_LOG_LOGGER="^sat.bridge.DBus$": show only logs coming from the DBus bridge Twisted backend: *************** For Twisted backend, in debug mode a stdout logging is automaticaly added if "\\default" output is set. If you want to use stdout in non daemon mode (and if debug is not activated), you have to specify a "-" \\file yourself. Also note that before this refactoring, logging in backend was broken, and some messages were lost (like debugging informations for Deferred failure). Everything should be fixed now. Primitivus: ********* by default Primitivus use a \\memory output. To get the logs, use the command ":messages" Profile: ****** A magic FMT attribute "profile" is used to add the profile to the log. This method use introspection and slow down the logging, it's here to help debugging, but DO *NOT* USE IN PRODUCTION. To use it, you can do something like: SAT_LOG_FMT='[%(name)s {%(profile)s}] %(message)s' Important to know: ***************** Logging methods use only one argument, which can be unicode. You have do to any formatting (other that SAT_LOG_FMT formatting) before, using the "%" operator or format method. If you use unicode, be sure to use the correct unicode string (u"something"), or the logging will fail. recommandations: ***************** The default options are alright for production. If you want to develop, you can use something like: [DEFAULT] log_level=debug log_fmt="[%(name)s {%(profile)s}] %(message)s" [primitivus] log_level=debug log_fmt="%(level)s: %(message)s" [wix] log_level=debug log_fmt="[%(name)s] %(message)s" New logging system is not yet implemented in jp and Libervia. Last but not least, I have also made a small modification in the backend to use ipdb instead of pdb in debug mode. So if you are developping on the backend, I strongly recommand to install ipdb. Enjoy Goffi From goffi at goffi.org Mon May 5 21:27:51 2014 From: goffi at goffi.org (Goffi) Date: Mon, 05 May 2014 21:27:51 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?utf-8?q?Logging_and_debugging?= In-Reply-To: <9520733.RBojnRKh2S@necton3> References: <9520733.RBojnRKh2S@necton3> Message-ID: <14427528.CszRDXACHG@necton3> Sorry, the recommandation are wrong, I forgot that ConfigParser do substitution (so you need to escape the %), and quote must no be present. So the correct recommandations are as follow: recommandations: ***************** The default options are alright for production. If you want to develop, you can use something like: [DEFAULT] log_level=debug log_fmt=[%%(name)s {%%(profile)s}] %%(message)s [primitivus] log_level=debug log_fmt=%%(level)s: %%(message)s [wix] log_level=debug log_fmt=[%%(name)s] %(message)s From goffi at goffi.org Mon May 5 22:45:24 2014 From: goffi at goffi.org (Goffi) Date: Mon, 05 May 2014 22:45:24 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?utf-8?q?Logging_and_debugging?= In-Reply-To: <14427528.CszRDXACHG@necton3> References: <9520733.RBojnRKh2S@necton3> <14427528.CszRDXACHG@necton3> Message-ID: <2131436.LCuFjhxHyu@necton3> An other mistake: it's %%(levelname)s and not %(level)s Le lundi 5 mai 2014, 21:27:51 Goffi a écrit : > Sorry, the recommandation are wrong, I forgot that ConfigParser do > substitution (so you need to escape the %), and quote must no be present. > So the correct recommandations are as follow: > > > recommandations: > ***************** > The default options are alright for production. If you want to develop, > you can use something like: > > [DEFAULT] > log_level=debug > log_fmt=[%%(name)s {%%(profile)s}] %%(message)s > > [primitivus] > log_level=debug > log_fmt=%%(level)s: %%(message)s > > [wix] > log_level=debug > log_fmt=[%%(name)s] %(message)s > > > _______________________________________________ > dev mailing list > dev at goffi.org > http://lists.goffi.org/listinfo/dev From souliane at mailoo.org Fri May 16 09:48:50 2014 From: souliane at mailoo.org (Adrien) Date: Fri, 16 May 2014 09:48:50 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= [EN] security update (password encryption) Message-ID: <5375C2E2.3030608@mailoo.org> Hi, we pushed yesterday some important updates to the repository, including a database version upgrade. If you are using the development version: --> Be sure to make a copy of sat.db before you upgrade SàT. There was a remaining initialisation issue, reproducible under certain circumstances, which has been fixes. Libervia and the "asyncConnect" method (used by all frontends) are now forced to wait until the backend initialisation is fully completed. The rest concerns security updates. All passwords are now encrypted with what we call a personal key (PK). This PK is randomly generated only once per profile, and stored as a private individual value (a parameter concerning the user, but he can not access / modify it). The PK is encrypted itself with a new parameter (categroy "General", name "Password"): the profile password (PP). The PP is stored hashed in the database, so before retrieving the other values (also before establishing the XMPP connection) you need to authenticate your profile. If it works, the rest is transparent, as everything can be decrypted (in chain) from the PP. See here a schema about it: http://wiki.goffi.org/wiki/Encryption/en On new account creation, this PP is left empty for local frontends, and set to the value of the XMPP password for Libervia. --> The database upgrade does the following: generate the PK for each profile, encrypt the XMPP password with the PK, initialise the PP with the XMPP password plain value and hash it. So your PP is default to the XMPP password, you need to type it to authenticate your profile. If you want, you can change the PP to empty value: no more prompt. Libervia (and any future remote connection frontend) forbid of course to connect with empty PP. Repercussions on memory methods: - Memory.setParam now returns a Deferred - Memory.asyncGetParamA eventually decrypts the password, its synchronous version Memory.getParamA would fail on a password parameter Repercussions on the bridge: - asyncCreateProfile/asyncConnect takes a new argument "password" - asyncConnect returns a boolean (True = the connection was already established, False = the connection has been initiated, failure = wrong password) Special note for jp. Option '-c' is not longer a flag but a string to define the profile password: - no '-c': same behavior as before, do not connect the profile - '-c' with not following value: autoconnect and use the default value '' as profile password - '-c' with a following value: autoconnect and use that value as profile password Note that previous scripts may not work. For example, even if the profile password for "test1" is empty: jp disco -p test1 -c contact at host.net must be changed to: jp disco -p test1 -c -- contact at host.net Otherwise, argparse will think that "contact at host.net" is the password and that the target JID is missing. Regards, Adrien From siaffa at gmail.com Mon May 19 15:06:57 2014 From: siaffa at gmail.com (Furist Vyacheslav) Date: Mon, 19 May 2014 16:06:57 +0300 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= Installation on CentOS6.5 Message-ID: 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) --- --- 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 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. -------------- section suivante -------------- Une pièce jointe HTML a été nettoyée... URL: From souliane at mailoo.org Tue May 20 07:30:45 2014 From: souliane at mailoo.org (Adrien) Date: Tue, 20 May 2014 07:30:45 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= [EN] Reorganisation of Libervia's file hierarchy Message-ID: <537AE885.3000006@mailoo.org> Hi, the organisation of Libervia's files hierarchy has been changed for a more intuitive and flexible "tree". It now uses the "src" directory (as it's done in sat). Below the changeset description: /!\ reorganize all the file hierarchy, move the code and launching script to src: - browser_side --> src/browser - public --> src/browser_side/public - libervia.py --> src/browser/libervia_main.py - libervia_server --> src/server - libervia_server/libervia.sh --> src/libervia.sh - twisted --> src/twisted - new module src/common - split constants.py in 3 files: - src/common/constants.py - src/browser/constants.py - src/server/constants.py - output --> html (generated by pyjsbuild during the installation) - new option/parameter "data_dir" (-d) to indicates the directory containing html and server_css - setup.py installs libervia to the following paths: - src/common --> /libervia/common - src/server --> /libervia/server - src/twisted --> /twisted - html --> /libervia/html - server_side --> libervia/server_side - LIBERVIA_INSTALL environment variable takes 2 new options with prompt confirmation: - clean: remove previous installation directories - purge: remove building and previous installation directories You may need to update your sat.conf and/or launching script to update the following options/parameters: - ssl_certificate - data_dir Feel free to ask any question or share your opinion if you think that something should be changed. Best regards, Adrien From souliane at mailoo.org Tue May 20 07:43:18 2014 From: souliane at mailoo.org (Adrien) Date: Tue, 20 May 2014 07:43:18 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?iso-8859-1?q?=5BEN=5D_Reorganisati?= =?iso-8859-1?q?on_of_Libervia=27s_file_hierarchy?= In-Reply-To: <537AE885.3000006@mailoo.org> References: <537AE885.3000006@mailoo.org> Message-ID: <537AEB76.5090800@mailoo.org> There's mistake in the description, it's not: - server_side --> libervia/server_side but: - server_css --> /libervia/server_css There's no such directory called server_side, it's only used as a prefix for changeset descriptions... btw should we use now "browser" and "server" as prefixes instead of "browser side" and "server side"? On 05/20/2014 07:30 AM, Adrien wrote: > Hi, > > the organisation of Libervia's files hierarchy has been changed for a > more intuitive and flexible "tree". It now uses the "src" directory (as > it's done in sat). > > Below the changeset description: > > /!\ reorganize all the file hierarchy, move the code and launching > script to src: > > - browser_side --> src/browser > - public --> src/browser_side/public > - libervia.py --> src/browser/libervia_main.py > > - libervia_server --> src/server > - libervia_server/libervia.sh --> src/libervia.sh > > - twisted --> src/twisted > > - new module src/common > - split constants.py in 3 files: > - src/common/constants.py > - src/browser/constants.py > - src/server/constants.py > > - output --> html (generated by pyjsbuild during the installation) > - new option/parameter "data_dir" (-d) to indicates the directory > containing html and server_css > > - setup.py installs libervia to the following paths: > - src/common --> /libervia/common > - src/server --> /libervia/server > - src/twisted --> /twisted > - html --> /libervia/html > - server_side --> libervia/server_side > > - LIBERVIA_INSTALL environment variable takes 2 new options with > prompt confirmation: > - clean: remove previous installation directories > - purge: remove building and previous installation directories > > You may need to update your sat.conf and/or launching script to update > the following options/parameters: > - ssl_certificate > - data_dir > > Feel free to ask any question or share your opinion if you think that > something should be changed. > > Best regards, > Adrien > > _______________________________________________ > dev mailing list > dev at goffi.org > http://lists.goffi.org/listinfo/dev From goffi at goffi.org Tue May 20 19:08:07 2014 From: goffi at goffi.org (Goffi) Date: Tue, 20 May 2014 19:08:07 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?iso-8859-1?q?Installation_on_CentO?= =?iso-8859-1?q?S6=2E5?= In-Reply-To: References: Message-ID: <537B8BF7.2090205@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) > --- --- > 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 > 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 > From siaffa at gmail.com Tue May 20 23:01:38 2014 From: siaffa at gmail.com (Furist Vyacheslav) Date: Wed, 21 May 2014 00:01:38 +0300 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?utf-8?q?Installation_on_CentOS6=2E?= =?utf-8?q?5?= In-Reply-To: <537B8BF7.2090205@goffi.org> References: <537B8BF7.2090205@goffi.org> Message-ID: 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 : > 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) >> --- --- >> 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 >> >> 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: From goffi at goffi.org Tue May 20 23:19:50 2014 From: goffi at goffi.org (Goffi) Date: Tue, 20 May 2014 23:19:50 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?utf-8?q?Installation_on_CentOS6=2E?= =?utf-8?q?5?= In-Reply-To: References: <537B8BF7.2090205@goffi.org> Message-ID: <537BC6F6.5010505@goffi.org> Ah yes indeed, we only support python 2.7 (which is nearly 4 years old now !). In Debian SàT is packaged, you should be able to install it with apt-get install sat-xmpp-[primitivus,wix,jp]. Thank you for digging into the code anyway :). Yes installation of Libervia is tricky now, but packaging is planed, things should improve a lot in the next few months. Be careful: Libervia is not ready for production yet (except if you just want instant messaging, it should be OK for that). You don't have to install prosody localy, the local server is because if you want to create accounts from the interface, they are created using "prosodyctl" on the local machine. Actualy if you can run Primitivus, you just have to create a "libervia" account, and Libervia should run normaly. If you want to use microbloging and group permission (e.g. you want to publish a blog only to the member of your "family" group), you'll need to install the SàT PubSub component, and modify a prosody module to use it. It's really tricky because of protocol limitation, we are currently working on it to improve the standards. Keep in mind that Libervia is not ready for production, we give install instruction for developers or people who want to try. If you want to use it on a daily basis, it's probably better to come back in 1 or 2 months, we are planing to have a usable release this summer. For the record, we'll publish soon a new 0.5 version with encryption (https, database encryption and OTR), and the goal for the following release will be to move our own blogs to SàT. Cheers Goffi On 20/05/2014 23:01, Furist Vyacheslav wrote: > 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 >: > > 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) > --- --- > 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 > 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 > > > > From siaffa at gmail.com Tue May 20 23:47:28 2014 From: siaffa at gmail.com (Furist Vyacheslav) Date: Wed, 21 May 2014 00:47:28 +0300 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?utf-8?q?Installation_on_CentOS6=2E?= =?utf-8?q?5?= In-Reply-To: <537BC6F6.5010505@goffi.org> References: <537B8BF7.2090205@goffi.org> <537BC6F6.5010505@goffi.org> Message-ID: Hello! Thank you for valuable information. Of course I'll try to run it. But according your advice I won't run it in production until you release stable version. Because I have about 100 corporate users who are chatting 24/7 You right - better to wait for release. I wish you good luck in development and will wait for "green light" from you. With best regards, Slava. 2014-05-21 0:19 GMT+03:00 Goffi : > Ah yes indeed, we only support python 2.7 (which is nearly 4 years old now > !). In Debian SàT is packaged, you should be able to install it with > apt-get install sat-xmpp-[primitivus,wix,jp]. > Thank you for digging into the code anyway :). > > Yes installation of Libervia is tricky now, but packaging is planed, > things should improve a lot in the next few months. Be careful: Libervia is > not ready for production yet (except if you just want instant messaging, it > should be OK for that). > > You don't have to install prosody localy, the local server is because if > you want to create accounts from the interface, they are created using > "prosodyctl" on the local machine. Actualy if you can run Primitivus, you > just have to create a "libervia" account, and Libervia should run normaly. > If you want to use microbloging and group permission (e.g. you want to > publish a blog only to the member of your "family" group), you'll need to > install the SàT PubSub component, and modify a prosody module to use it. > > It's really tricky because of protocol limitation, we are currently > working on it to improve the standards. > > Keep in mind that Libervia is not ready for production, we give install > instruction for developers or people who want to try. If you want to use it > on a daily basis, it's probably better to come back in 1 or 2 months, we > are planing to have a usable release this summer. > > For the record, we'll publish soon a new 0.5 version with encryption > (https, database encryption and OTR), and the goal for the following > release will be to move our own blogs to SàT. > > Cheers > Goffi > > > On 20/05/2014 23:01, Furist Vyacheslav wrote: > >> 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 > >>: >> >> >> 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) >> --- --- >> 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 >> 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: From goffi at goffi.org Wed May 21 16:28:37 2014 From: goffi at goffi.org (Goffi) Date: Wed, 21 May 2014 16:28:37 +0200 Subject: =?utf-8?b?W1PDoFQgZGV2XQ==?= =?utf-8?q?Installation_on_CentOS6=2E?= =?utf-8?q?5?= In-Reply-To: References: <537B8BF7.2090205@goffi.org> <537BC6F6.5010505@goffi.org> Message-ID: <537CB815.7000705@goffi.org> Hi, I added dev@ to the the answer, so Souliane can see it (he wrote most of the Libervia documentation). there is not file transfer yet in Libervia (there should be before the end of the summer). If you just want to try, you can do it on the demo ( http://www.libervia.org ). You can add my contact (goffi at libervia.org), or create any new contact (email address is not checked, it must just look like a real address, so you can easily create 3/4 accounts to test). Pyjamas was removed from Debian, but we have managed to contacts the maintainer and Pyjamas author, and it's now back in Sid (https://ftp-master.debian.org/new/pyjamas_0.8.1.html). Libervia should be packaged in a couple of weeks too (actualy I think the maintainer is waiting for the 0.5 version which is soon to be released). The other option is to install from sources as explained in the wiki. I think you should try the online demo, it's the more easy option right now... Cheers Goffi On 21/05/2014 16:16, Furist Vyacheslav wrote: > Hello. > > I tried today to install Libervia today. But I didn't manage to do it. > Existing instruction on Wiki (http://wiki.goffi.org/wiki/Libervia/en) > isn't clear for me. > As I wrote - I don't need local XMPP server. I want to connect to my > existing XMPP server. > A also don't want to use microbloging and group permission. > I just want to test functionality of sending/receiving messages and file > transfer. > According wiki instruction: > Libervia > to install Libervia using setuptools, the pyjsbuild executable should be > accessible from your environment variable "PATH". The easiest would be: > cd pyjamas > sudo ln -sf bin/pyjsbuild /usr/bin/pyjsbuild > clone libervia repository: > hg clone http://repos.goffi.org/libervia > install Libervia: > cd libervia > python setup.py install > > My first stopper is pyjamas. > Cal you pleIt's absent in Debian repository. And didn't manage to > install it manually. How to do it? > > I would appreciate If you could help me to install Libervia. I want to > test the most importatnt features for me and decide to wait until end of > summer or not. > > Thanks in advance. > > Slava. > > 2014-05-21 0:19 GMT+03:00 Goffi >: > > Ah yes indeed, we only support python 2.7 (which is nearly 4 years > old now !). In Debian SàT is packaged, you should be able to install > it with apt-get install sat-xmpp-[primitivus,wix,jp]. > Thank you for digging into the code anyway :). > > Yes installation of Libervia is tricky now, but packaging is planed, > things should improve a lot in the next few months. Be careful: > Libervia is not ready for production yet (except if you just want > instant messaging, it should be OK for that). > > You don't have to install prosody localy, the local server is > because if you want to create accounts from the interface, they are > created using "prosodyctl" on the local machine. Actualy if you can > run Primitivus, you just have to create a "libervia" account, and > Libervia should run normaly. If you want to use microbloging and > group permission (e.g. you want to publish a blog only to the member > of your "family" group), you'll need to install the SàT PubSub > component, and modify a prosody module to use it. > > It's really tricky because of protocol limitation, we are currently > working on it to improve the standards. > > Keep in mind that Libervia is not ready for production, we give > install instruction for developers or people who want to try. If you > want to use it on a daily basis, it's probably better to come back > in 1 or 2 months, we are planing to have a usable release this summer. > > For the record, we'll publish soon a new 0.5 version with encryption > (https, database encryption and OTR), and the goal for the following > release will be to move our own blogs to SàT. > > Cheers > Goffi > > > On 20/05/2014 23:01, Furist Vyacheslav wrote: > > 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 >>: > > > 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) > --- --- > 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 > 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 > > > > > > > >