[issue11171] Python 2.7.1 does not start when ./configure is used with --prefix != --exec-prefix

2011-02-10 Thread Berthold Höllmann

New submission from Berthold Höllmann h...@users.sourceforge.net:

I do get (with 2.7.1):

 python
Traceback (most recent call last):
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/site.py, line 553, 
in module
main()
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/site.py, line 535, 
in main
known_paths = addusersitepackages(known_paths)
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/site.py, line 268, 
in addusersitepackages
user_site = getusersitepackages()
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/site.py, line 243, 
in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/site.py, line 233, 
in getuserbase
USER_BASE = get_config_var('userbase')
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py, line 
535, in get_config_var
return get_config_vars().get(name)
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py, line 
434, in get_config_vars
_init_posix(_CONFIG_VARS)
  File /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py, line 
287, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open 
/usr/local/gltools/python/Python-2.7/lib/python2.7/config/Makefile (No such 
file or directory)

The Makefile is platform dependendent und is located at

/usr/local/gltools/python/Python-2.7/linux_x86_64/lib/python2.7/config/Makefile

This problem is fixed for me by a simple pach:

 diff -c /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py 
 /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py~
*** /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py 
2011-02-10 14:33:34.15000 +0100
--- /usr/local/gltools/python/Python-2.7/lib/python2.7/sysconfig.py~
2011-02-10 14:28:17.001245000 +0100
***
*** 271,277 
  def _get_makefile_filename():
  if _PYTHON_BUILD:
  return os.path.join(_PROJECT_BASE, Makefile)
! return os.path.join(get_path('platstdlib'), config, Makefile)
  
  
  def _init_posix(vars):
--- 271,277 
  def _get_makefile_filename():
  if _PYTHON_BUILD:
  return os.path.join(_PROJECT_BASE, Makefile)
! return os.path.join(get_path('stdlib'), config, Makefile)
  
  
  def _init_posix(vars):

--
components: Installation
messages: 128292
nosy: hoel
priority: normal
severity: normal
status: open
title: Python 2.7.1 does not start when ./configure is used with  --prefix 
!= --exec-prefix
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11171
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3469] Umlauts make conf.latex_documents fail

2008-07-31 Thread Berthold Höllmann

Berthold Höllmann [EMAIL PROTECTED] added the comment:

OK, using Unicode strings in conf.py does work, so make this a Bug in
sphinx-quickstart. My conf.py was generated by sphinx-quickstart, When
asked for the author(s) name I gave my name and conf.py was generated
with a simple string for the name information instead of a Unicode string.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3469
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3469] Umlauts make conf.latex_documents fail

2008-07-30 Thread Berthold Höllmann

New submission from Berthold Höllmann [EMAIL PROTECTED]:

For a Project of mine I have set latex_documents to something like

latex_documents = [
  ('index', 'doc.tex', 'Documentation', 'Berthold Höllmann', 'manual'),
]

With this processing fails with:

LANG=C make latex
mkdir -p build/latex build/doctrees
sphinx-build -b latex -d build/doctrees -D latex_paper_size=a4 -N source
build/latex
Sphinx v0.4.2, building latex
trying to load pickled env... done
building [latex]: all documents
updating environment: 0 added, 1 changed, 0 removed
reading... index
pickling the env... done
checking consistency...
processing CrossSolverTests.tex... index
resolving references...
writing... Exception occurred:
  File
/usr/software/gltools/python/Python-2.5/lib/python2.5/site-packages/Sphinx-0.4.2-py2.5.egg/sphinx/latexwriter.py,
line 162, in astext
'\\renewcommand{\\indexname}{Index}\n' or '') + \
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
206: ordinal not in range(128)
The full traceback has been saved in /tmp/sphinx-err-l_u8H4.log, if you
want to report the issue to the author.
Please also report this if it was a user error, so that a better error
message can be provided next time.
Send reports to [EMAIL PROTECTED] Thanks!
make: *** [latex] Error 1

changing ö to \o does work.

--
assignee: georg.brandl
components: Documentation tools (Sphinx)
files: sphinx-err-l_u8H4.log
messages: 70419
nosy: georg.brandl, hoel
severity: normal
status: open
title: Umlauts make conf.latex_documents fail
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file11006/sphinx-err-l_u8H4.log

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3469
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com