Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 18 Dec 2017, 09:17
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
SOLVED-How to run Radicale calendar hosting program in Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Mon 12 Dec 2016, 14:41    Post subject:  SOLVED-How to run Radicale calendar hosting program in Puppy  

Hi all -- i want to test radicale to use puppy on another box to host a caldev calendar for personal use. I installed radicale and the related pyton package via PPM bt upon runnning it i receive this:
Code:
sh-4.3# radicale
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/dist-packages/radicale/__main__.py", line 93, in run
    log.start()
  File "/usr/lib/python2.7/dist-packages/radicale/log.py", line 45, in start
    logging.config.fileConfig(filename)
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/radicale/radicale.log'
sh-4.3# radicale
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/dist-packages/radicale/__main__.py", line 93, in run
  File "/usr/lib/python2.7/dist-packages/radicale/log.py", line 45, in start
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/radicale/radicale.log'


Running TahrPup 6.0.5. In terminal, "python -v" shows version 2.7 installed. Any ideas what i need to do? Thoughts appreciated!

Last edited by Subito Piano on Mon 26 Dec 2016, 14:21; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11295
Location: Gatineau (Qc), Canada

PostPosted: Mon 12 Dec 2016, 16:26    Post subject:  

Great, Subito_Piano! Smile But euh... what is "radicale"?
_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1644
Location: London, England

PostPosted: Mon 12 Dec 2016, 16:58    Post subject:  

I don't know what radicale is either. This is just a long shot, but looking at the code you posted it looks like the program is trying to write to a log file that doesn't exist (or maybe it is blocked because of permissions). I have seen programs error out when this happens (eg when I compiled IceCast server). Try creating manually the path and blank file /var/log/radicale/radicale.log if it doesn't exist. If it does exist then try to change the permissions to allow the program to write to it.
_________________
Oscar in England

Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Mon 12 Dec 2016, 17:51    Post subject:  

I'll give it a spin and report back. Thanks, Oscar.

Musher -- Radicale is hailed as a lightweight and simple calendar hosting program. Right now i've a server here at home using TurnKey Linux to host my calendars and to backup my files with OwnCloud. I'd like to see if i can do this all through a Puppy setup, hopefully with radicale for the calendars and pbackup for the syncing. More info on Radicale here.

_________________
"God is love" - I John 4:12
Tahrpup 6.0.5
(A/V Linux for live digital synth; MX16 for the work laptop....Puppy couldn't start the graphics...???!?!?!)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11295
Location: Gatineau (Qc), Canada

PostPosted: Mon 12 Dec 2016, 17:55    Post subject:  

Aaaah!!! Now he tells us!!! Laughing
_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Tue 13 Dec 2016, 20:36    Post subject:  

Ah, yes Musher -- obviously the suspense WASN'T killing you... Wink

Progress, i suppose -- i create said file and open all permissions. Next i attempt to open it in terminal and get -- a blinking cursor! Rolling Eyes

I recall a similar problem when attempting to get rednotebook working in Slacko -- too many python issues and i didn't have the chops/time to figure out how to make it work so i stayed with Tahr.

_________________
"God is love" - I John 4:12
Tahrpup 6.0.5
(A/V Linux for live digital synth; MX16 for the work laptop....Puppy couldn't start the graphics...???!?!?!)
Back to top
View user's profile Send private message Visit poster's website 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Tue 13 Dec 2016, 20:44    Post subject:  

Quote:
# Config file for Radicale - A simple calendar server
# Place it into ~/.config/radicale/config (user)

[server]
base_prefix = /
can_skip_base_prefix = False
dns_lookup = False

[encoding]
request = utf-8
stock = utf-8

[auth]
type = None

[rights]
type = None

[storage]
type = filesystem
custom_handler =
filesystem_folder = ~/.config/radicale/collections

[logging]
config = ~/.config/radicale/logging
debug = False
full_environment = False

[loggers]
keys = root

[handlers]
keys = file

[formatters]
keys = full

[logger_root]
level = INFO
handlers = file

[handler_file]
class = FileHandler
args = ('/home/pacs/xyz00/users/cal/var/radicale.log',)
formatter = full

[formatter_full]
format = %(asctime)s - %(levelname)s: %(message)s

Found a example config file for Radicale on the web.
https://wiki.hostsharing.net/index.php?title=RadicaleCalDAVServer#Radicale_Konfiguration

_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Tue 13 Dec 2016, 21:09    Post subject:  

Created said file. No good. Went to said web page and created the "logging" file listed on that page below the suggested configuration file in the same folder....then i get:
Code:
sh-4.3# radicale
Traceback (most recent call last):
  File "/usr/bin/radicale", line 32, in <module>
    radicale.__main__.run()
  File "/usr/lib/python2.7/dist-packages/radicale/__main__.py", line 93, in run
    log.start()
  File "/usr/lib/python2.7/dist-packages/radicale/log.py", line 45, in start
    logging.config.fileConfig(filename)
  File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python2.7/logging/config.py", line 163, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/home/pacs/xyz00/users/cal/var/radicale.log'

Soooo....i created /hone/pacsxyzoo/users/cal/var/radicale.log and open permissions up wide and....

sans joie Sad -- back to the blinking cursor!

Lifeline, anyone?

_________________
"God is love" - I John 4:12
Tahrpup 6.0.5
(A/V Linux for live digital synth; MX16 for the work laptop....Puppy couldn't start the graphics...???!?!?!)
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2637

PostPosted: Wed 14 Dec 2016, 04:44    Post subject:  

args = ('/home/pacs/xyz00/users/cal/var/radicale.log',)
That is an example path which should be substitued with something more reasonable like:
~/cal/var/radicale.log
but you need to at least create that directory, if not an empty log file to start with.

That said, I think you could go back to using no config file at all, if you create the dir /var/log/radicale and possibly empty radicale.log file therein.
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Wed 14 Dec 2016, 11:41    Post subject:  

Thanks for idea -- will try. Probably i'd best be smart and try this on a plain vanilla Puppy (i.e., pfix=ram). Trying to squeeze this little project in among work and other "hings..."
_________________
"God is love" - I John 4:12
Tahrpup 6.0.5
(A/V Linux for live digital synth; MX16 for the work laptop....Puppy couldn't start the graphics...???!?!?!)
Back to top
View user's profile Send private message Visit poster's website 
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Mon 26 Dec 2016, 14:20    Post subject:  

AMIGO said:
Quote:
That said, I think you could go back to using no config file at all, if you create the dir /var/log/radicale and possibly empty radicale.log file therein.

Now that things have settled down and I've some free time, I tried your suggestion. Thanks amigo! That seems to have done the trick -- just by creating the directory. The log file was created automatically when starting radicale.

_________________
"God is love" - I John 4:12
Tahrpup 6.0.5
(A/V Linux for live digital synth; MX16 for the work laptop....Puppy couldn't start the graphics...???!?!?!)
Back to top
View user's profile Send private message Visit poster's website 
Subito Piano


Joined: 27 May 2007
Posts: 611
Location: UPSTATE New York

PostPosted: Sun 08 Jan 2017, 02:59    Post subject:  

For anyone trying to install Radicale: after much effort, i discovered version 0.8 is available through the Puppy Package Manager but does not work. Radicale version 1.1.1 and python-radicale 1.1.1 are both available here and work. It's Debian "strech" not "wheezy," but that didn't seem to bother my TahrPup. All other dependencies seem to already installed.
To get it configured for use, i followed the simple directions here.

_________________
"God is love" - I John 4:12
Tahrpup 6.0.5
(A/V Linux for live digital synth; MX16 for the work laptop....Puppy couldn't start the graphics...???!?!?!)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0825s ][ Queries: 11 (0.0057s) ][ GZIP on ]