Zim

a TypeError raised when a http link in a page is clicked.

Bug #943126 reported by bruce
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Undecided
Unassigned

Bug Description

detailed error information follows:

This is zim 0.54
Python version is sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
Gtk version is (2, 24, 8)
Pygtk version is (2, 24, 0)
Platform is nt
Zim revision is:
  branch: pyzim-win-installer
  revision: 470 <email address hidden>
  date: 2012-01-16 01:17:13 -0500

======= Traceback =======
  File "zim\gui\pageview.pyo", line 4575, in do_link_clicked
  File "zim\gui\__init__.pyo", line 1777, in open_url
  File "zim\gui\__init__.pyo", line 1796, in open_with
  File "zim\gui\applications.pyo", line 147, in get_application
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 943126] [NEW] a TypeError raised when a http link in a page is clicked.

Can't reproduce. What is the browser you configured in the preferences ?

-- Jaap

On Wed, Feb 29, 2012 at 10:06 AM, bruce <email address hidden> wrote:

> Public bug reported:
>
> detailed error information follows:
>
> This is zim 0.54
> Python version is sys.version_info(major=2, minor=7, micro=2,
> releaselevel='final', serial=0)
> Gtk version is (2, 24, 8)
> Pygtk version is (2, 24, 0)
> Platform is nt
> Zim revision is:
> branch: pyzim-win-installer
> revision: 470 <email address hidden>
> date: 2012-01-16 01:17:13 -0500
>
> ======= Traceback =======
> File "zim\gui\pageview.pyo", line 4575, in do_link_clicked
> File "zim\gui\__init__.pyo", line 1777, in open_url
> File "zim\gui\__init__.pyo", line 1796, in open_with
> File "zim\gui\applications.pyo", line 147, in get_application
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
>
> ** Affects: zim
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/943126
>
> Title:
> a TypeError raised when a http link in a page is clicked.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/943126/+subscriptions
>

Revision history for this message
bruce (bruce-oy) wrote :

In my operation system, google chrome is my default web browser.
in zim 's preferences -> applications -> web browser, if default(os) or default(webbrowser) selected, the type error occur, if firefox or google chrome( initially not displayed in the drop menu, then i added it) selected, everything is ok.

my zim is chinese version, so if something i describled is wrong, please forgive me.

Revision history for this message
Daniel Smith (dansmith65) wrote :

I suspect this may be related to an issue I'm experiencing...

If I type a url like http://zim-wiki.org, the "Edit Link" dialog shows the correct url, but the url it tries to open is missing a forward slash, so it tries to open http:/zim-wiki.org.

Here is a screenshot: http://i.imgur.com/vA6Qp.png

I'm using http://browserchooser.codeplex.com/ which shows me the url before it tries to open it.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 943126] Re: a TypeError raised when a http link in a page is clicked.

On Sun, May 13, 2012 at 5:39 AM, Daniel Smith <email address hidden> wrote:
> I suspect this may be related to an issue I'm experiencing...
>
> If I type a url like http://zim-wiki.org, the "Edit Link" dialog shows
> the correct url, but the url it tries to open is missing a forward
> slash, so it tries to open http:/zim-wiki.org.
>
> Here is a screenshot: http://i.imgur.com/vA6Qp.png
>
> I'm using http://browserchooser.codeplex.com/ which shows me the url
> before it tries to open it.

I've seen the report before (but can't find the old bug report
immediately). This is a windows specific issue outside of zim. Try
configuring the web browser in the preferences to a specific browser.
For the previous user that reported this issue that fixed it.

-- Jaap

Revision history for this message
Daniel Smith (dansmith65) wrote :

Thanks, that did work. I guess I didn't read bruce's comment.

Actually, using Default (webbrowser) worked for me.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fixed in version 0.58

Changed in zim:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.