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 1 of 3 [1] 2 3 Next page →
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-08-30 22:00 +0200 |
| Subject | Installing WebDAV server |
| Message-ID | <9c4trjFcfmU1@mid.individual.net> |
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
[toc] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2011-08-30 22:31 +0200 |
| Message-ID | <6545843.yvFAXZvWTv@PointedEars.de> |
| In reply to | #12444 |
Fokke Nauta wrote: > 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. -- PointedEars Bitte keine Kopien per E-Mail. / Please do not Cc: me.
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-08-30 23:16 +0200 |
| Message-ID | <9c528rFi5aU1@mid.individual.net> |
| In reply to | #12445 |
"Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message news:6545843.yvFAXZvWTv@PointedEars.de... > Fokke Nauta wrote: > >> 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. >> I see the ">>>" prompt instead of the "$" prompt. > > "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. >> 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. Which fucking manual? >> How do I proceed next? > > 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
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2011-08-31 02:00 +0200 |
| Message-ID | <4761603.ypaU67uLZW@PointedEars.de> |
| In reply to | #12450 |
Fokke Nauta wrote: > "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message > news:6545843.yvFAXZvWTv@PointedEars.de... It's attribution _line_, not attribution novel. Your quotes are hardly legible, too → <http://insideoe.com/> >> 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 see the ">>>" prompt instead of the "$" prompt. >> "Doctor, my arm hurts when I move it." - "Don't move it, then." > > I don't see the point here ... Do not run `python' or the "Python GUI", 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). > > 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? >> 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 Good for you. >> 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. Has it not occurred to you to STFW for "easy_install" first? >>> 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. > > Which fucking manual? That of the server, on Windows-related information. Or that of easy_install. Or Python. Whichever comes first. >>> How do I proceed next? >> 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"? No, it means "Do your homework". -- PointedEars Bitte keine Kopien per E-Mail. / Please do not Cc: me.
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-08-31 11:27 +0200 |
| Message-ID | <9c6d4cFa54U1@mid.individual.net> |
| In reply to | #12457 |
"Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message news:4761603.ypaU67uLZW@PointedEars.de... > Fokke Nauta wrote: > >> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message >> news:6545843.yvFAXZvWTv@PointedEars.de... > > It's attribution _line_, not attribution novel. Your quotes are hardly > legible, too ? <http://insideoe.com/> > >>> 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 see the ">>>" prompt instead of the "$" prompt. >>> "Doctor, my arm hurts when I move it." - "Don't move it, then." >> >> I don't see the point here ... > > Do not run `python' or the "Python GUI", 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). >> >> 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. >>> 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 > > Good for you. > >>> 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. > > 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. >>>> 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. >> >> Which fucking manual? > > 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. >>>> How do I proceed next? >>> Look for the Windows version. If there is none, get easy_install and >>> use >>> it as described. I did and it worked. What's next? Fokke
[toc] | [prev] | [next] | [standalone]
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2011-08-31 13:48 +0200 |
| Message-ID | <mailman.597.1314791334.27778.python-list@python.org> |
| In reply to | #12464 |
> 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) > >> ATTENTION: Authentication disabled! > >> Serving datafrom /tmp > >> Listening on localhost(8008) 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
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-08-31 14:35 +0200 |
| Message-ID | <9c6o4eF5h7U1@mid.individual.net> |
| In reply to | #12465 |
"Laszlo Nagy" <gandalf@shopzeus.com> wrote in message news:mailman.597.1314791334.27778.python-list@python.org... > >> What do you mean by STFW? > Search The Fucking Web ? OK, the modern version of RTFM. >> 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/ I've been there. > 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) >> >> ATTENTION: Authentication disabled! >> >> Serving datafrom /tmp >> >> Listening on localhost(8008) 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
[toc] | [prev] | [next] | [standalone]
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2011-08-31 15:36 +0200 |
| Message-ID | <mailman.603.1314797809.27778.python-list@python.org> |
| In reply to | #12469 |
>> 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)
>>>>> ATTENTION: Authentication disabled!
>>>>> Serving datafrom /tmp
>>>>> Listening on localhost(8008)
> 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
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-08-31 16:37 +0200 |
| Message-ID | <9c6v8dF1ngU1@mid.individual.net> |
| In reply to | #12475 |
"Laszlo Nagy" <gandalf@shopzeus.com> wrote in message news:mailman.603.1314797809.27778.python-list@python.org... > >>> 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) >>>>>> ATTENTION: Authentication disabled! >>>>>> Serving datafrom /tmp >>>>>> Listening on localhost(8008) >> 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. > 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
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-08-31 10:42 -0700 |
| Message-ID | <mailman.622.1314812583.27778.python-list@python.org> |
| In reply to | #12464 |
On Wed, 31 Aug 2011 11:27:36 +0200, "Fokke Nauta"
<fnautaNO@SPAMsolfon.nl> declaimed the following in
gmane.comp.python.general:
>
> 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?
--
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:04 +0200 |
| Message-ID | <9cbvupFjr3U2@mid.individual.net> |
| In reply to | #12508 |
"Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message news:mailman.622.1314812583.27778.python-list@python.org... > On Wed, 31 Aug 2011 11:27:36 +0200, "Fokke Nauta" > <fnautaNO@SPAMsolfon.nl> declaimed the following in > gmane.comp.python.general: > >> >> 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? > -- 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
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2011-09-04 00:58 +0200 |
| Message-ID | <109595831.VCN276Cjj6@PointedEars.de> |
| In reply to | #12464 |
Fokke Nauta wrote: > "Thomas 'PointedEars' Lahn" […]: >> Fokke Nauta wrote: >>> "Thomas 'PointedEars' Lahn" […] wrote: >>>> 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. >> 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. For *Windows*? > So I unpacked them and expected to run a Python installer script from the > Python command line. Again, given all that experience you claim to have, how come it did not occur to you that the `$' was meant to be a *command* *shell* prompt? Other OSes have command shells, too, you know; they are just named and run differently. > Tried to run the Python installer script from the DOS command line but > that resulted in an error. "There was an error" is no error report at all. >>>> 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. >> Has it not occurred to you to STFW for "easy_install" first? > > What do you mean by STFW? Search The F****ing 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. > But, once again, don't know how to proceed. RTFM. >>>>> 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. >>> Which fucking manual? >> 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. No, the people providing it for you obviously did, but you do not seem to care to read 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. Either you are lying, or you are really forgetful, or you are simply not smart enough for this. You yourself told me/us before what the next step is: >>>>> How do I proceed next? >>>> Look for the Windows version. If there is none, get easy_install and >>>> use >>>> it as described. > > I did and it worked. What's next? Start the now-installed server, for goodness' sake! Observing this, be reminded that playing stupid does not work with me: <http://catb.org/~esr/faqs/smart-questions.html> And please get rid of that attribution novel and trim your quotes to the relevant minimum. I am asking you the last time here. If you cannot find it within you to think about your readers when you post, you are not worth my attention or (free) time. -- PointedEars Bitte keine Kopien per E-Mail. / Please do not Cc: me.
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-04 10:59 +0200 |
| Message-ID | <9cgsvvFdhuU1@mid.individual.net> |
| In reply to | #12726 |
"Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message news:109595831.VCN276Cjj6@PointedEars.de... <cut> If you don't have anything better to contribute, please stop answering. Es genügt schon. Fokke
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2011-09-04 20:35 +0200 |
| Message-ID | <1536106.qVoOGUtdWV@PointedEars.de> |
| In reply to | #12736 |
Fokke Nauta wrote: > "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message > news:109595831.VCN276Cjj6@PointedEars.de... > > <cut> > > If you don't have anything better to contribute, please stop answering. > > Es gen�gt schon. I should have expected as much from an address munger. *plonk* -- PointedEars Bitte keine Kopien per E-Mail. / Please do not Cc: me.
[toc] | [prev] | [next] | [standalone]
| From | Paul Kölle <paul@subsignal.org> |
|---|---|
| Date | 2011-08-31 10:52 +0200 |
| Message-ID | <mailman.595.1314780791.27778.python-list@python.org> |
| In reply to | #12444 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-08-31 14:18 +0200 |
| Message-ID | <9c6n4oFsnbU1@mid.individual.net> |
| In reply to | #12463 |
"Paul Kölle" <paul@subsignal.org> wrote in message news:mailman.595.1314780791.27778.python-list@python.org... > 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
[toc] | [prev] | [next] | [standalone]
| From | Paul Kölle <paul@subsignal.org> |
|---|---|
| Date | 2011-08-31 19:14 +0200 |
| Message-ID | <mailman.620.1314810894.27778.python-list@python.org> |
| In reply to | #12467 |
Hi, answers below...
Am 31.08.2011 14:18, schrieb Fokke Nauta:
> "Paul Kölle"<paul@subsignal.org> wrote in message
> news:mailman.595.1314780791.27778.python-list@python.org...
>> 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
[toc] | [prev] | [next] | [standalone]
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Date | 2011-09-01 12:30 +0200 |
| Message-ID | <9c9578F5eaU1@mid.individual.net> |
| In reply to | #12504 |
"Paul Kölle" <paul@subsignal.org> wrote in message news:mailman.620.1314810894.27778.python-list@python.org... > Hi, answers below... > > Am 31.08.2011 14:18, schrieb Fokke Nauta: >> "Paul Kölle"<paul@subsignal.org> wrote in message >> news:mailman.595.1314780791.27778.python-list@python.org... >>> 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 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. > 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
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-08-31 10:42 -0700 |
| Message-ID | <mailman.623.1314812710.27778.python-list@python.org> |
| In reply to | #12467 |
On Wed, 31 Aug 2011 14:18:00 +0200, "Fokke Nauta"
<fnautaNO@SPAMsolfon.nl> declaimed the following in
gmane.comp.python.general:
> 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.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2011-08-31 21:29 -0700 |
| Message-ID | <mailman.643.1314851358.27778.python-list@python.org> |
| In reply to | #12467 |
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
(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...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web