bugMoviefly - Bugs: bug #12833, lmc 0.12 : unlauchable on Mandrake...

 
 

bug #12833: lmc 0.12 : unlauchable on Mandrake 10.2 Cooker

Submitted by:  None
Submitted on:  Wed 27 Apr 2005 03:21:36 PM UTC  
 
Category: NoneSeverity: 4 - Important
Item Group: NoneStatus: Postponed
Privacy: PublicAssigned to: Uwe Mayer <merkosh>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 30 May 2005 05:48:53 PM UTC, comment #16:

I don't find any rpm for that version and to compile gcc seems pretty difficult.
I will try after exams, but even then I'm not so confident about I will be able to compile it, sorry.

Felipe Lotas <reddwarf>
Sun 29 May 2005 06:48:09 PM UTC, comment #15:

Here:

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.6 (Debian 1:3.3.6-5)

This is on Debian "unstable" ;)
Can you try gcc 3.3.6?

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Sun 29 May 2005 11:46:40 AM UTC, comment #14:

$ gcc -v
Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/specs
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)

Right now in "Cooker" FTPs there is gcc 4.0.0

Felipe Lotas <reddwarf>
Sun 29 May 2005 08:42:54 AM UTC, comment #13:

No, this should work fine. The only difference between the two are that ListViewSort does numeric sorting for movie IDs, while QListViewItem donly does alphanumerical sorting.
This causes sorting by ID to appear: 1, 10, 100, 101, ... 2

There is a config variable "zeroPrefix_patch", when set to "True" it prepends 0s to the front of the ID which causes the alphanumerical sort to show the entries in numerical order, but with zeros prepended.

Which version of gcc do you have installed?

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Sat 28 May 2005 11:12:52 PM UTC, comment #12:

How workaround I changed ListViewSort by QListViewItem (from 0.8).
Since I don't really know what I'm doing :p can this be dangerous for my DB or something?

Felipe Lotas <reddwarf>
Tue 17 May 2005 03:45:01 PM UTC, comment #11:

Same problem here with Mandrake 10.2 (stable)
The version are:
PyQt-3.14.1-1mdk
sip-4.2.1-2mdk
PyQt-devel-3.14.1-1mdk
libpython2.4-devel-2.4-5mdk

When you said "updating" included "downgrading"? I'm not sure if I will find older version but I can try.

Felipe Lotas <reddwarf>
Mon 02 May 2005 10:18:30 PM UTC, comment #10:

Thanks for the .tgz file. I extracted it and tried to open it with lmc v0.12 on Debian (unstable):

The "good" news is that I can open the files SampleMe331.amc and SampleMe343.amc.
There are character-set conversions - which are expected when opening a file from AMC for the first time, but that is ok:

[LMCMain] INFO: Detected file format: <class 'AMCFile33.AMCFile33'>
[LMCMain] INFO: Opening file SampleMe331.amc (size: 269282)
[AMCRecord33] ERROR: Cannot decode input string: 'utf8' codec can't decode bytes in position 12-14: invalid data, trying latin1
[AMCRecord33] ERROR: Cannot decode input string: 'utf8' codec can't decode bytes in position 2-4: invalid data, trying latin1
[AMCRecord33] ERROR: Cannot decode input string: 'utf8' codec can't decode bytes in position 14-16: invalid data, trying latin1
[AMCForm] ERROR: Error setting rating to 4294967295; changing to 0
QDate::setYMD: Invalid date 2935091-13-425
[PicturePreview] DEBUG: Setting record: 1,
[PicturePreview] DEBUG: Loading embedded image
[LMCMain] DEBUG: Enabling record actions
[LMCMain] DEBUG: Enabling picture actions
[LMCMain] DEBUG: Enabling file actions
[LMCMain] INFO: Closing file /home/merkosh/SampleMe331.amc
[LMCMain] DEBUG: Disabling picture actions
[LMCMain] DEBUG: Disabling record actions
[LMCMain] DEBUG: Disabling file actions

For the files SampleMe35.amc and SampleAMC3.5.amc lmc cannot open them, becaus Antoine changed the file format, but that is also expected and detected:

...
[LMCMain] DEBUG: Autoprobing file format
[LMCMain] ERROR: Cannot read file format: /home/merkosh/SampleMe35.amc
...

