Installing WebDAV server

F

Fokke Nauta

Hi all,

I am completely new to Python, but I'm confronted with a problem I can't
solve.
This is my question:

I'm running a PC with XP Pro32, which acts as a file server/print server/FTP
server and web server. The web server is facilitated by the Aprelium Abyss
X2 server, and has Perl and PHP support on http and https. It all works
fine.
To do some research with some calender systems and to share the Outlook
calendar I need a WebDAV server. After googling I found the Python WebDAV
server.
I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML. Now
I have a working Python app and 2 directories called PyWebDAV-0.9.4.1 and
PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI I see
the ">>>" prompt instead of the "$" prompt. But where do I place the two
directories? And there is no easy_install script in the PyXML-0.8.4
directory, only a setup.py and ez_setup.py script. I guess the latter is the
one to use. But how?

How do I proceed next?

Any help will be appreciated.
Thanks in advance.

With regards,
Fokke Nauta
 
T

Thomas 'PointedEars' Lahn

Fokke said:
I'm running a PC with XP Pro32, […]
To do some research with some calender systems and to share the Outlook
calendar I need a WebDAV server. After googling I found the Python WebDAV
server.
I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML.
Now I have a working Python app and 2 directories called PyWebDAV-0.9.4.1
and PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI

That is really not a *G*raphical User Interface, but the (text-based) Python
shell.
I see the ">>>" prompt instead of the "$" prompt.

"Doctor, my arm hurts when I move it." – "Don't move it, then."

The Python shell executes Python code. The above obviously is not Python
code, but *system* shell commands. So let the *system* command shell
execute them (as indicated by the `$' prompt, which is customary for a
sh-based UNIX/Linux shell prompt).

Since you use Windows XP, type `cmd' to get the command shell (if you knew
MS-DOS, which I doubt, you are at home now). However, you appear to have
found the *UNIX/Linux* README (and the corresponding version?) of that
server: the second command is usually how you would run a program as daemon
on Unices (run through an init script), while on Windows NT (like XP) you
would have a setup program install a service for you (maybe to execute that
command when the service is started). Look for the Windows version.
But where do I place the two directories?

You do not; let easy_install place them in the correct packages directory
(hence *easy* *install*). That is very likely what the setup.py and
ez_setup.py scripts are for (spell "ez" in English).
And there is no easy_install script in the PyXML-0.8.4
directory, only a setup.py and ez_setup.py script. I guess the latter is
the one to use. But how?
RTFM.

How do I proceed next?

Look for the Windows version. If there is none, get easy_install and use it
as described.
 
F

Fokke Nauta

Thomas 'PointedEars' Lahn said:
Fokke said:
I'm running a PC with XP Pro32, [.]
To do some research with some calender systems and to share the Outlook
calendar I need a WebDAV server. After googling I found the Python WebDAV
server.
I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML.
Now I have a working Python app and 2 directories called PyWebDAV-0.9.4.1
and PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI

That is really not a *G*raphical User Interface, but the (text-based)
Python
shell.

Yes, I noticed. But the application has the name of Python GUI.
"Doctor, my arm hurts when I move it." - "Don't move it, then."

I don't see the point here ...
The Python shell executes Python code. The above obviously is not Python
code, but *system* shell commands. So let the *system* command shell
execute them (as indicated by the `$' prompt, which is customary for a
sh-based UNIX/Linux shell prompt).

I know. I worked with SCO Unix and various sorts of Linux.
But never with Python, so I hadn't got a clue about the prompt.
Since you use Windows XP, type `cmd' to get the command shell (if you knew
MS-DOS, which I doubt, you are at home now).

I know MSDOS. I even worked with CP/M
However, you appear to have
found the *UNIX/Linux* README (and the corresponding version?) of that
server: the second command is usually how you would run a program as
daemon
on Unices (run through an init script), while on Windows NT (like XP) you
would have a setup program install a service for you (maybe to execute
that
command when the service is started). Look for the Windows version.

There is no other Windows version except the packages I mentioned, PyWebDAV
and PyXML.
The only Windows thing I got was the Python interpreter itself.
You do not; let easy_install place them in the correct packages directory
(hence *easy* *install*). That is very likely what the setup.py and
ez_setup.py scripts are for (spell "ez" in English).


RTFM.

