[Clam-devel] Aggregator

David García Garzón dgarcia at iua.upf.edu
Wed Jul 23 00:58:17 PDT 2008


On Dimecres 23 Juliol 2008, JunJun wrote:
> >> Jun, i just changed the extractors path to be pathless, this is it
> >> should require the executables to be in the path. An 'scons install'
> >> should do the magic provided that your XX:/mingw/local/bin is in the
> >> PATH. I also removed the exe extension as i guess it is not needed to
> >> run an executable in windows and this way is compatible with linux that
> >> has no executable extension. Just try current status and tell me whether
> >> it works. Delete previous pool files.
> >
> > yes, an exe extension is not needed. Yet, I used to report a problem that
> > after "scons install", the files which should be installed into
> > XX:/mingw/local/bin were installed into the same path with the SConstruct
> > instead. Remember? Why? So I have to copy the executables manually to the
> > path.
>
> Well, forget the babble above. :P, and focus on the babble below:
>
> Problem 1:
> About the path management, I did a series test for Windows:
> os.access("D:\\devel\\Annotator\\ClamExtractorExample.exe", os.X_OK)
> true
> os.access("D:/devel/Annotator/ClamExtractorExample.exe", os.X_OK)
> true
> os.access("D:/devel/Annotator/ClamExtractorExample", os.X_OK)
> false
> os.access("ClamExtractorExample.exe", os.X_OK)
> false, (even if the executable is in the path.)
>
> so,
> I think the os.access works a different way for unix/Windows. Check this:
> http://markmail.org/message/yhnmvnseocmefgyz#query:python%20os.access%20X_O
>K%20windows+page:1+mid:jvvdls6wx3xpebaf+state:results

Just that we need a different check. For example executing it with the --help 
option and not geting errors.

> Anyway,I just set a hard "true" for that os.access and go on the test.

Good move. Put the real check on the TODO for later.

> Problem 2:
> sources = [
>  ("example", FileMetadataSource(path=".",
>   schemaFile="CLAMDescriptors.sc",
>   poolSuffix=".example",             ---> ".pool"
>   extractor="ClamExtractorExample")),
>
> I've commited the modification.

I do not see the problem with that but it's ok. Indeed i would use a 
completely different extension for both as we are going to put the aggregator 
in 'IgnoreCache' mode at the end.

> Problem 3:
> The Annotator doesn't work correctly after I recompiled and installed Clam
> and Annotator. It pops an exception information and the output window
> gives:
> ******************************************************
> D:\devel\Annotator>Annotator
> Loading frame level data...
> Object::connect: No such slot Annotator::whatsThis()
> Object::connect:  (sender name:   'helpWhatsThisAction')
> Object::connect:  (receiver name: 'Annotator')
> Object::connect: No such signal AuralizationPlayer::stopTime(double)
> Object::connect:  (receiver name: 'Annotator')
> Project file: D:/devel/Annotator/example-data/Chords.pro at Base
> D:/devel/Annota tor/example-data
> Saving previous song descriptors...
> Adapting Interface to Song level descriptors...
> Adapting Interface to Frame level descriptors...
> Adapting Interface to Segmentations...
> Updating schema browser...
> Creating instant views...
> User interface adapted to the new schema.
> Saving previous song descriptors...
> Loading descriptors...
> Filling global descriptors...
> Refressing song data...
> Drawing audio...
> AudioLoader 0 created...
> *******************************************************
> uf, why is that?
> so I have to take an previous Annotator (version 0.3.10) and continue the
> test. After all, the test is done and the screenshot has been updated.
> (Nice childScopes!)

> >> has no executable extension. Just try current status and tell me whether
> >> it works. Delete previous pool files.

Did you deleted previous pools? For me it crashed until i delete the old pools 
and regenerated again because some of the attributes have changes. There is a 
serious bug to put in the TODO about that. If you change the schema and load 
an old pool Annotator crashes with an Schema::Exception that should be 
catched and managed.

Also a number of bugs have poped up. For example, when you load a second song 
the InstantViews doesn't update.

We should write down those bugs into the wiki with detailed reproduction steps 
in order to address them before the release.

-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080723/b921fd2e/attachment.sig>


More information about the clam-devel mailing list