Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 215272

Summary: dev-lang/python-2.5.1-r5: webbrowser.open() works incorrectly
Product: Gentoo Linux Reporter: Antonov Pavel <Pawel.Antonov>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: VERIFIED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Antonov Pavel 2008-03-29 00:23:22 UTC
When I do webbrowser.open("http://www.google.com") in the python shell, there is loading page with this uri -  file:///home/pavel/%22http://www.google.com%22.

Reproducible: Always

Steps to Reproduce:
1. run python in console
2. type "import webbrowser"
3. type "webbrowser.open_new("http://www.google.com")"

Actual Results:  
There is a page with uri file:///home/pavel/%22http://www.google.com%22 loading

Expected Results:  
There must be http://www.google.com opened

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Timestamp of tree: Fri, 28 Mar 2008 23:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/media/sda3/Gentoo/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/ "
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru en_GB"
MAKEOPTS="-j3"
PKGDIR="/media/sda3/Gentoo/distfiles"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X X509 a52 aac acl acpi alsa bash-completion berkdb cairo cdr cli cracklib crypt cscope cups dbus directfb doc dri dts dvd dvdr dvdread eds emboss encode esd evo examples fam fbcon fbcondecor fbdev fbsplash ffmpeg firefox flac gdbm gedit gif glade gmail gnome gnustep gpm gstreamer gtk hal highlight iconv id3 id3tag ipv6 isdnlog jabber java javascript jpeg kerberos ldap lm_sensors mad midi mikmod mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python rar readline reflection samba sdl session skins slang sourceview spell sqlite sse sse2 ssl stream subversion suid svg sysfs syslog sysvipc tcpd theora tiff truetype unicode unzip usb vim vim-pager vim-syntax vim-with-x vorbis win32codecs wxwindows x264 x86 xcb xml xorg xpm xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev radeon vesa fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-29 00:38:14 UTC
Works just fine here...

[ebuild   R   ] dev-lang/python-2.5.1-r5  USE="berkdb -bootstrap -build -doc -examples gdbm ipv6 ncurses -nothreads readline sqlite ssl -tk -ucs2"
Comment 2 Ali Polatel (RETIRED) gentoo-dev 2008-03-29 08:10:31 UTC
I can't reproduce it here as well. I assume it's a problem with your environment variables. Can you reopen with the output of
"python -c 'import os ; print os.environ'" ? Thanks.
Comment 3 Antonov Pavel 2008-03-29 09:42:26 UTC
Well, I've got some interesting info.
When I do change default browser in gnome-default-applications-properties to epiphany, its works correct. Also its works if I type "firefox -new-window %s" there. But its dont work if there is some default value like "firefox -new-window "%s"" or "firefox -new-tab "%s""