Which fucking manual?
Look for the Windows version. If there is none, get easy_install and use
it
as described.

Thanks for your quick reply.
This means "Show over"?

Fokke
 
T

Thomas 'PointedEars' Lahn

Fokke said:

It's attribution _line_, not attribution novel. Your quotes are hardly
legible said:
Fokke said:
I'm running a PC with XP Pro32, [.]
[…] In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI
That is really not a *G*raphical User Interface, but the (text-based)
Python shell.

Yes, I noticed. But the application has the name of Python GUI.

ACK. Admittedly I cannot remember having used Python on Windows (XP) except
via Cygwin.
I don't see the point here ...

Do not run `python' or the "Python GUI", then.
I know. I worked with SCO Unix and various sorts of Linux.
But never with Python, so I hadn't got a clue about the prompt.

Come on, with that experience you see a `$' and those commands and don't
realize it is (ba)sh?
I know MSDOS. I even worked with CP/M

Good for you.
There is no other Windows version except the packages I mentioned,
PyWebDAV and PyXML. The only Windows thing I got was the Python
interpreter itself.

Has it not occurred to you to STFW for "easy_install" first?
Which fucking manual?

That of the server, on Windows-related information. Or that of
easy_install. Or Python. Whichever comes first.
Thanks for your quick reply.
This means "Show over"?

No, it means "Do your homework".
 
P

Paul Kölle

Hi,

Am 30.08.2011 22:00, schrieb Fokke Nauta:
Hi all,

I am completely new to Python, but I'm confronted with a problem I can't
solve.
Welcome to python.
This is my question: [snip]

I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML. Now
I have a working Python app and 2 directories called PyWebDAV-0.9.4.1 and
PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI I see
the ">>>" prompt instead of the "$" prompt. But where do I place the two
directories? And there is no easy_install script in the PyXML-0.8.4
directory, only a setup.py and ez_setup.py script. I guess the latter is the
one to use. But how?
You dont install from "Python GUI", use normal cmd, navigate to the
folder you downloaded PyXML and PyWebDAV and run "python setup.py
install" (python.exe has to be in your PATH). Then you have to find the
startup-script "davserver". Find your python installation directory and
look into <Install dir>/Tools/Scripts, in my computer this is
E:\python27\Tools\Scripts. PyXML and PyWebDAV get installed in the
site-packages folder i.e. E:\python27\Lib/site-packages. You might have
to look for "davserver" there...

hth
Paul
 
F

Fokke Nauta

Thomas 'PointedEars' Lahn said:
Fokke said:

It's attribution _line_, not attribution novel. Your quotes are hardly
legible said:
Fokke Nauta wrote:
I'm running a PC with XP Pro32, [.]
[.] In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI
That is really not a *G*raphical User Interface, but the (text-based)
Python shell.

Yes, I noticed. But the application has the name of Python GUI.

ACK. Admittedly I cannot remember having used Python on Windows (XP)
except
via Cygwin.
I don't see the point here ...

Do not run `python' or the "Python GUI", then.
I know. I worked with SCO Unix and various sorts of Linux.
But never with Python, so I hadn't got a clue about the prompt.

Come on, with that experience you see a `$' and those commands and don't
realize it is (ba)sh?

Ofcourse I realized it was Unix/Linux. I already could tell that as the
packages I downloaded were tar.gz files.
So I unpacked them and expected to run a Python installer script from the
Python command line.
Hence my question "How do I do that", but perhaps I did not make myself
clear enough.

Tried to run the Python installer script from the DOS command line but that
resulted in an error.

As I have Cygwin running as well, I could try to install it there instead of
in Windows.
Good for you.


Has it not occurred to you to STFW for "easy_install" first?

What do you mean by STFW?

I wasn't aware that easy_install was a utility. Downloaded and installed the
Windows version and run easy_install pywebdav.
It downloaded something, installed something and finished something.
But, once again, don't know how to proceed.
Otherwise I'll give it a try under Cygwin.
That of the server, on Windows-related information. Or that of
easy_install. Or Python. Whichever comes first.

It's my own server and I didn't write a manual for it.
In the manual of Easy_install it says how to install packaged etc and I did
sucessfully.
There is no furter information as how to proceed. That's why I posted my
question here.

I did and it worked. What's next?

