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 4 1662
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(homedir, 'doc'),
os.path.join(execdir, 'doc'),
'/usr/doc/python-docs-' + split(sys.version)[0],
'/usr/doc/python-' + split(sys.version)[0],
'/usr/doc/python-docs-' + sys.version[:3],
'/usr/doc/python-' + sys.version[:3],
os.path.join(sys.prefix,
'Resources/English.lproj/Documentation')]:
if dir and os.path.isdir(os.path.join(dir, 'lib')):
self.docdir = dir
</pydoc.py excerpt>
I've got the impression there may be a 'break' missing.
Peter
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(homedir, 'doc'), os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.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.
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(homedir, 'doc'), os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.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
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(homedir, 'doc'), os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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....
|
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...
|
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...
|
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>,...
|
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...
|
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
|
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...
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |