FugiTech / txoffer

A Twisted-Python version of iroffer
5 stars 6 forks source link

txoffer crashes on adding new files #6

Closed BlueCrystal closed 10 years ago

BlueCrystal commented 10 years ago

It appears that txoffer crashes while adding new files, In this case, the file was "[HorribleSubs] Nagi no Asukara - 08 [480p].mkv". Restarting txoffer allows it to add, however.

2013-11-21 11:08:11-0500 [-] Exception in thread Thread-2: 2013-11-21 11:08:11-0500 [-] Traceback (most recent call last): 2013-11-21 11:08:11-0500 [-] File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner 2013-11-21 11:08:11-0500 [-] self.run() 2013-11-21 11:08:11-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/observers/api.py", line 191, in run 2013-11-21 11:08:11-0500 [-] self.queue_events(self.timeout) 2013-11-21 11:08:11-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/observers/inotify.py", line 772, in queue_events 2013-11-21 11:08:11-0500 [-] for sub_event in event.sub_moved_events(): 2013-11-21 11:08:11-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/events.py", line 327, in sub_moved_events 2013-11-21 11:08:11-0500 [-] _walker=_walker)) 2013-11-21 11:08:11-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/events.py", line 610, in _generate_sub_moved_events_for 2013-11-21 11:08:11-0500 [-] src_dir_path = absolute_path(src_dir_path) 2013-11-21 11:08:11-0500 [-] File "/usr/local/lib/python2.7/dist-packages/pathtools/path.py", line 183, in absolute_path 2013-11-21 11:08:11-0500 [-] return os.path.abspath(os.path.normpath(path)) 2013-11-21 11:08:11-0500 [-] File "/usr/lib/python2.7/posixpath.py", line 327, in normpath 2013-11-21 11:08:11-0500 [-] initial_slashes = path.startswith('/') 2013-11-21 11:08:11-0500 [-] AttributeError: 'NoneType' object has no attribute 'startswith' 2013-11-21 11:08:11-0500 [-]

BlueCrystal commented 10 years ago

To confirm, the path being used is /home2/weeaboo/torrents/completed.

BlueCrystal commented 10 years ago

Update: With no forwardslash (/home2/weeaboo/torrents/completed), the error changes. However, it still crashes

2013-12-04 10:58:35-0500 [-] Exception in thread Thread-2: 2013-12-04 10:58:35-0500 [-] Traceback (most recent call last): 2013-12-04 10:58:35-0500 [-] File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner 2013-12-04 10:58:35-0500 [-] self.run() 2013-12-04 10:58:35-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/observers/api.py", line 191, in run 2013-12-04 10:58:35-0500 [-] self.queue_events(self.timeout) 2013-12-04 10:58:35-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/observers/inotify.py", line 772, in queue_events 2013-12-04 10:58:35-0500 [-] for sub_event in event.sub_moved_events(): 2013-12-04 10:58:35-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/events.py", line 327, in sub_moved_events 2013-12-04 10:58:35-0500 [-] _walker=_walker)) 2013-12-04 10:58:35-0500 [-] File "/usr/local/lib/python2.7/dist-packages/watchdog/events.py", line 610, in _generate_sub_moved_events_for 2013-12-04 10:58:35-0500 [-] src_dir_path = absolute_path(src_dir_path) 2013-12-04 10:58:35-0500 [-] File "/usr/local/lib/python2.7/dist-packages/pathtools/path.py", line 183, in absolute_path 2013-12-04 10:58:35-0500 [-] return os.path.abspath(os.path.normpath(path)) 2013-12-04 10:58:35-0500 [-] File "/usr/lib/python2.7/posixpath.py", line 327, in normpath 2013-12-04 10:58:35-0500 [-] initial_slashes = path.startswith('/') 2013-12-04 10:58:35-0500 [-] AttributeError: 'NoneType' object has no attribute 'startswith' 2013-12-04 10:58:35-0500 [-]

BlueCrystal commented 10 years ago

Using the the latest watchdog master appears to solve this issue.