Fokke
 
L

Laszlo Nagy

What do you mean by STFW? Search The Fucking Web ?
I wasn't aware that easy_install was a utility. Downloaded and installed the
Windows version and run easy_install pywebdav.
It downloaded something, installed something and finished something. Then it's installed!
But, once again, don't know how to proceed.
Is that so hard? I have never used pywebdav but the first page I hit
through Google search is:

http://code.google.com/p/pywebdav/

Where it says:
Installation and setup of server can be as easy as follows:

$ easy_installPyWebDAV
$ davserver-D/tmp-n-J
Starting upPyWebDAV server(version0.9.2-dev)
So you successfully ran easy_install. Then I guess you will have to look
for a program named "davserver" and start it up. I suspect that
searching for "davserver.*" under your site-packages dir or Python
installation dir will do.

L
 
F

Fokke Nauta

Paul Kölle said:
Hi,

Am 30.08.2011 22:00, schrieb Fokke Nauta:
Hi all,

I am completely new to Python, but I'm confronted with a problem I can't
solve.
Welcome to python.
This is my question: [snip]

I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML.
Now
I have a working Python app and 2 directories called PyWebDAV-0.9.4.1 and
PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI I see
the ">>>" prompt instead of the "$" prompt. But where do I place the two
directories? And there is no easy_install script in the PyXML-0.8.4
directory, only a setup.py and ez_setup.py script. I guess the latter is
the
one to use. But how?
You dont install from "Python GUI", use normal cmd, navigate to the folder
you downloaded PyXML and PyWebDAV and run "python setup.py install"
(python.exe has to be in your PATH). Then you have to find the
startup-script "davserver". Find your python installation directory and
look into <Install dir>/Tools/Scripts, in my computer this is
E:\python27\Tools\Scripts. PyXML and PyWebDAV get installed in the
site-packages folder i.e. E:\python27\Lib/site-packages. You might have to
look for "davserver" there...

Thanks, Paul.

I ran "python setup.py install" in both the PyXML and PyWebDAV directories.
A lot of things happened and are added into those directories and I guess it
will be OK.
Next step, the startup-script "davserver". There is no script as such, also
not in \python27\tools\scripts.
I found 2 similar scripts:
1. server.py in D:\Python27\WebDAV\PyWebDAV\DAVServer
2. WebDAVServer.py in D:\Python27\WebDAV\PyWebDAV\DAV

Which one is the one to use?

I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer

In this file it says:
"# Auth Database Table, Must exists in database prior to firstrun
dbtable=webDav

# Create User Database Table and Insert system user"

I created in MySQL a database called webDav.
I can create a table called User, but how many fields?

With regards,
Fokke
 
F

Fokke Nauta

Laszlo Nagy said:
Search The Fucking Web ?

OK, the modern version of RTFM.
Is that so hard? I have never used pywebdav but the first page I hit
through Google search is:

http://code.google.com/p/pywebdav/

I've been there.
Where it says:

Yes, but that's Unix/Linux again.
But I'm in Windows, without experience with Python.
So you successfully ran easy_install. Then I guess you will have to look
for a program named "davserver" and start it up. I suspect that searching
for "davserver.*" under your site-packages dir or Python installation dir
will do.

Fokke
 
L

Laszlo Nagy

Yes, but that's Unix/Linux again.
But I'm in Windows, without experience with Python.
Not really... The "easy_install" command is the same on windows. Maybe
the command prompt is different, but the command itself is the same.
Same is true with the "davserver" command. If you can find a
"davserver.exe" or "davserver.py" or "davserver.pyw" file under
site-packages or tools/scripts, then that will be the program that you
need to start up. No magic.

L
 
F

Fokke Nauta

Laszlo Nagy said:
Not really... The "easy_install" command is the same on windows. Maybe the
command prompt is different, but the command itself is the same. Same is
true with the "davserver" command. If you can find a "davserver.exe" or
"davserver.py" or "davserver.pyw" file under site-packages or
tools/scripts, then that will be the program that you need to start up. No
magic.

Actually, I installed easy_install setuptools for Windows
(setuptools-0.6c11.win32-py2.7.exe). Running easy_install generated an error
message:
"Setuptools version 0.6c9 or greater has been installed.
(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)"

I did, quite something happened but the same error message came back when
retrying.

