librelist archives

« back to archive

Radicale installation on Windows

Radicale installation on Windows

From:
Ricardo Canastro
Date:
2011-10-27 @ 08:03
Good morning,

I have a project mainly about calendars and yesterday my boss asked me to
look arround CalDav protocol so that we have a standard client access to
scheduling information on our server.

After a few minutes of searching I found Radicale and it seems to be a nice
solution, but most documentation on instalation/configuration are linux
oriented. I would love to be able to use linux, but I really have to use
Windows for this project.

When I run "python setup.py install" I had an error on "except socket.error
, (_,message)". I just removed the comma and the installation process seemed
to workout just fine.

But when I do "python radicale --debug" i get the following message: *"can't
find __main__.py in 'radicale'  ". *What am I doing wrong?

And where will be the server installed?

Best regards,
Ricardo Canastro

Re: [radicale] Radicale installation on Windows

From:
Guillaume Ayoub
Date:
2011-10-27 @ 11:49
Le jeudi 27 octobre 2011 à 09:03 +0100, Ricardo Canastro a écrit :
> Good morning,

Hello!

> I have a project mainly about calendars and yesterday my boss asked me
> to look arround CalDav protocol so that we have a standard client
> access to scheduling information on our server. 

Nice!

> After a few minutes of searching I found Radicale and it seems to be a
> nice solution, but most documentation on instalation/configuration are
> linux oriented. I would love to be able to use linux, but I really
> have to use Windows for this project.

It sometimes happen…

> When I run "python setup.py install" I had an error on "except
> socket.error , (_,message)". I just removed the comma and the
> installation process seemed to workout just fine. 

There was a bug, that's fixed now:
https://github.com/Kozea/Radicale/commit/14a6cd10b4b33e543a1204cc76907719df814072

Thanks for the report ;).

> But when I do "python radicale --debug" i get the following
> message: "can't find __main__.py in 'radicale'  ". What am I doing
> wrong?
> And where will be the server installed? 

Technically, you do not *need* to install Radicale. It is useful for
UNIX systems, in order to have the "radicale" command available in a
shell, but you don't really need this on Windows. Going in the unzipped
archive folder and unning "radicale.py" is enough (even on Windows, I
think).

If you want to install it, here are some details about the installation:
http://docs.python.org/install/index.html

I'll try to install Radicale on Windows and tell you what's the best way
to manage this, in a hour or so.

Regards,
-- 
Guillaume

Re: [radicale] Radicale installation on Windows

From:
Guillaume Ayoub
Date:
2011-10-27 @ 12:19
Le jeudi 27 octobre 2011 à 13:49 +0200, Guillaume Ayoub a écrit :
> Le jeudi 27 octobre 2011 à 09:03 +0100, Ricardo Canastro a écrit :
> > Good morning,
> 
> Hello!
>[…]
> > But when I do "python radicale --debug" i get the following
> > message: "can't find __main__.py in 'radicale'  ". What am I doing
> > wrong?
> > And where will be the server installed? 
> 
> Technically, you do not *need* to install Radicale. It is useful for
> UNIX systems, in order to have the "radicale" command available in a
> shell, but you don't really need this on Windows. Going in the unzipped
> archive folder and unning "radicale.py" is enough (even on Windows, I
> think).
> 
> If you want to install it, here are some details about the installation:
> http://docs.python.org/install/index.html
> 
> I'll try to install Radicale on Windows and tell you what's the best way
> to manage this, in a hour or so.

After a try, installing Radicale on Windows is not working out of the
box. 2 solutions:

- Don't install it. Unzip the archive and launch radicale.py, that's
easier.

- Install it and rename [prefix]\Scripts\radicale to [prefix]\Scripts
\radicale-server.py. You can then launch [prefix]\Scripts
\radicale-server.py ([prefix] is C:\Python32\ for me).

Renaming "radicale" to "radicale-server.py" is mandatory on Windows
because:
- Windows knows that *.py files are Python scripts, and uses Python to
launch them;
- But "radicale.py" is not a good name: it makes Python use the
"radicale.py" file instead of the "radicale" package on "import
radicale". "radicale-server.py" works.

Good luck!
-- 
Guillaume