search.py:154:subtitle_info:IOError: [Errno 13] Permission denied: 'link_file'

Bug #1041845 reported by Jan Klepek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SubDownloader
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Alessandro Losavio

Bug Description

version from trunk, fedora 17

How to reproduce
1] go to /usr/lib/python2.7/site-packages/subdownloader/ (install location of subdownloader in Fedora)
2] run subdowloader
3] search movie "The Godfather"
4] Expand "The Godfather: Money, Power, Respect..."
5] get error

This is caused by situation that installation directory of subdownloader is not writtable. Subdownloader cannot be installed anywhere else in fedora.

Patch attached. Patch utilizes temp directory to store link_file instead of default directory.

error log:
search.py:154:subtitle_info:IOError: [Errno 13] Permission denied: 'link_file'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/subdownloader/gui/main.py", line 1662, in onExpandMovie
    temp_movie = s.search_movie(None,'all',MovieID_link= movie.MovieSiteLink)
  File "/usr/lib/python2.7/site-packages/subdownloader/modules/search.py", line 67, in search_movie
    movies = self.subtitle_info(xml_page.read())
  File "/usr/lib/python2.7/site-packages/subdownloader/modules/search.py", line 154, in subtitle_info
    link_file = open('link_file', 'w')
IOError: [Errno 13] Permission denied: 'link_file'

Revision history for this message
Jan Klepek (jan-klepek-gmail) wrote :
Revision history for this message
Alessandro Losavio (alo21) wrote :

Thanks for you bug report and the patch!!

Changed in subdownloader:
assignee: nobody → Alessandro Losavio (alo21)
Changed in subdownloader:
milestone: none → 2.0.16
Changed in subdownloader:
status: New → In Progress
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.