So, I installed it another way, indicated by Paul Kölle:
"navigate to the folder you downloaded PyXML and PyWebDAV and run "python
setup.py
install" (python.exe has to be in your PATH). "

That worked fine, but:

There is no davserver script or executable. Please read my response to Paul
Kölle.

Fokke
 
P

Paul Kölle

Hi, answers below...

Am 31.08.2011 14:18, schrieb Fokke Nauta:
Paul Kölle said:
Hi,

Am 30.08.2011 22:00, schrieb Fokke Nauta:
Hi all,

I am completely new to Python, but I'm confronted with a problem I can't
solve.
Welcome to python.
This is my question: [snip]

I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML.
Now
I have a working Python app and 2 directories called PyWebDAV-0.9.4.1 and
PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI I see
the ">>>" prompt instead of the "$" prompt. But where do I place the two
directories? And there is no easy_install script in the PyXML-0.8.4
directory, only a setup.py and ez_setup.py script. I guess the latter is
the
one to use. But how?
You dont install from "Python GUI", use normal cmd, navigate to the folder
you downloaded PyXML and PyWebDAV and run "python setup.py install"
(python.exe has to be in your PATH). Then you have to find the
startup-script "davserver". Find your python installation directory and
look into<Install dir>/Tools/Scripts, in my computer this is
E:\python27\Tools\Scripts. PyXML and PyWebDAV get installed in the
site-packages folder i.e. E:\python27\Lib/site-packages. You might have to
look for "davserver" there...

Thanks, Paul.

I ran "python setup.py install" in both the PyXML and PyWebDAV directories.
A lot of things happened and are added into those directories and I guess it
will be OK.
Next step, the startup-script "davserver". There is no script as such, also
not in \python27\tools\scripts.
I found 2 similar scripts:
1. server.py in D:\Python27\WebDAV\PyWebDAV\DAVServer
2. WebDAVServer.py in D:\Python27\WebDAV\PyWebDAV\DAV

Which one is the one to use?
Your install locations look odd, but it might work nevertheless. The
server is in DAVServer\server.py, you can look at the file and you will see:

if __name__ == '__main__':
run()

at the bottom. This is the "entry point" of a python script if called
from the command line.

My install looks a bit different but I can start the server as follows:
python.exe
E:\Python27\Lib\site-packages\pywebdav-0.9.4.1-py2.7.egg\DAVServer\server.py
-D c:\home -n
WARNING:pywebdav:Authentication disabled!
Listening on localhost (8008)
I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer
I would use a config file outside the program directory and use the -c
or --config switch, run server.py without arguments to see possible
startup options.
In this file it says:
"# Auth Database Table, Must exists in database prior to firstrun
dbtable=webDav

# Create User Database Table and Insert system user"

I created in MySQL a database called webDav.
I can create a table called User, but how many fields?
Don't know if that's documented somewhere but you can just look at the
code in mysqlauth.py in the same directory as server.py. Seems it needs
three columns, (User<string>,Pass<string>,can_write<0|1>) but I haven't
tried.

cheers
Paul
 
D

Dennis Lee Bieber

Ofcourse I realized it was Unix/Linux. I already could tell that as the
packages I downloaded were tar.gz files.
So I unpacked them and expected to run a Python installer script from the
Python command line.
Hence my question "How do I do that", but perhaps I did not make myself
clear enough.
NO Python package installer runs "from the Python command line" (ie;
from a Python interactive session prompt).

Typically you run them from the OS command interpreter. If the
installer is a .py file and the associations are correct, the Python
interpreter will be started to process the installer script. If the
associations aren't set, you may have to enter

python installer.py

at the system prompt instead of

installer.py
Tried to run the Python installer script from the DOS command line but that
resulted in an error.
Okay -- so what was the error?
 
D

Dennis Lee Bieber

I ran "python setup.py install" in both the PyXML and PyWebDAV directories.
A lot of things happened and are added into those directories and I guess it
will be OK.
Next step, the startup-script "davserver". There is no script as such, also
not in \python27\tools\scripts.
I found 2 similar scripts:
1. server.py in D:\Python27\WebDAV\PyWebDAV\DAVServer
2. WebDAVServer.py in D:\Python27\WebDAV\PyWebDAV\DAV

Which one is the one to use?

I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer

In this file it says:
"# Auth Database Table, Must exists in database prior to firstrun
dbtable=webDav

# Create User Database Table and Insert system user"

I created in MySQL a database called webDav.
I can create a table called User, but how many fields?
I'd suggest browsing the server code to find the MySQLdb calls and
see what it requests... (mysqlqauth.py).

Note that there are two layers involved here...

The MySQL authorized user/password for the connection string TO the
webDAV table, and then webDAV authorized user/passwords IN said table.

Note that dbconn.py defines a class which included a method to
create the table and a method to add users. Oh, and a "first_run" method
which creates the table and inserts supplied user/password pair. I don't
have time to search the code for if that is used, or if you'd have to
manually invoke it somewhere.


From the little I've looked at, while PywebDAV includes working
servers -- they are really demo servers... The package appears to be
designed for the user to develop their customized version.
 
D

Dennis Lee Bieber

I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer

In this file it says:
"# Auth Database Table, Must exists in database prior to firstrun
dbtable=webDav

# Create User Database Table and Insert system user"

I created in MySQL a database called webDav.
I can create a table called User, but how many fields?
After looking at the config file…

I presume you have specified the MySQL username/password
(personally, and out of paranoia, I’d create a webDAV user/password that
only has access rights to the specified webDAV database).

Next, if you’d read further and didn’t take the comment as the
instruction… set
firstrun=1
to tell the server this is the first time it is being run – IT WILL
create the database table (after the first start, reset the flag to 0 to
speed up later runs).

Later in the config file set
mysql_auth=1
to enable the use of MySQL, and set the admin user/password to what you
plan to have it use.

You probably want to set
daemonize=1
(maybe after first run)

Oh, and don’t forget to set the main data directory and any
port/host changes.

Start the server – it should connect to MySQL, create the table, and
add the admin user to the table.

Shutdown, and set firstrun=0 to save some subsequent checking...
 
F

Fokke Nauta

Paul Kölle said:
Hi, answers below...

Am 31.08.2011 14:18, schrieb Fokke Nauta:
Paul Kölle said:
Hi,

Am 30.08.2011 22:00, schrieb Fokke Nauta:
Hi all,

I am completely new to Python, but I'm confronted with a problem I
can't
solve.
Welcome to python.

This is my question:
[snip]

I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML.
Now
I have a working Python app and 2 directories called PyWebDAV-0.9.4.1
and
PyXML-0.8.4. In the PyWebDAV README it says:

Installation and setup of server can be as easy as follows:

$ easy_install PyWebDAV
$ davserver -D /tmp -n -J

But of course it doesn't work like that. When I start up Python GUI I
see
the ">>>" prompt instead of the "$" prompt. But where do I place the
two
directories? And there is no easy_install script in the PyXML-0.8.4
directory, only a setup.py and ez_setup.py script. I guess the latter
is
the
one to use. But how?
You dont install from "Python GUI", use normal cmd, navigate to the
folder
you downloaded PyXML and PyWebDAV and run "python setup.py install"
(python.exe has to be in your PATH). Then you have to find the
startup-script "davserver". Find your python installation directory and
look into<Install dir>/Tools/Scripts, in my computer this is
E:\python27\Tools\Scripts. PyXML and PyWebDAV get installed in the
site-packages folder i.e. E:\python27\Lib/site-packages. You might have
to
look for "davserver" there...

Thanks, Paul.

I ran "python setup.py install" in both the PyXML and PyWebDAV
directories.
A lot of things happened and are added into those directories and I guess
it
will be OK.
Next step, the startup-script "davserver". There is no script as such,
also
not in \python27\tools\scripts.
I found 2 similar scripts:
1. server.py in D:\Python27\WebDAV\PyWebDAV\DAVServer
2. WebDAVServer.py in D:\Python27\WebDAV\PyWebDAV\DAV

Which one is the one to use?
Your install locations look odd, but it might work nevertheless. The
server is in DAVServer\server.py, you can look at the file and you will
see:

if __name__ == '__main__':
run()

at the bottom. This is the "entry point" of a python script if called from
the command line.

Yes, it was server.py.
My install looks a bit different but I can start the server as follows:
python.exe
E:\Python27\Lib\site-packages\pywebdav-0.9.4.1-py2.7.egg\DAVServer\server.py
-D c:\home -n
WARNING:pywebdav:Authentication disabled!
Listening on localhost (8008)

