Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
d[r]eadlock
Posts: 1
Joined: Thu Jan 11, 2007 9:39 pm

Linux: Locale failing

Thu Jan 11, 2007 10:03 pm

Hello there,

Under linux (with a gentoo distrib), my locale is not configured, and i got the following error:
Traceback (most recent call last):
File "./SubDownloader.py", line 21, in ?
import SubDownloaderFrame
File "/mnt/sophia-antipolis/devel/SubDownloader1.2.3/SubDownloaderFrame.py", line 21, in ?
import DownloadWindow
File "/mnt/sophia-antipolis/devel/SubDownloader1.2.3/DownloadWindow.py", line 7, in ?
import globals
File "/mnt/sophia-antipolis/devel/SubDownloader1.2.3/globals.py", line 19, in ?
l = l.split ( '_' ) # i [get fr,FR]
AttributeError: 'NoneType' object has no attribute 'split'
I'm definitly not a python coder/developer, but trying locale gave me this:
>>> import locale
>>> locale.getdefaultlocale()
(None, None)
So i changed my globals.py into:

Code: Select all

l= locale.getdefaultlocale()[0] language_system_id = "eng" if l: l = l.split ( '_' ) # i [get fr,FR] if len(l): xx_id = l[0] if languages_id.languages_xx2xxx.has_key(xx_id): language_system_id = languages_id.languages_xx2xxx[xx_id]
To manage my error case when no locale is defined (and always defaulting to eng).

Now i just fail on IMBDpy, but it's ok, i have not yet installed it.

A few other remarks:
- i do not see any LICENCE/README/INSTALL in the .tag.zip file
- i'm not sure .pyc and .bak and ~ files are needed (~800 ko)
- there is no INSTALLation provided (yet?;D)

That's it for the moment i'm impatient to test it though :wink:

User avatar
oss
Site Admin
Posts: 5890
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Tue Jan 16, 2007 6:36 pm

thanks a lot for report (we really need these), capiscuas (developer) will look on these issues.

Aleksandra
Posts: 2
Joined: Fri Feb 02, 2007 12:19 am

Thu Feb 08, 2007 3:28 pm

Hi all, I really love this site, but unfortunatelly I'm not able to install subdownloader on my gentoo box. I'm posting here even if maybe those two problems aren't related (maybe I'm wrong but I have some comfort to read about another gentoo user, maybe someone could help me)
This is the error that comes back:

Code: Select all

running build_ext building 'mmpython/disc/cdrom' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/disc i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -I/usr/include/python2.4 -c disc/cdrommodule.c -o build/temp.linux-i686-2.4/disc/cdrommodule.o i686-pc-linux-gnu-gcc -pthread -shared build/temp.linux-i686-2.4/disc/cdrommodule.o -o build/lib.linux-i686-2.4/mmpython/disc/cdrom.so building 'mmpython/disc/ifoparser' extension i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -I/usr/local/include -I/usr/include/python2.4 -c disc/ifomodule.c -o build/temp.linux-i686-2.4/disc/ifomodule.o In file included from disc/ifomodule.c:13: /usr/include/dvdread/ifo_types.h:32:2: error: #error "Must include <inttypes.h> or <stdint.h> before any libdvdread header." In file included from disc/ifomodule.c:13: /usr/include/dvdread/ifo_types.h:68: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:78: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:143: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:231: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:258: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:270: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:283: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pgc_program_map_t’ /usr/include/dvdread/ifo_types.h:312: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:333: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:409: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:437: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:457: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:468: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:480: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:491: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:502: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:513: error: expected specifier-qualifier-list before ‘uint32_t’ /usr/include/dvdread/ifo_types.h:532: error: expected specifier-qualifier-list before ‘uint32_t’ /usr/include/dvdread/ifo_types.h:597: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:609: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:621: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pf_level_t’ /usr/include/dvdread/ifo_types.h:627: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:639: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:650: error: expected specifier-qualifier-list before ‘uint32_t’ /usr/include/dvdread/ifo_types.h:682: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:694: error: expected specifier-qualifier-list before ‘uint32_t’ /usr/include/dvdread/ifo_types.h:716: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:728: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:746: error: expected specifier-qualifier-list before ‘uint32_t’ /usr/include/dvdread/ifo_types.h:802: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:810: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:818: error: expected specifier-qualifier-list before ‘uint16_t’ /usr/include/dvdread/ifo_types.h:831: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘map_ent_t’ /usr/include/dvdread/ifo_types.h:837: error: expected specifier-qualifier-list before ‘uint8_t’ /usr/include/dvdread/ifo_types.h:848: error: expected specifier-qualifier-list before ‘uint16_t’ disc/ifomodule.c: In function ‘ifoinfo_open’: disc/ifomodule.c:61: error: ‘tt_srpt_t’ has no member named ‘nr_of_srpts’ disc/ifomodule.c: In function ‘ifoinfo_read_title’: disc/ifomodule.c:86: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:87: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:98: error: ‘pgcit_t’ has no member named ‘pgci_srp’ disc/ifomodule.c:99: error: ‘dvd_time_t’ has no member named ‘hour’ disc/ifomodule.c:99: error: ‘dvd_time_t’ has no member named ‘minute’ disc/ifomodule.c:99: error: ‘dvd_time_t’ has no member named ‘second’ disc/ifomodule.c:104: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:105: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:106: error: ‘vtsi_mat_t’ has no member named ‘nr_of_vts_audio_streams’ disc/ifomodule.c:107: error: ‘vtsi_mat_t’ has no member named ‘nr_of_vts_subp_streams’ disc/ifomodule.c: In function ‘ifoinfo_get_subtitle_tracks’: disc/ifomodule.c:127: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:128: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:133: error: ‘vtsi_mat_t’ has no member named ‘vts_subp_attr’ disc/ifomodule.c:136: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:138: error: ‘subp_attr_t’ has no member named ‘zero2’ disc/ifomodule.c:139: error: ‘subp_attr_t’ has no member named ‘lang_extension’ disc/ifomodule.c:144: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:144: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:145: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:145: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:147: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:148: error: ‘subp_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c: In function ‘ifoinfo_get_audio_tracks’: disc/ifomodule.c:176: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:177: error: ‘tt_srpt_t’ has no member named ‘title’ disc/ifomodule.c:182: error: ‘vtsi_mat_t’ has no member named ‘vts_audio_attr’ disc/ifomodule.c:193: error: ‘audio_attr_t’ has no member named ‘lang_extension’ disc/ifomodule.c:233: error: ‘audio_attr_t’ has no member named ‘lang_code’ disc/ifomodule.c:233: error: ‘audio_attr_t’ has no member named ‘lang_code’ error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1
I hope someone could help me, Am I missing something?
Good work and thank you so much :wink:

