Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12444 > unrolled thread
| Started by | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| First post | 2011-08-30 22:00 +0200 |
| Last post | 2011-09-08 16:10 +0200 |
| Articles | 20 on this page of 44 — 9 participants |
Back to article view | Back to comp.lang.python
Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-30 22:00 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-08-30 22:31 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-30 23:16 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-08-31 02:00 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 11:27 +0200
Re: Installing WebDAV server Laszlo Nagy <gandalf@shopzeus.com> - 2011-08-31 13:48 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 14:35 +0200
Re: Installing WebDAV server Laszlo Nagy <gandalf@shopzeus.com> - 2011-08-31 15:36 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 16:37 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-31 10:42 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 14:04 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-09-04 00:58 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-04 10:59 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-09-04 20:35 +0200
Re: Installing WebDAV server Paul Kölle <paul@subsignal.org> - 2011-08-31 10:52 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 14:18 +0200
Re: Installing WebDAV server Paul Kölle <paul@subsignal.org> - 2011-08-31 19:14 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-01 12:30 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-31 10:42 -0700
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-31 21:29 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-01 12:30 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-01 22:19 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 14:19 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-02 06:09 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 21:21 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-05 02:01 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-05 16:51 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-06 04:46 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-06 16:46 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-06 10:05 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-06 21:26 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-06 23:35 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-07 11:17 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-07 03:31 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-07 15:52 +0200
Re: Installing WebDAV server Piet van Oostrum <piet@vanoostrum.org> - 2011-09-08 00:52 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-08 01:28 +0200
Re: Installing WebDAV server Piet van Oostrum <piet@vanoostrum.org> - 2011-09-08 13:01 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMiae.nl> - 2011-09-08 15:57 +0200
Re: Installing WebDAV server python@bdurham.com - 2011-09-02 09:11 -0400
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 21:24 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-02 10:15 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 21:12 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMiae.nl> - 2011-09-08 16:10 +0200
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-01 12:30 +0200 |
| Message-ID | <9c9578F5eaU2@mid.individual.net> |
| In reply to | #12546 |
"Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message news:mailman.643.1314851358.27778.python-list@python.org... > On Wed, 31 Aug 2011 14:18:00 +0200, "Fokke Nauta" > <fnautaNO@SPAMsolfon.nl> declaimed the following in > gmane.comp.python.general: > >> >> 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 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
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-09-01 22:19 -0700 |
| Message-ID | <mailman.687.1314941410.27778.python-list@python.org> |
| In reply to | #12558 |
On Thu, 1 Sep 2011 12:30:43 +0200, "Fokke Nauta"
<fnautaNO@SPAMsolfon.nl> declaimed the following in
gmane.comp.python.general:
> "Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message
> news:mailman.643.1314851358.27778.python-list@python.org...
> > 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.
Odd -- but then, I'm not running it myself, and wasn't up to reading
all the code to see what path it takes.
>
> > 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
>
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).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-02 14:19 +0200 |
| Message-ID | <9cbvupFjr3U3@mid.individual.net> |
| In reply to | #12617 |
"Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message news:mailman.687.1314941410.27778.python-list@python.org... > On Thu, 1 Sep 2011 12:30:43 +0200, "Fokke Nauta" > <fnautaNO@SPAMsolfon.nl> declaimed the following in > gmane.comp.python.general: > >> "Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message >> news:mailman.643.1314851358.27778.python-list@python.org... > >> > 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. > > 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. >> >> > 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 >> > 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
[toc] | [prev] | [next] | [standalone]
| From | becky_lewis <bex.lewis@gmail.com> |
|---|---|
| Date | 2011-09-02 06:09 -0700 |
| Message-ID | <86b084e0-09a8-4997-9e0c-4526d7851e1d@s2g2000vby.googlegroups.com> |
| In reply to | #12632 |
On Sep 2, 1:19 pm, "Fokke Nauta" <fnaut...@SPAMsolfon.nl> wrote: > "Dennis Lee Bieber" <wlfr...@ix.netcom.com> wrote in messagenews:mailman.687.1314941410.27778.python-list@python.org... > > > > > > > > > > > On Thu, 1 Sep 2011 12:30:43 +0200, "Fokke Nauta" > > <fnaut...@SPAMsolfon.nl> declaimed the following in > > gmane.comp.python.general: > > >> "Dennis Lee Bieber" <wlfr...@ix.netcom.com> wrote in message > >>news:mailman.643.1314851358.27778.python-list@python.org... > > >> > 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. > > > 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. > > > > > > > > > > > > >> > 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 > > > 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 Is the path supposed to be absolute? In which case you'd need to have: directory=C:\path\to\Webdav instead of just directory=\Webdav Becky Lewis
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-02 21:21 +0200 |
| Message-ID | <9ccoqkF5efU1@mid.individual.net> |
| In reply to | #12636 |
"becky_lewis" <bex.lewis@gmail.com> wrote in message news:86b084e0-09a8-4997-9e0c-4526d7851e1d@s2g2000vby.googlegroups.com... On Sep 2, 1:19 pm, "Fokke Nauta" <fnaut...@SPAMsolfon.nl> wrote: > "Dennis Lee Bieber" <wlfr...@ix.netcom.com> wrote in > messagenews:mailman.687.1314941410.27778.python-list@python.org... > > > On Thu, 1 Sep 2011 12:30:43 +0200, "Fokke Nauta" > > <fnaut...@SPAMsolfon.nl> declaimed the following in > > gmane.comp.python.general: > > >> "Dennis Lee Bieber" <wlfr...@ix.netcom.com> wrote in message > >>news:mailman.643.1314851358.27778.python-list@python.org... > > >> > 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. > > > 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. > >> > 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 > > > 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 Is the path supposed to be absolute? In which case you'd need to have: directory=C:\path\to\Webdav instead of just directory=\Webdav I tried: directory=D:\Webdav directory=D:/Webdav To no avail. It didn.t make any difference. I surely believe my WebDAV installation is at fault. Fokke
[toc] | [prev] | [next] | [standalone]
| From | becky_lewis <bex.lewis@gmail.com> |
|---|---|
| Date | 2011-09-05 02:01 -0700 |
| Message-ID | <a7cd34d7-ed2b-4449-8edc-a6a45b59ecde@hb5g2000vbb.googlegroups.com> |
| In reply to | #12666 |
> > > 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 > > Is the path supposed to be absolute? In which case you'd need to have: > directory=C:\path\to\Webdav > > instead of just > directory=\Webdav > > I tried: > directory=D:\Webdav > directory=D:/Webdav > > To no avail. > It didn.t make any difference. > > I surely believe my WebDAV installation is at fault. > > Fokke Interestingly, looking at the code that returns the "fshandler:get_data: \Webdav not found" message, it looks like it tests that the path given exists and then tries an os.path.isfile, then an os.path.isdir. If both fail you get the message that you see. This might be a bit of a shot in the dark but could you try the path with and without a trailing '/' or '\'? I don't currently have a windows box available to test on and figure out why it would be detected as existing but not test true for either a file or directory. Becky Lewis
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-05 16:51 +0200 |
| Message-ID | <9ck5upFlpnU1@mid.individual.net> |
| In reply to | #12763 |
"becky_lewis" <bex.lewis@gmail.com> wrote in message news:a7cd34d7-ed2b-4449-8edc-a6a45b59ecde@hb5g2000vbb.googlegroups.com... > > >> > 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 >> >> Is the path supposed to be absolute? In which case you'd need to have: >> directory=C:\path\to\Webdav >> >> instead of just >> directory=\Webdav >> >> I tried: >> directory=D:\Webdav >> directory=D:/Webdav >> >> To no avail. >> It didn.t make any difference. >> >> I surely believe my WebDAV installation is at fault. >> >> Fokke > > Interestingly, looking at the code that returns the > "fshandler:get_data: \Webdav not found" message, it looks like it > tests that the path given exists and then tries an os.path.isfile, > then an os.path.isdir. If both fail you get the message that you see. > This might be a bit of a shot in the dark but could you try the path > with and without a trailing '/' or '\'? I don't currently have a > windows box available to test on and figure out why it would be > detected as existing but not test true for either a file or directory. > Hi Becky, I tried it straight away: directory=D:\Webdav\ directory=D:/Webdav/ Didn't work, in both cases the same error "fshandler:get_data: \Webdav not found". I have the opinion that my WebDAV installation is at fault. The database is not created either. To have set up Python, I used python-2.7.2.msi. To install WebDAV, I used PyWebDAV-0.9.4.1 and PyXML-0.8.4 packages, both Unix/Linux. To install the, I used " >> 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..." Shall I reīnstall the whole lot? Would it make a difference if in that case I would use ActivePython-2.7.2.5-win32-x86.msi instead of python-2.7.2.msi? Fokke
[toc] | [prev] | [next] | [standalone]
| From | becky_lewis <bex.lewis@gmail.com> |
|---|---|
| Date | 2011-09-06 04:46 -0700 |
| Message-ID | <f5b9ec16-de9a-4365-81a8-860dc27a985e@d25g2000yqh.googlegroups.com> |
| In reply to | #12773 |
On Sep 5, 3:51 pm, "Fokke Nauta" <fnaut...@SPAMsolfon.nl> wrote: > > Hi Becky, > > I tried it straight away: > directory=D:\Webdav\ > directory=D:/Webdav/ > > Didn't work, in both cases the same error "fshandler:get_data: \Webdav not > found". > > I have the opinion that my WebDAV installation is at fault. The database is > not created either. > To have set up Python, I used python-2.7.2.msi. > To install WebDAV, I used PyWebDAV-0.9.4.1 and PyXML-0.8.4 packages, both > Unix/Linux. > To install the, I used > " > > >> 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..." > > Shall I reïnstall the whole lot? Would it make a difference if in that case > I would use ActivePython-2.7.2.5-win32-x86.msi instead of python-2.7.2.msi? > > Fokke You could try that but I'd imagine you'll end up with the same issue. My best guess is that something is preventing os.path.isdir from detecting the path as a directory under windows. I can't reproduce it on my Linux system but may have a working windows installation later. If I were you I'd fire up a python shell (execute python and get the >>> prompt), import os.path and manually try os.path.isdir(path_name) to try and find out what the actualy problem is.
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-06 16:46 +0200 |
| Message-ID | <9cmq1vFk6fU1@mid.individual.net> |
| In reply to | #12829 |
"becky_lewis" <bex.lewis@gmail.com> wrote in message
news:f5b9ec16-de9a-4365-81a8-860dc27a985e@d25g2000yqh.googlegroups.com...
On Sep 5, 3:51 pm, "Fokke Nauta" <fnaut...@SPAMsolfon.nl> wrote:
>
> Hi Becky,
>
> I tried it straight away:
> directory=D:\Webdav\
> directory=D:/Webdav/
>
> Didn't work, in both cases the same error "fshandler:get_data: \Webdav not
> found".
>
> I have the opinion that my WebDAV installation is at fault. The database
> is
> not created either.
> To have set up Python, I used python-2.7.2.msi.
> To install WebDAV, I used PyWebDAV-0.9.4.1 and PyXML-0.8.4 packages, both
> Unix/Linux.
> To install the, I used
> "
>
> >> 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..."
>
> Shall I reīnstall the whole lot? Would it make a difference if in that
> case
> I would use ActivePython-2.7.2.5-win32-x86.msi instead of
> python-2.7.2.msi?
>
> Fokke
You could try that but I'd imagine you'll end up with the same issue.
My best guess is that something is preventing os.path.isdir from
detecting the path as a directory under windows. I can't reproduce it
on my Linux system but may have a working windows installation later.
If I were you I'd fire up a python shell (execute python and get the
>>> prompt), import os.path and manually try os.path.isdir(path_name)
to try and find out what the actualy problem is.
I'm not familiar with Python, but I entered "import os.path " (nothing
happened) and "os.path.isdir(path_name)
" in the shell. I guess what I did was not correct.
Underneath I copied what showed up in the shell.
-------------------------------------------
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on
win32
Type "copyright", "credits" or "license()" for more information.
>>> import os.path
>>> os.path.isdir(path_name)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
os.path.isdir(path_name)
NameError: name 'path_name' is not defined
>>>
-------------------------------------------
Fokke
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-09-06 10:05 -0700 |
| Message-ID | <mailman.809.1315328739.27778.python-list@python.org> |
| In reply to | #12836 |
On Tue, 6 Sep 2011 16:46:17 +0200, "Fokke Nauta"
<fnautaNO@SPAMsolfon.nl> declaimed the following in
gmane.comp.python.general:
> -------------------------------------------
> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on
> win32
> Type "copyright", "credits" or "license()" for more information.
> >>> import os.path
> >>> os.path.isdir(path_name)
>
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in <module>
> os.path.isdir(path_name)
> NameError: name 'path_name' is not defined
> >>>
> -------------------------------------------
>
"path_name" is a placeholder -- you're supposed to put in the exact
string(s) you have been trying in the configuration file (wrap the
string in quotes).
>>> import os.path
>>> os.path.isdir("e:\webdav")
False
>>> os.mkdir("e:\webdav")
>>> os.path.isdir("e:\webdav")
True
>>> os.path.isdir("e:\webdav\\")
Traceback ( File "<interactive input>", line 1
os.path.isdir("e:\webdav\")
^
SyntaxError: EOL while scanning single-quoted string
>>> os.path.isdir("e:\webdav\\")
True
>>> os.path.isdir("e:\webdav/")
True
>>> os.path.isdir("e:/webdav/")
True
>>> os.path.isdir("e:/webdav")
True
>>> os.rmdir("e:/webdav")
>>> os.path.isdir("e:\webdav")
False
>>>
Note that Python itself (and the C-runtime) doesn't care if the
separator is \ or / or even mixed; it is just the Windows command line
that uses \ for separator and / for options. (Python, however, uses \ as
an escape and \" is treated first, hence the need for \\" to escape the
\ itself)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-06 21:26 +0200 |
| Message-ID | <9cnaekF5nfU1@mid.individual.net> |
| In reply to | #12845 |
"Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message
news:mailman.809.1315328739.27778.python-list@python.org...
> On Tue, 6 Sep 2011 16:46:17 +0200, "Fokke Nauta"
> <fnautaNO@SPAMsolfon.nl> declaimed the following in
> gmane.comp.python.general:
>
>
>> -------------------------------------------
>> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
>> on
>> win32
>> Type "copyright", "credits" or "license()" for more information.
>> >>> import os.path
>> >>> os.path.isdir(path_name)
>>
>> Traceback (most recent call last):
>> File "<pyshell#1>", line 1, in <module>
>> os.path.isdir(path_name)
>> NameError: name 'path_name' is not defined
>> >>>
>> -------------------------------------------
>>
> "path_name" is a placeholder -- you're supposed to put in the exact
> string(s) you have been trying in the configuration file (wrap the
> string in quotes).
>
>>>> import os.path
>>>> os.path.isdir("e:\webdav")
> False
>>>> os.mkdir("e:\webdav")
>>>> os.path.isdir("e:\webdav")
> True
>>>> os.path.isdir("e:\webdav\\")
> Traceback ( File "<interactive input>", line 1
> os.path.isdir("e:\webdav\")
> ^
> SyntaxError: EOL while scanning single-quoted string
>>>> os.path.isdir("e:\webdav\\")
> True
>>>> os.path.isdir("e:\webdav/")
> True
>>>> os.path.isdir("e:/webdav/")
> True
>>>> os.path.isdir("e:/webdav")
> True
>>>> os.rmdir("e:/webdav")
>>>> os.path.isdir("e:\webdav")
> False
>>>>
>
> Note that Python itself (and the C-runtime) doesn't care if the
> separator is \ or / or even mixed; it is just the Windows command line
> that uses \ for separator and / for options. (Python, however, uses \ as
> an escape and \" is treated first, hence the need for \\" to escape the
> \ itself)
Thanks, this is clear.
This is my Python shell:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on
win32
Type "copyright", "credits" or "license()" for more information.
>>> import os.path
>>> os.path.isdir("d:\webdav")
True
>>>
So Python recognizes the directory d:\webdav
This is the command shell:
D:\Python27\WebDAV\PyWebDAV\DAVServer>server.py -n -c config.ini
INFO:pywebdav:Starting up PyWebDAV server <version 0.9.4-dev>
INFO:pywebdav:chunked_http_response feature ON
INFO:pywebdav:http_request_use_iterator feature OFF
INFO:pywebdav :http_response_use_iterator feature OFF
INFO:fshandler:Initialized with D:/Webdav-http://10.0.0.140:8081/
WARNING:pywebdav:Authentication disabled!
INFO:pywebdav:Serving data from D:/Webdav
Listening on 10.0.0.140 <8081>
(here I try to login the WebDAV server with the local IE browser)
INFO:fshandler :get_data: D:\Webdav not found
server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0;
Windows N
T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 -
server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0;
Windows N
T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 -
So - I'm a bit lost now. Thinking seriously that my webdav installation is
at fault.
Fokke
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-09-06 23:35 -0700 |
| Message-ID | <mailman.823.1315377607.27778.python-list@python.org> |
| In reply to | #12847 |
On Tue, 6 Sep 2011 21:26:12 +0200, "Fokke Nauta"
<fnautaNO@SPAMsolfon.nl> declaimed the following in
gmane.comp.python.general:
> This is my Python shell:
>
> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on
> win32
> Type "copyright", "credits" or "license()" for more information.
> >>> import os.path
> >>> os.path.isdir("d:\webdav")
> True
> >>>
>
> So Python recognizes the directory d:\webdav
>
> This is the command shell:
>
> D:\Python27\WebDAV\PyWebDAV\DAVServer>server.py -n -c config.ini
>
> INFO:pywebdav:Starting up PyWebDAV server <version 0.9.4-dev>
> INFO:pywebdav:chunked_http_response feature ON
> INFO:pywebdav:http_request_use_iterator feature OFF
> INFO:pywebdav :http_response_use_iterator feature OFF
> INFO:fshandler:Initialized with D:/Webdav-http://10.0.0.140:8081/
> WARNING:pywebdav:Authentication disabled!
> INFO:pywebdav:Serving data from D:/Webdav
> Listening on 10.0.0.140 <8081>
>
> (here I try to login the WebDAV server with the local IE browser)
>
> INFO:fshandler :get_data: D:\Webdav not found
At this point my best suggestion is to study the source code of
fshandler to see what it is doing at this moment in time (offhand, is
there any content IN the directory to be "served"?)
> server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0;
> Windows N
> T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 -
> server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0;
> Windows N
> T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 -
>
That almost looks like something is trying to retrieve a default
page for 404 (not found) page.
To save you some time:
-=-=-=-
if os.path.exists(path):
if os.path.isfile(path):
file_size = os.path.getsize(path)
if range == None:
## REST SNIPPED
else:
# also raise an error for collections
# don't know what should happen then..
log.info('get_data: %s not found' % path)
Note that at this point in the system, it is looking for a FILE, not
a directory.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-07 11:17 +0200 |
| Message-ID | <9cor4gFk15U1@mid.individual.net> |
| In reply to | #12880 |
"Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message
news:mailman.823.1315377607.27778.python-list@python.org...
> On Tue, 6 Sep 2011 21:26:12 +0200, "Fokke Nauta"
> <fnautaNO@SPAMsolfon.nl> declaimed the following in
> gmane.comp.python.general:
>
<cut>
>> (here I try to login the WebDAV server with the local IE browser)
>>
>> INFO:fshandler :get_data: D:\Webdav not found
>
> At this point my best suggestion is to study the source code of
> fshandler to see what it is doing at this moment in time (offhand, is
> there any content IN the directory to be "served"?)
There is a file indeed, in d:\Webdav
>> server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0;
>> Windows N
>> T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 -
>> server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0;
>> Windows N
>> T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 -
>>
> That almost looks like something is trying to retrieve a default
> page for 404 (not found) page.
>
> To save you some time:
>
> -=-=-=-
> if os.path.exists(path):
> if os.path.isfile(path):
> file_size = os.path.getsize(path)
> if range == None:
> ## REST SNIPPED
> else:
> # also raise an error for collections
> # don't know what should happen then..
> log.info('get_data: %s not found' % path)
I have seen this part. Do I need to alter it?
> Note that at this point in the system, it is looking for a FILE, not
> a directory.
> --
I have re-installed Python and the setuptool, and tried the Python version
of Active, but it did not make a difference.
So now I use the "old" Python 2.7 again. Used easy_install to install
PyWebDAV. I now run davserver.exe from the Script directory. Still the same
problem.
What I found, however, was that if I specify the directory from the command
line (like davserver -D d:\Webdav -n) there is no error message as
"INFO:fshandler :get_data: D:\Webdav not found". The browser shows still the
404 error.
The error "INFO:fshandler :get_data: D:\Webdav not found" only occurs when I
specify the "-c config.ini" in the command line.
I didn't expect it to be this so tricky. It looked easy to set up an
experimental webdav server.
Fokke
[toc] | [prev] | [next] | [standalone]
| From | becky_lewis <bex.lewis@gmail.com> |
|---|---|
| Date | 2011-09-07 03:31 -0700 |
| Message-ID | <d26f81b2-f87e-46f1-bb4e-8ef1943dfe7f@c29g2000yqd.googlegroups.com> |
| In reply to | #12890 |
> I have re-installed Python and the setuptool, and tried the Python version > of Active, but it did not make a difference. > So now I use the "old" Python 2.7 again. Used easy_install to install > PyWebDAV. I now run davserver.exe from the Script directory. Still the same > problem. > What I found, however, was that if I specify the directory from the command > line (like davserver -D d:\Webdav -n) there is no error message as > "INFO:fshandler :get_data: D:\Webdav not found". The browser shows still the > 404 error. > The error "INFO:fshandler :get_data: D:\Webdav not found" only occurs when I > specify the "-c config.ini" in the command line. > > I didn't expect it to be this so tricky. It looked easy to set up an > experimental webdav server. > > Fokke How are you trying to access the webdav server? I've been hacking on the server for several days now (unrelated reasons) and have found that it's a little unforgiving when it comes to configuration errors. You need to be accessing the webdav server via the correct port (I think it's 8008 by default). If you're not doing this and something else is running on port 80 (which is where a webdav client will go to by default) then this would explain the 404 errors.
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-07 15:52 +0200 |
| Message-ID | <9cpbddFtidU1@mid.individual.net> |
| In reply to | #12892 |
"becky_lewis" <bex.lewis@gmail.com> wrote in message news:d26f81b2-f87e-46f1-bb4e-8ef1943dfe7f@c29g2000yqd.googlegroups.com... >> I have re-installed Python and the setuptool, and tried the Python >> version >> of Active, but it did not make a difference. >> So now I use the "old" Python 2.7 again. Used easy_install to install >> PyWebDAV. I now run davserver.exe from the Script directory. Still the >> same >> problem. >> What I found, however, was that if I specify the directory from the >> command >> line (like davserver -D d:\Webdav -n) there is no error message as >> "INFO:fshandler :get_data: D:\Webdav not found". The browser shows still >> the >> 404 error. >> The error "INFO:fshandler :get_data: D:\Webdav not found" only occurs >> when I >> specify the "-c config.ini" in the command line. >> >> I didn't expect it to be this so tricky. It looked easy to set up an >> experimental webdav server. >> >> Fokke > > How are you trying to access the webdav server? By IE 8 and Firefox, on the same system as well as on another system. Firefox doesn't show the 404 error but shows a blank screen. I bound the davserver to the local adress of the system where it's on (10.0.0.140). The port was 8081 but I changed it to 8008 as you said it's the default. No difference. > I've been hacking on > the server for several days now (unrelated reasons) and have found > that it's a little unforgiving when it comes to configuration errors. > You need to be accessing the webdav server via the correct port (I > think it's 8008 by default). If you're not doing this and something > else is running on port 80 (which is where a webdav client will go to > by default) then this would explain the 404 errors. I certainly use the correct IP address and port number. Underneath is my command shell. The 1st time I specified the config file (davserver.ini), the 2nd time I specified on the command line. Here I logged in with Firefox from system XXX (replaced the name by XXX). (Here I started the server with the the config file (davserver.ini) D:Python27\Scripts>davserver -m -c davserver.ini INFO:pywebdav:Starting up PyWebDAV server <version 0.9.4-dev> INFO:pywebdav:chunked_http_response feature ON INFO:pywebdav:http_request_use_iterator feature OFF INFO:pywebdav:http_response_use_iterator feature OFF INFO:DAVServer.fshandler:Initialized with d:\webdav-http://10.0.0.140:8081/ WARNING:pywebdav:Authentication disabled! INFO:pywebdav:Serving data from d:\webdav Listening on 10.0.0.140 <8081> (browser logging in) INFO:DAVServer.fshandler:get_data: d:\webdav not found XXX --- [07/Sep/2011 11:57:48] - Mozilla/5.0 UJindows NT 5.1; rv:6.0.1> Gecko/ 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - XXX --- [07/Sep/2011 11:57:52] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> Gecko/ 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - ^C D:\Python27\Scripts>INFO:pywebdav:Killed by user (Here I started the server with command line options) davserver -D d:\webdav -H 10.0.0.140 -P 8081 -n WARNING:pywebdav:Authentication disabled! Listening on 10.0.0.140 <8081> XXX --- [07/Sep/2011 11:58:49] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> Gecko/ 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - XXX --- [07/Sep/2011 11:58:54] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> Gecko/ 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - ^C D:\Python27\Scripts>INFO:pywebdav:Killed by user
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2011-09-08 00:52 +0200 |
| Message-ID | <m2zkigartn.fsf@cochabamba.vanoostrum.org> |
| In reply to | #12900 |
"Fokke Nauta" <fnautaNO@SPAMsolfon.nl> writes: > INFO:DAVServer.fshandler:get_data: d:\webdav not found > XXX --- [07/Sep/2011 11:57:48] - Mozilla/5.0 UJindows NT 5.1; rv:6.0.1> > Gecko/ > 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - > XXX --- [07/Sep/2011 11:57:52] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> > Gecko/ > 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - > From the log it looks like you are trying to access the server with the url: http://localhost:8008/ or something similar. This won't work as you would try to access the root of your webdav directory in this way (i.e. D:/webdav). The webdav server can only serve files, not directories, so you would have to access http://localhost:8008/somefile.txt where somefile.txt is a file in D:/webdav. This only applies to acces using a browser. If you access the server through a webdav-aware client (for example the Finder on Mac OS X, or probably the Windows Explorer) it can serve the contents of the directory. -- Piet van Oostrum <piet@vanoostrum.org> WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-08 01:28 +0200 |
| Message-ID | <9cqdb0Fpn4U1@mid.individual.net> |
| In reply to | #12918 |
"Piet van Oostrum" <piet@vanoostrum.org> wrote in message news:m2zkigartn.fsf@cochabamba.vanoostrum.org... > "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> writes: > > >> INFO:DAVServer.fshandler:get_data: d:\webdav not found >> XXX --- [07/Sep/2011 11:57:48] - Mozilla/5.0 UJindows NT 5.1; rv:6.0.1> >> Gecko/ >> 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - >> XXX --- [07/Sep/2011 11:57:52] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> >> Gecko/ >> 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - >> > From the log it looks like you are trying to access the server with the > url: > > http://localhost:8008/ or something similar. Yes, I do. > This won't work as you would try to access the root of your webdav > directory in this way (i.e. D:/webdav). The webdav server can only serve > files, not directories, so you would have to access > http://localhost:8008/somefile.txt where somefile.txt is a file in > D:/webdav. OK, thanks. I am not familiar to WebDAV. I tried. Got something different (at least something happened): "Setuptools version 0.6c9 or greater has been installed. (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)" Wasn't able to find ez_setup.py yet. > This only applies to acces using a browser. If you access the server > through a webdav-aware client (for example the Finder on Mac OS X, or > probably the Windows Explorer) it can serve the contents of the directory. > -- Thanks. I am just trying to use a calendar with a webdav server. I don't have any experience with that. Simply using my browser to try it out. Fokke
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2011-09-08 13:01 +0200 |
| Message-ID | <m2mxefb8nd.fsf@cochabamba.vanoostrum.org> |
| In reply to | #12922 |
"Fokke Nauta" <fnautaNO@SPAMsolfon.nl> writes: > "Piet van Oostrum" <piet@vanoostrum.org> wrote in message > news:m2zkigartn.fsf@cochabamba.vanoostrum.org... >> "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> writes: >> >> >>> INFO:DAVServer.fshandler:get_data: d:\webdav not found >>> XXX --- [07/Sep/2011 11:57:48] - Mozilla/5.0 UJindows NT 5.1; rv:6.0.1> >>> Gecko/ >>> 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - >>> XXX --- [07/Sep/2011 11:57:52] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> >>> Gecko/ >>> 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - >>> >> From the log it looks like you are trying to access the server with the >> url: >> >> http://localhost:8008/ or something similar. > > Yes, I do. > >> This won't work as you would try to access the root of your webdav >> directory in this way (i.e. D:/webdav). The webdav server can only serve >> files, not directories, so you would have to access >> http://localhost:8008/somefile.txt where somefile.txt is a file in >> D:/webdav. > > OK, thanks. I am not familiar to WebDAV. > I tried. Got something different (at least something happened): > "Setuptools version 0.6c9 or greater has been installed. > (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)" > > Wasn't able to find ez_setup.py yet. > Google for it and install. But I don't understand. You already had WebDav installed, so why do you need ez_setup.py? >> This only applies to acces using a browser. If you access the server >> through a webdav-aware client (for example the Finder on Mac OS X, or >> probably the Windows Explorer) it can serve the contents of the directory. >> -- > > Thanks. I am just trying to use a calendar with a webdav server. I don't > have any experience with that. > Simply using my browser to try it out. Did you try the calendar with the WebDav server running? Dit you put a file in D:\webdav and try to get it with the browser? -- Piet van Oostrum <piet@vanoostrum.org> WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMiae.nl> |
|---|---|
| Date | 2011-09-08 15:57 +0200 |
| Message-ID | <9crvuvFpt2U1@mid.individual.net> |
| In reply to | #12956 |
"Piet van Oostrum" <piet@vanoostrum.org> wrote in message news:m2mxefb8nd.fsf@cochabamba.vanoostrum.org... > "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> writes: > >> "Piet van Oostrum" <piet@vanoostrum.org> wrote in message >> news:m2zkigartn.fsf@cochabamba.vanoostrum.org... >>> "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> writes: >>> >>> >>>> INFO:DAVServer.fshandler:get_data: d:\webdav not found >>>> XXX --- [07/Sep/2011 11:57:48] - Mozilla/5.0 UJindows NT 5.1; rv:6.0.1> >>>> Gecko/ >>>> 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - >>>> XXX --- [07/Sep/2011 11:57:52] - Mozilla/5.0 <Uindows NT 5.1; rv:6.0.1> >>>> Gecko/ >>>> 20100101 Firefox/6.0.1 - "GET / HTTP/1.1" 404 - >>>> >>> From the log it looks like you are trying to access the server with the >>> url: >>> >>> http://localhost:8008/ or something similar. >> >> Yes, I do. >> >>> This won't work as you would try to access the root of your webdav >>> directory in this way (i.e. D:/webdav). The webdav server can only serve >>> files, not directories, so you would have to access >>> http://localhost:8008/somefile.txt where somefile.txt is a file in >>> D:/webdav. >> >> OK, thanks. I am not familiar to WebDAV. >> I tried. Got something different (at least something happened): >> "Setuptools version 0.6c9 or greater has been installed. >> (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)" >> >> Wasn't able to find ez_setup.py yet. >> > Google for it and install. I did. > But I don't understand. You already had WebDav installed, so why do you > need ez_setup.py? Well, that was my mistake. I entered in the browser http://10.0.0.140:8081/a.txt (one of the textfiles in the directory d:\webdav on the server) and got the message: "Setuptools version 0.6c9 or greater has been installed. (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)" At first I thought this came from the webdav server. That's why I searched for the ez_setup.py script. Once it was there, I ran it. It took me some time before I realized it was the actual content of the document a.txt on the webdav server what I saw. So it worked! Different that I expected, but it works. >>> This only applies to acces using a browser. If you access the server >>> through a webdav-aware client (for example the Finder on Mac OS X, or >>> probably the Windows Explorer) it can serve the contents of the >>> directory. >>> -- >> >> Thanks. I am just trying to use a calendar with a webdav server. I don't >> have any experience with that. >> Simply using my browser to try it out. > > Did you try the calendar with the WebDav server running? Not yet. The next step is the calendar. > Dit you put a file in D:\webdav and try to get it with the browser? Yes, and that worked! I am able to see the contents of text files. In my unfamiliarity with WebDAV I expected to open the directory and see the files in there. Many thanks for your help. Fokke
[toc] | [prev] | [next] | [standalone]
| From | python@bdurham.com |
|---|---|
| Date | 2011-09-02 09:11 -0400 |
| Message-ID | <mailman.703.1314969082.27778.python-list@python.org> |
| In reply to | #12632 |
Hi Fokke, Disclaimer: I have no experience with the Python WebDAV package you're using. But a thought: > In the config file it says: > "# main directory > directory = \Webdav" Perhaps you should qualify your directory path with a drive letter? I would try this 2 ways: directory = E:\Webdav And if that doesn't work: directory = E:/Webdav My thinking about the 2nd example is that perhaps the \W is getting interpreted as a control character vs. "backslash" "W". Malcolm
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web