I used server.py e:/wwwroot -m -c config.ini
I would use a config file outside the program directory and use the -c
or --config switch, run server.py without arguments to see possible
startup options.

Don't know if that's documented somewhere but you can just look at the
code in mysqlauth.py in the same directory as server.py. Seems it needs
three columns, (User<string>,Pass<string>,can_write<0|1>) but I haven't
tried.

I have understood that the database will be configured with the first run,
but in my case it didn't.

In my congig.ini there was
# Create User Database Table and Insert system user
# Disable after the Table is created; for performance reasons
firstrun=1

Fokke
 
F

Fokke Nauta

Dennis Lee Bieber said:
After looking at the config file.

I presume you have specified the MySQL username/password
Sure

(personally, and out of paranoia, I'd create a webDAV user/password that
only has access rights to the specified webDAV database).

Next, if you'd read further and didn't take the comment as the
instruction. set
firstrun=1

I did
to tell the server this is the first time it is being run - IT WILL
create the database table (after the first start, reset the flag to 0 to
speed up later runs).

It didn't create the table. The database kept empty.
Later in the config file set
mysql_auth=1
to enable the use of MySQL, and set the admin user/password to what you
plan to have it use.

I did
You probably want to set
daemonize=1
(maybe after first run)

I left this to 0.
Oh, and don't forget to set the main data directory and any
port/host changes.

I left host and port as they were. The main directory is e:\wwwroot
Start the server - it should connect to MySQL, create the table, and
add the admin user to the table.

I started the server with server.py (in
D:\Python27\WebDAV\PyWebDAV\DAVServer) -D e:/wwwroot -m -c config.ini

The seems to work as I get a login screen in the browser.

Later on I changed the ini file:

# disable auth
noauth = 1

# Enable mysql auth
mysql_auth=0

No login screen anymore but I got an error message "fshandler:get_data:
e:\wwwroot not found"

Fokke
 
D

Dennis Lee Bieber

I did


It didn't create the table. The database kept empty.

Odd -- but then, I'm not running it myself, and wasn't up to reading
all the code to see what path it takes.
I did


I left this to 0.


I left host and port as they were. The main directory is e:\wwwroot


I started the server with server.py (in
D:\Python27\WebDAV\PyWebDAV\DAVServer) -D e:/wwwroot -m -c config.ini
If the main directory is already in the config file, you probably
don't need to specify it on the command line... And... could there be
something in the code where overriding the directory by command line
changes where it looks for the config file? (Just guessing at this
point).
 
F

Fokke Nauta

Dennis Lee Bieber said:
NO Python package installer runs "from the Python command line" (ie;
from a Python interactive session prompt).

Typically you run them from the OS command interpreter. If the
installer is a .py file and the associations are correct, the Python
interpreter will be started to process the installer script. If the
associations aren't set, you may have to enter

python installer.py

at the system prompt instead of

installer.py

Okay -- so what was the error?
--

Sorry - I didn't come back on your question. In the mean time I forgot what
the error message was.
But I installed it the way Paul Kölle mentioned:

"You dont install from "Python GUI", use normal cmd, navigate to the
folder you downloaded PyXML and PyWebDAV and run "python setup.py
install" (python.exe has to be in your PATH)."

Fokke
 
F

Fokke Nauta

Dennis Lee Bieber said:
Odd -- but then, I'm not running it myself, and wasn't up to reading
all the code to see what path it takes.

It's only for experimenting with calendar software, so authorization is not
a point.
So I forget about MySQL.
If the main directory is already in the config file, you probably
don't need to specify it on the command line...
OK

And... could there be
something in the code where overriding the directory by command line
changes where it looks for the config file? (Just guessing at this
point).

Possibly.
I tried this:
server.py -n -c config.ini
Once again, the server is up and running and when I am logging in with my
browser (10.0.0.140:8081) I can see information showing up at the command
prompt, showing somebody is logging is, but the same error:
"fshandler:get_data: \Webdav not found". During starting up the server
mentioned: "pywebdav:Serving data from \Webdav".

In the config file it says:
"# main directory
directory = \Webdav"

Perhaps my Python configuration is at fault.

Fokke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top