473,626 Members | 3,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

documentation files - where to install ?

Hi,

when I say e.g. help('try') in an interactive Python (or idle) session I
get

Sorry, topic and keyword documentation is not available because the Python
HTML documentation files could not be found. If you have installed them,
please set the environment variable PYTHONDOCS to indicate their location.

So, what's the canonical installation location for the HTML documentation files
(if I don't want to use the environment variable PYTHONDOCS)

Many thanks for hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Jul 18 '05 #1
4 1678
Helmut Jarausch wrote:
So, what's the canonical installation location for the HTML documentation
files (if I don't want to use the environment variable PYTHONDOCS)


Here's where Python 2.3 looks for the documentation:

<pydoc.py excerpt>
homedir = os.environ.get( 'PYTHONHOME')
for dir in [os.environ.get( 'PYTHONDOCS'),
homedir and os.path.join(ho medir, 'doc'),
os.path.join(ex ecdir, 'doc'),
'/usr/doc/python-docs-' + split(sys.versi on)[0],
'/usr/doc/python-' + split(sys.versi on)[0],
'/usr/doc/python-docs-' + sys.version[:3],
'/usr/doc/python-' + sys.version[:3],
os.path.join(sy s.prefix,
'Resources/English.lproj/Documentation')]:
if dir and os.path.isdir(o s.path.join(dir , 'lib')):
self.docdir = dir
</pydoc.py excerpt>

I've got the impression there may be a 'break' missing.

Peter

Jul 18 '05 #2
Peter Otten wrote:
Helmut Jarausch wrote:

So, what's the canonical installation location for the HTML documentation
files (if I don't want to use the environment variable PYTHONDOCS)

Here's where Python 2.3 looks for the documentation:

<pydoc.py excerpt>
homedir = os.environ.get( 'PYTHONHOME')
for dir in [os.environ.get( 'PYTHONDOCS'),
homedir and os.path.join(ho medir, 'doc'),
os.path.join(ex ecdir, 'doc'),
'/usr/doc/python-docs-' + split(sys.versi on)[0],
'/usr/doc/python-' + split(sys.versi on)[0],
'/usr/doc/python-docs-' + sys.version[:3],
'/usr/doc/python-' + sys.version[:3],
os.path.join(sy s.prefix,
'Resources/English.lproj/Documentation')]:
if dir and os.path.isdir(o s.path.join(dir , 'lib')):
self.docdir = dir
</pydoc.py excerpt>

I've got the impression there may be a 'break' missing.


Strangely, it looks the same here (Python 2.4 installed in /usr/local/lib/python2.4)
I would have expected something like /usr/local/lib/python2.4/doc
So, I'd like to suggest to add a 'configure' option for this.

Helmut.
Jul 18 '05 #3
Helmut Jarausch wrote:
Peter Otten wrote:
Helmut Jarausch wrote:

So, what's the canonical installation location for the HTML documentation
files (if I don't want to use the environment variable PYTHONDOCS)

Here's where Python 2.3 looks for the documentation:

<pydoc.py excerpt>
homedir = os.environ.get( 'PYTHONHOME')
for dir in [os.environ.get( 'PYTHONDOCS'),
homedir and os.path.join(ho medir, 'doc'),
os.path.join(ex ecdir, 'doc'),
'/usr/doc/python-docs-' + split(sys.versi on)[0],
'/usr/doc/python-' + split(sys.versi on)[0],
'/usr/doc/python-docs-' + sys.version[:3],
'/usr/doc/python-' + sys.version[:3],
os.path.join(sy s.prefix,
'Resources/English.lproj/Documentation')]:
if dir and os.path.isdir(o s.path.join(dir , 'lib')):
self.docdir = dir
</pydoc.py excerpt>

I've got the impression there may be a 'break' missing.


Strangely, it looks the same here (Python 2.4 installed in
/usr/local/lib/python2.4) I would have expected something like
/usr/local/lib/python2.4/doc So, I'd like to suggest to add a 'configure'
option for this.


No patience to read up http://www.pathname.com/fhs/pub/fhs-2.3.html right
now, but if there is a standard location for documentation concerning
programs installed from source (/usr/local/share/doc/pythonXXX with the
proper version suffix maybe?) it could just be added to the hardcoded paths
in pydoc.py.
What would you expect the configure option to do?

Peter

Jul 18 '05 #4
Peter Otten wrote:
Here's where Python 2.3 looks for the documentation:

<pydoc.py excerpt>
homedir = os.environ.get( 'PYTHONHOME')
for dir in [os.environ.get( 'PYTHONDOCS'),
homedir and os.path.join(ho medir, 'doc'),
os.path.join(ex ecdir, 'doc'),
'/usr/doc/python-docs-' + split(sys.versi on)[0],
'/usr/doc/python-' + split(sys.versi on)[0],
'/usr/doc/python-docs-' + sys.version[:3],
'/usr/doc/python-' + sys.version[:3],
os.path.join(sy s.prefix,
'Resources/English.lproj/Documentation')]:
if dir and os.path.isdir(o s.path.join(dir , 'lib')):
self.docdir = dir
</pydoc.py excerpt>

I've got the impression there may be a 'break' missing.


Strangely, it looks the same here (Python 2.4 installed in
/usr/local/lib/python2.4) I would have expected something like
/usr/local/lib/python2.4/doc So, I'd like to suggest to add a 'configure'
option for this.

No patience to read up http://www.pathname.com/fhs/pub/fhs-2.3.html right
now, but if there is a standard location for documentation concerning
programs installed from source (/usr/local/share/doc/pythonXXX with the
proper version suffix maybe?) it could just be added to the hardcoded paths
in pydoc.py.
What would you expect the configure option to do?

Given, say, the configure option --docdir=PATH, the install script
could modify pydoc.py to include that PATH just after
os.environ.get( 'PYTHONDOCS')

Helmut.
--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5745
by: Robin Becker | last post by:
It seems the Gods are proposing to distribute the documentation and help for Python-2.3.1 in .chm form. I particularly detest .chm and much prefer .html as it works across all platforms. Additionally by having a single index.html for all of the various bits of Python help I can link in things like Pmw, PIL and Quick Guide etc with a simple text editor. The argument is made that .chm is a better mechanism (more searchable indexable etc)...
0
1371
by: TDM | last post by:
Hello all, I suspect I created my own problem as I had a need to install an older version of MSDN Library so now my .NET Documentation is broken. When I run : Start/All Programs/Microsoft Visual Studio .NET/Microsoft Visual Studio .NET Documentation All I get is a blank IDE with this text :
2
284
by: Steve Howard | last post by:
After a lot of hassles I just installed Visual Studio .net 2003 from a student MSDNAA download. I get to the part where I am supposed to install "Product documentation" and I keep getting prompted for MSDN disc 1. All I have is the installation files that were downloaded/unzipped and these do not seem to include whatever is required. Is there somewhere I can get the documentation from?
8
1992
by: Will Pittenger | last post by:
I have a Windows program C# .NET solution where when I update its XML documentation, some tags are not recognized and turned into the corresponding HTML. Those tags include <c>, <code>, <para>, <paramref>, and <exception>. <remarks> works; I have not tried <include>. Is this a bug in Studio or am I using those tags incorrectly? When the tag appears to have an attribute, I have tried <paramref="parameter">paramter name</paramref> and...
4
1453
by: Spike | last post by:
I purchased Visual Basic .NET Deluxe Learning edition, version 2003. When I got to step 3 of the installation, the installer couldn't find the help files on any of the included discs, and so does not install any help whatsoever. The text of the accompanying book, instruct the reader to browse the help files several times, which cannot be installed and do not exist.
10
1183
by: Frank | last post by:
I have install VB.net 2003 twice. I still cannot get the help or the documentation to work! Thank you
0
1054
by: Jeremy | last post by:
I just installed VS 2005 and mistakenly closed the installation AFTER VS installed successfully, but BEFORE the documentation installed. I reran the installation process to get (hopefully) to the point where I could proceed to install the documentation and all it did was tell me to go to MSDN online or Add/Remove programs (which didn't help). I browsed the DVD and didn't see any separate folder or install program for MSDN. Bottom line is...
2
1949
by: Nathan Sokalski | last post by:
I have tried downloading and installing the ASP.NET AJAX Documentation from http://ajax.asp.net/documentation/default.aspx?tabid=47 but it requires me to do the following: 1. Install SQL Server Express (or SQL Server) 2. Save the files to a virtual directory in my default website I forget what some of the other steps were, but I would prefer not to install SQL Server Express just for the sake of documentation, and I would prefer not...
0
8269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8203
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5576
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2630
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.