Looking at the "create new file" problem:

[LMCMain] DEBUG: adding new record at index 1
new: <ListViewRecord.ListViewRecord object at 0xb7b28fbc>
Traceback (most recent call last):
File "./lmc.py", line 593, in movieAdd
self.centralWidget().add(record)
File "/mnt/data/_Download/lmc-0.12/src/RecordList.py", line 101, in add
self.listViewRecord.add(rec)
File "/mnt/data/_Download/lmc-0.12/src/ListViewRecord.py", line 192, in add
obj = ListViewSort(parent, *self.compileTitles(r) )
TypeError: argument 1 of ListViewSort() has an invalid type

The debug output is perfectly ok and that is the same that I get, i.e. the type of argument 1 is correct.
This all leads me to believe this is related to your version of PyQt or Sip. From your first message:

> I am on a Mandrake Cooker 10.2, python 2.4, PyQt3.14 (+dev).


The following are known to work when I created binary packages for Debian:

python-qt3 (>= 3.14),
sip4 (>= 4.1.1),
python-qt-dev (>= 3.14.1),
python2.3-dev (>= 2.3.5)

Can you try updating to above versions?

Uwe

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Fri 29 Apr 2005 05:33:11 PM UTC, comment #9:

Hello,
No problem for the debug.

I will answer question one by one :

1) Path problem

1.1 I try the export of your fist solution and it doesn't work if I don't set the path /usr/local/lib/python2.4/site-packages AND /usr/local/lib/python2.4/site-packages/lmc
It's amazing, I thought that it should find the package with only the first path.

The option to add option to ~/.pythonrc.py doesn't work for me (with your solution and the solution with addition of /usr/local/lib/python2.4/site-packages/lmc

1.2 The source solution
All is ok.... go to next problem :)

2 Open file problem
My amc version is the 3.3.1
I install 3.3.1, 3.4 and 3.5 and genrate 3 files with 3 films. All the 3 files failed with lmc . I made a tgz and joined it. I also add the sample file given with amc3.5 . Hope that it will help you.

3 New file problem
I apllied the patch, execute lmc.py from the src dir, create a new file and a new record then quit.
All in in the report.txt file and I join the generated file (essai.amc)

Hope that it will help you... and I am ready to help you if you need

Rodolphe

Crespin Rodolphe <rcrespin>
Fri 29 Apr 2005 07:52:22 AM UTC, comment #8:

Path problem:

Right, the PYTHONPATH workaround should do the trick. I also found the source of the problem:

I am using Debian Linux and the /etc/python2.4/site.py states that the sys.path variable is augmented for Debian with the directory to /usr/local/lib/python2.4/site-packages .

You can test this by undoing the export from your previous comment and just set PYTHONPATH to /usr/local/lib/python2.4/site-packages .
lmc should start up then.

There are three ways to fix this:
1. have the PYTHONPATH variable be set to /usr/local/lib/python2.4/site-packages

2. run ./configure with --prefix=/usr
This will cause lmc to be installed to /usr/lib/python2.4/site-packages, which is in your path

3. optionally to (1) you can add the path to /usr/local/lib/python2.4/site-packages in your Python user config file ~/.pythonrc
You can do this by adding the following two lines to it:

import sys
sys.path.append("/usr/local/lib/python2.4/site-packages")

open file problem:

At the moment I have no idea why lmc could break at that position. It detected AMC file format v3.3. I will need data to look at. Possible the file format was modified without changing the ID string.
Please tell me which version of AMC you are using. Is it possible that you send me a small version of such an AMC file which produces the error?
I.e. make a copy of your file, in the copy remove all but the first four entries, modifiy them if you'd like, save it, check that the error reproduces and send me the copy?
Else I'll try to reproduce the error with your version of AMC.

new file problem

I'm sorry to do this, but I'll have to ask you to help me debug the source of the problem. I'd need you to make changes to the source code.
- Download attached file p00.patch to your lmc-0.12/src directory.
- switch to the src directory and execute:
$ patch -p0 <p00.patch
patching file ListViewRecord.py
- run lmc.py from the src directory:
$ ./lmc.py
and create a new file, create a new record and close lmc again
Then send me the debug output. As attachment or inline - as you prefer.

I'm sorry to have you go through this. I'll try to get to the soure of the problem fast.

Uwe

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Thu 28 Apr 2005 12:01:40 PM UTC, comment #7:

I just do an export

PYTHONPATH=/usr/local/lib/python2.4/site-packages/lmc:/usr/local/lib/python2.4/site-packages/
and lmc.py is launching but when I try to open my films database that I did with amc, I have the following messages:

- begin -------------------------------------------------------

[root] INFO: lmc.py - Moviefly $Rev: 209 $ (c) by Uwe Mayer
[_Settings] INFO: Loading program configuration
[LMCMain] INFO: Opening default file MyList.amc
[LMCMain] DEBUG: Autoprobing file format
Traceback (most recent call last):
File "/usr/local/bin/lmc.py", line 1261, in ?
main = LMCMain(infile)
File "/usr/local/bin/lmc.py", line 213, in _init_
self.fileOpen(infile)
File "/usr/local/bin/lmc.py", line 495, in fileOpen
f = cls(filename, "a+b")
File "/usr/local/lib/python2.4/site-packages/lmc/AMCFile33.py", line 299, in _init_
self.__loadStructure()
File "/usr/local/lib/python2.4/site-packages/lmc/AMCFile33.py", line 340, in __loadStructure
format = AMCRecord33.genReadFMT(self.__file)
File "/usr/local/lib/python2.4/site-packages/lmc/AMCFile33.py", line 239, in genReadFMT
size = unpack("L", f.read(4))[0]
struct.error: unpack str size does not match format

- end ---------------------------------------------------------

I try to open a new file in the menu, and try to add a movie. I have the following debug messages :

- begin -------------------------------------------------------

[LMCMain] INFO: Creating new file Try.amc
[PicturePreview] DEBUG: No image set: clearing label
[LMCMain] DEBUG: Enabling file actions
[LMCMain] DEBUG: adding new record at index 1
Traceback (most recent call last):
File "/usr/local/bin/lmc.py", line 593, in movieAdd
self.centralWidget().add(record)
File "/usr/local/lib/python2.4/site-packages/lmc/RecordList.py", line 101, in add
self.listViewRecord.add(rec)
File "/usr/local/lib/python2.4/site-packages/lmc/ListViewRecord.py", line 191, in add
obj = ListViewSort(parent, *self.compileTitles(r) )
TypeError: argument 1 of ListViewSort() has an invalid type

- end ---------------------------------------------------------

Sorry for all this messages. If you prefer that I Put them in separate files I can.

Crespin Rodolphe <rcrespin>
Thu 28 Apr 2005 10:53:32 AM UTC, comment #6:

ok, i tried all that

$ /usr/bin/python -V
Python 2.4

the problem seems to be in the path :
$ python -c "import sys; print sys.path"
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0', '/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-ansi']

there's no '/usr/local/lib/python2.4/site-packages/lmc'

what is the sys variable to set ?? is there a PYTHON_PATH or somathing like that ?? (Sorry in don't know python)

> Last but not least: you've checked everything below ...python2.4/site-packages for o+r (files)/o+rx (dirs). The site-packages directory itself and the directories above are also o+rx, right?


all is ok

sorry to bother you.

Crespin Rodolphe <rcrespin>
Thu 28 Apr 2005 08:40:53 AM UTC, comment #5:

Ok,
a) you're right, writable is not important,
b) the first one did not give me the information I wanted. On Debian /usr/bin/python is a symlink to python2.X executable.
What does

$ /usr/bin/python -V
Python 2.4.1

give you?

Lets check the python package search path:
$ python -c "import sys; print sys.path"

This should print a list of strings, one of which should be:
'/usr/local/lib/python2.4/site-packages/lmc'

Last but not least: you've checked everything below ...python2.4/site-packages for o+r (files)/o+rx (dirs). The site-packages directory itself and the directories above are also o+rx, right?

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Thu 28 Apr 2005 07:33:22 AM UTC, comment #4:

ok, I try all that.

"ls -l `which python"
--> -rwxr-xr-x 1 root root 3684 fév 12 00:30 /usr/bin/python

Not writetable but not sure that this important.

the result of "ll /usr/local/lib/python2.4/site-packages/lmc" is that all the fill have the o+rx, but not the group. I try to change but that makes nothing.

all is ok for the "ll /usr/local/lib/python2.4/site-packages"

and finally the
"ll -husr/local/lib/python2.4/site-packages/lmc/Settings.py"
-->
-rwxr-xr-x 1 root root 30K avr 27 17:09 /usr/local/lib/python2.4/site-packages/lmc/Settings.py

it's strange

Crespin Rodolphe <rcrespin>
Thu 28 Apr 2005 07:20:35 AM UTC, comment #3:

Ah, something new ;)

Ok, first: lmc runs with python2.4, but lets make sure /usr/bin/python points to python2.4 executable - and we're looking at the right package directories:
$ ls -l `which python`
lrwxrwxrwx 1 root root 9 2005-04-05 12:43 /usr/bin/python -> python2.4

Please send me the directory listing includig permissions of /usr/local/lib/python2.4/site-packages/lmc

or please make sure that all regular files below have o+r permission and the directories o+rx permissions.

Also, the python2.4/site-packages should contain (at least) the following files:
$ ll /usr/local/lib/python2.4/site-packages
total 552K
drwxr-sr-x 4 root staff 4.0K 2005-04-27 17:45 lmc
-rw-r--r-- 1 root staff 4 2005-04-27 17:45 lmc.pth
-rw-r--r-- 1 root staff 537K 2005-04-27 17:45 lmcqt.so

Finally,
$ ll /usr/local/lib/python2.4/site-packages/lmc/Settings.py
-rw-r--r-- 1 root staff 30K 2005-04-27 17:45 /usr/local/lib/python2.4/site-packages/lmc/Settings.py

should be available.

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Thu 28 Apr 2005 07:06:25 AM UTC, comment #2:

when i do the ls , i have the following result:

drwxr-xr-x 4 root root 4,0K avr 27 17:09 lmc/

so, no need to do the chmod... and lmc.py still give the same output :(
Any idea ?

Crespin Rodolphe <rcrespin>
Wed 27 Apr 2005 03:49:13 PM UTC, comment #1:

Open a shell and issue an ls on the package install-path "/usr/local/lib/python2.4/site-packages", you should see the following:

$ ls -lh /usr/local/lib/python2.4/site-packages
total 4.0K
drwxr-s--- 4 root staff 4.0K 2005-04-17 20:40 lmc

Automake, when creating the site-packages directory the first time, does not set the o+rx attribute correctly on the "lmc" directory and the .pyc files.

To correct that, issue (as root):
$ chmod o+rx /usr/local/lib/python2.4/site-packages/lmc

Then try to execute lmc.py again.

Uwe Mayer <merkosh>
Project AdministratorIn charge of this item.
Wed 27 Apr 2005 03:21:36 PM UTC, original submission:

When I try to lauche lmc I have tihs message :

"
[root] INFO: lmc.py - Moviefly $Rev: 209 $ (c) by Uwe Mayer
Traceback (most recent call last):
File "/usr/local/bin/lmc.py", line 56, in ?
import Settings
ImportError: No module named Settings
"

I am on a Mandrake Cooker 10.2, python 2.4, PyQt3.14 (+dev).

Is Moviefly working with python 2.4 ?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2902:  report_050429.txt added by rcrespin (1KiB - text/plain - Report of the output with p00.patch)
file #2901:  p00.patch added by merkosh (539B - text/x-patch - adds print output to ListViewItem.py:191)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 8 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 12 Apr 2006 10:41:40 PM UTCmerkoshStatusIn Progress=>Postponed
  Open/ClosedOpen=>Closed
Fri 29 Apr 2005 05:34:30 PM UTCrcrespinAttached File-=>Added report_050429.txt, #2452
Fri 29 Apr 2005 07:52:22 AM UTCmerkoshAttached File-=>Added p00.patch, #2451
Fri 29 Apr 2005 07:52:21 AM UTCmerkoshSeverity2 - Minor=>4 - Important
Wed 27 Apr 2005 03:39:47 PM UTCmerkoshSeverity3 - Normal=>2 - Minor
  StatusNone=>In Progress
  Assigned toNone=>merkosh

Back to the top


Powered by Savane 3.1-cleanup1