User avatar
oss
Site Admin
Posts: 5890
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Fri Feb 09, 2007 3:50 pm

hard to say now, ivan watch this messages, and he will try to fix those errors.
thanks for posting.

User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Wed Feb 14, 2007 12:54 am

aleksandra: Your version of Python is not being able to handle the code properly. From what I can see you're not actually installing SubDownloader but Python modules and those are the ones giving you errors.

From what I can see you're compiling python, so you still haven't got the point where SubdDownloader could give you grief. Either you're using an incompatible package or a "bleeding edge" beta version that's still buggy.

Dreadlock: The ".split" line (19 in globals.py) shouldn't be there. I can't remember the code exactly as I deleted the lines but the problem was that the language detection could use a lot of improvement. As it currently stands the incorrect variable is evaluated and then the "split" function is applied to it (which can't be done).

In the end I just decided to not try to look for the solution, and just deleted the lines (which don't really do anything).

You can open globals.py and go to line 19. You should see the same line that's giving you problems there. I'd replace the block that starts with #CONFIGS and ends with language_system_id = "eng" with this block:

Code: Select all

#CONFIGS videos_ext = ["avi","mpg","mpeg"] subs_ext = ["srt","sub","txt","ssa"] videos_wildcards = "All videos(*.avi;*.mpg;*.mpeg)|*.avi;*.mpg;*.mpeg|ALL files (*.*)|*.*" l= locale.getdefaultlocale()[0] language_system_id = "eng"
Which should let you go ahead and run the program.

Aleksandra
Posts: 2
Joined: Fri Feb 02, 2007 12:19 am

Thu Feb 15, 2007 8:12 pm

aleksandra: Your version of Python is not being able to handle the code properly. From what I can see you're not actually installing SubDownloader but Python modules and those are the ones giving you errors.

From what I can see you're compiling python, so you still haven't got the point where SubdDownloader could give you grief. Either you're using an incompatible package or a "bleeding edge" beta version that's still buggy.
I run some experiments and I'm at this point.
The python's version was not a "bleeding edge" beta, the problem was instead that it was too old... I solve the problem with the 2.4.3-r4...
Then I realized reading the guide for Mac Osx that I've missed something (I supposed it...). I've installed mmpython 0.4.7, wxpython 2.6.3.3 and imdbpy-2.8, I didn't find a read me that explain what packages I need, so I assume that I could use the MacOsx ones...
Everything seems ok, but when I run the app, trying to browse a dir, the app freezes with this error:

Code: Select all

(python:7252): Gdk-CRITICAL **: gdk_draw_drawable: assertion `src != NULL' failed Xlib: sequence lost (0x10000 > 0xb178) in reply type 0x2! Xlib: sequence lost (0x101fc > 0xb178) in reply type 0x0!
While when I try to upload something, the file is visible in the database, and everything seems ok, but the apps freezes again with this error:

Code: Select all

(python:7398): Gdk-CRITICAL **: gdk_window_set_geometry_hints: assertion `GDK_IS_WINDOW (window)' failed (python:7398): Gdk-CRITICAL **: gdk_window_resize: assertion `GDK_IS_WINDOW (window)' failed
So at the moment I still can't use it :cry: on my pc...

capiscuas
Posts: 82
Joined: Mon Apr 17, 2006 5:33 am

Thu Jul 31, 2008 9:48 am

Please update to the latest version of Subdownloader.
https://launchpad.net/subdownloader/+download

Return to “Programs using OS”

Who is online

Users browsing this forum: Amazon [Bot] and 28 guests