chenqingyu / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

Crash when starting #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running Autosub on Ubuntu 12.04 and having our tv dirs added
2. As soon as we start auto-sub we get this error:

Traceback (most recent call last):
  File "/home/michiel/auto-sub/autosub/Scheduler.py", line 21, in __init__
    self.command.run()
  File "/home/michiel/auto-sub/autosub/scanDisk.py", line 106, in run
    walkDir(str(autosub.ROOTPATH))
  File "/home/michiel/auto-sub/autosub/scanDisk.py", line 42, in walkDir
    srtfile = os.path.splitext(filename)[0] + u"." + autosub.SUBNL + u".srt"
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 36: 
ordinal not in range(128)

What is the expected output? What do you see instead?

The program should just run without problems.
This error shows up and nothing happens, program quits.

What version of the product are you using? On what operating system?
0.5.7 - Ubuntu 12.04

Original issue reported on code.google.com by mbeene...@gmail.com on 12 May 2013 at 12:51

GoogleCodeExporter commented 9 years ago
Known issue, there is still a problem that Auto-Sub doesn't support non ASCII 
characters. For example é or è that is why you get that crash. Because of 
some bad programming choices it is kinda hard to fix. The best thing you can do 
it try to find the weird character and rename de file.

Original comment by romke.va...@gmail.com on 12 May 2013 at 12:55

GoogleCodeExporter commented 9 years ago
Hai Same here.
This only happens when its starting at boot time. 

When i log in, and manually run the startup script ist working ok.

Attached my startup scripts. 
I made this of a copy of sabnzbdplus start up script.
I have this script adjusted for sab, sick, couch, autosub, headphone.
All same script only changed the startup paramaters.

If it works ok, when logged in and started manually, 
or with /etc/init.d/auto-sub start, of service auto-sub start
then it a coding problemen on the server, how can i set an environment variable 
for language in the script, this must be the solution. 

Original comment by thc...@gmail.com on 23 Aug 2013 at 6:59

Attachments: