[issue8080] os.uname failing in windows
New submission from Stuart Axon : I'm not sure why this is happening, but os.uname() is failing on my computer in XP Home 32bit. Tested in the normal shell and MSys The code in platform.py looks like it should work to me. [C:\usr\Python26\Lib]python Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.uname() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'uname' >>> -- components: Library (Lib), Windows messages: 100531 nosy: stuaxo severity: normal status: open title: os.uname failing in windows type: behavior versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue8080> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4972] let's equip ftplib.FTP with __enter__ and __exit__
Stuart Axon added the comment: It would be good for consistency, yes. -- ___ Python tracker <http://bugs.python.org/issue4972> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4972] let's equip ftplib.FTP with __enter__ and __exit__
Stuart Axon added the comment: zipfile also would make a good target for a contextmanager (as noted here - http://tarekziade.wordpress.com/2009/01/20/python-standard-lib-give-me-more-withs/ ) -- nosy: +stuaxo ___ Python tracker <http://bugs.python.org/issue4972> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4567] Registry key not set if unattended installation used
New submission from Stuart Axon <[EMAIL PROTECTED]>: If the msi is installed with /quiet it installs to the default location, but the registry key is not set, making it harder for other programs to find the installation. - in my case I had to make a batch file that installed it, then read the log file to find this information, which is less than ideal. -- components: Installation messages: 77155 nosy: stuaxo severity: normal status: open title: Registry key not set if unattended installation used type: behavior versions: Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4567] Registry key not set if unattended installation used
Stuart Axon <[EMAIL PROTECTED]> added the comment: Sure, no problem - sorry for the lack of detail... The windows installer (tested on 2.5.2) normally puts some values in the windows registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\ (where is the python version). Including the important one for me: InstallPath. The bug is in the installer msi, and will need to be fixed in whatever generates it, ideally the installpath should always be set. In order to install python silently, run msiexec python-2.5.2.msi /quiet This will install python to the default path (c:\python) and the registry values won't be set. I believe their probably set in the interactive part of the installation. 2008/12/6 Martin v. Löwis <[EMAIL PROTECTED]>: > > Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > > Can you please be more explicit? What exact command line have you been > using, and what exact registry do you think should have been set but wasn't? > > -- > nosy: +loewis > > ___ > Python tracker <[EMAIL PROTECTED]> > <http://bugs.python.org/issue4567> > ___ > ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4567] Registry key not set if unattended installation used
Stuart Axon <[EMAIL PROTECTED]> added the comment: If you type msiexec /? it pops a window with this text in it: Windows (R) Installer. V 3.01.4001.5512 msiexec /Option [Optional Parameter] Install Options Installs or configures a product /a Administrative install - Installs a product on the network /j [/t ] [/g ] Advertises a product - m to all users, u to current user Uninstalls the product Display Options /quiet Quiet mode, no user interaction /passive Unattended mode - progress bar only /q[n|b|r|f] Sets user interface level n - No UI b - Basic UI r - Reduced UI f - Full UI (default) /help Help information Restart Options /norestart Do not restart after the installation is complete /promptrestart Prompts the user for restart if necessary /forcerestart Always restart the computer after installation Logging Options /l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] i - Status messages w - Nonfatal warnings e - All error messages a - Start up of actions r - Action-specific records u - User requests c - Initial UI parameters m - Out-of-memory or fatal exit information o - Out-of-disk-space messages p - Terminal properties v - Verbose output x - Extra debugging information + - Append to existing log file ! - Flush each line to the log * - Log all information, except for v and x options /log Equivalent of /l* Update Options /update [;Update2.msp] Applies update(s) /uninstall [;Update2.msp] /package Remove update(s) for a product Repair Options /f[p|e|c|m|s|o|d|a|u|v] Repairs a product p - only if file is missing o - if file is missing or an older version is installed (default) e - if file is missing or an equal or older version is installed d - if file is missing or a different version is installed c - if file is missing or checksum does not match the calculated value a - forces all files to be reinstalled u - all required user-specific registry entries (default) m - all required computer-specific registry entries (default) s - all existing shortcuts (default) v - runs from source and recaches local package Setting Public Properties [PROPERTY=PropertyValue] Consult the Windows (R) Installer SDK for additional documentation on the command line syntax. Copyright (c) Microsoft Corporation. All rights reserved. Portions of this software are based in part on the work of the Independent JPEG Group. 2008/12/6 Martin v. Löwis <[EMAIL PROTECTED]>: > > Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > >> In order to install python silently, run >> >> msiexec python-2.5.2.msi /quiet > > I'm puzzled. According to all msiexec documentation I could find, > there is no /quiet option to msiexec (plus you also need to specify > /i, according to the docs). I'll have to find out what this does > first. > > ___ > Python tracker <[EMAIL PROTECTED]> > <http://bugs.python.org/issue4567> > ___ > ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5098] Environ doesn't escape spaces properly
New submission from Stuart Axon : os.environ doesn't escape spaces, but does backslashes and others In the windows python interpreter I echo'd the variable 'ProgramFiles', then in the commandprompt. >>> from os import environ >>> environ['ProgramFiles'] 'C:\\Program Files' >>> ^Z [C:\]echo %ProgramFiles% C:\Program Files This 'half' escapping seems odd, and is annoying when building file paths for instance, probably the space should also be escaped. -- components: None messages: 80765 nosy: stuaxo severity: normal status: open title: Environ doesn't escape spaces properly type: behavior versions: Python 2.5 ___ Python tracker <http://bugs.python.org/issue5098> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com