#15 Problems using aglib2.0b1 with python applications

open-accepted
aglib (5)
5
2003-05-23
2003-05-23
No

After successfully compiling aglib2.0b1 with
xercesc2.2.0 (thanks haejong) I tried to use the
applcations TableTrans, TreeTrans etc. They open up as
they should but I can't open any files without the
following error:

This is for TableTrans when I tried to open the example
file Demo2.csv, but I get same error for InterTrans and
TreeTrans:
-------------------------------------------------
Error: 1
AttributeError Exception in Tk callback
Function: <bound method
agTableTrans.bindOpenAnnotationFileInTableFormat of
<agtk.agTableTrans.agTableTrans instance at 0x817abcc>>
(type: <type 'instance method'>)
Args: ()
Traceback (innermost last):
File
"/afs/tmh.kth.se/tmh/misc/hacks/pkg/agtk/2.0b1/os/agapps-1.1.2/thirdparty/Pmw/Pmw_0_8_5/lib/PmwBase.py",
line 1690, in __call__
return apply(self.func, args)
File "agtk/agTableTrans.py", line 822, in
bindOpenAnnotationFileInTableFormat
self.loadAnnotationFileInTableFormat(file.name)
File "agtk/agTableTrans.py", line 937, in
loadAnnotationFileInTableFormat
self._AGName = ag.load('TF', filename,
self._AGSetID, {},
AttributeError: 'module' object has no attribute 'load'

-----------------------------------------------

I read in ChangeLog that some functions in previous
releases might not work with the new aglib. Will there
be any new releases of the application that can handle
this functions or is there some way to work round this
problem or is it even a bug? Or is there somthing
obvious that I have missed?

/Magnus

Discussion

  • Haejoong Lee

    Haejoong Lee - 2003-05-23
    • assigned_to: xma --> maeda_ldc
     
  • Kazuaki Maeda

    Kazuaki Maeda - 2003-05-23

    Logged In: YES
    user_id=197394

    Hi,

    There have been a number of changes in the AGLIB 2.0 API
    that require some code rewriting in the applications. For
    example, several functions now return lists instead of
    space-separated strings. Also, the load function is now
    named "Load". Future releases of applications will use the
    AGLIB 2.0 API, but the current applications still use the
    AGLIB 1.0 API. Since only minor changes are needed, we will
    try to rewrite and release existing applications to use the
    AGLIB 2.0 API as soon as possible.

    -Kazuaki

     
  • Kazuaki Maeda

    Kazuaki Maeda - 2003-05-23
    • status: open --> open-accepted
     
  • Magnus Nordstrand

    Logged In: YES
    user_id=633855

    This is an attempt to make TableTrans to work with AGLIB
    2.0.1 Note that I've changed default encoding to ISO-8859-1
    (instead of UTF-8) to handle swedish characters. There are
    just some minor revisions to the file agTableTrans.py (CVS
    version 2.0 of AGAPPS). I'm not very familiar with python so
    if my solutions aren't the best I apologise. However, it
    works on my Linux RedHat 9.0, with Xercesc 2.0 and AGLIB 2.0.1
    The script is still a bit unstable and seg-faults every now
    and then. Especially when opening and saving files without
    restarting the program...

    /Magnus

     
  • Magnus Nordstrand

    agTableTrans for AGLIB2.0.1

     
    Attachments
  • Magnus Nordstrand

    Logged In: YES
    user_id=633855

    Sorry for the spamming, but I forgot to attach the file.

    /Magnus

     
  • Kazuaki Maeda

    Kazuaki Maeda - 2004-03-01

    Logged In: YES
    user_id=197394

    Hello,

    I've just uploaded a bug-fix of the AGAPPS package that
    contains TableTrans and MultiTrans to the CVS repository --
    would you mind trying the latest CVS source of AGAPPS? If
    you have any problem accessing the CVS repository, I can
    send you a package.

    Thank you,
    -Kazuaki

     
  • Kazuaki Maeda

    Kazuaki Maeda - 2004-03-01

    Logged In: YES
    user_id=197394

    I am sorry --- I have misread your message. (I read your
    first message instead.) Thank you very much for the
    attached file --- we will try your file.

    Thank you,
    -Kazuaki

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks