AMCassociation availability

Added by Nhu Le over 11 years ago

I would like to use the AMCassociation tag to automatically associate the ID to the CSV id that is readable by the system.

The feature I am looking for is in Feature #32: preprint student id in omr readable format.

How can I get a nightly build that has this feature in it? I am using version 1.1.2 (SVN 1283) and when I use that tag, it comes back with the error:

! Undefined control sequence.
\iterate ...fill 12/12/2011} \par \AMCassociation 
                                                  {\id } \par \AMCform \begi...
l.162 ...d to column names]{names.csv}{}{\subject}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

This feature is very exciting for me. Thank you so much for your help.


Replies (15)

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

I just uloaded a precomp archive from current development version in the download area (version 1.1.1335). You can test it on Fedora with rpmbuild (see http://home.gna.org/auto-qcm/download-fedora).

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

Thank you so much!.

My .tex file can be compiled now. However, in the instruction from http://project.auto-multiple-choice.net/issues/32

"After data capture and marking, use automatic association with "Pre-association" setting for "Code name for automatic association"."

I can't seem to find this option. The only one I have is (None), which will not allow me to do automatic marking.

Am I missing something?

Nhu

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

Did you use the \AMCassociation command in your source file?

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

I did. That's why I had the error with the previous version.
My CSV file has a field name "id" with unique values.

My code:

\newcommand{\subject}{
  \onecopy{1}{    

  %%% debut de l'en-tête des copies :    
    \AMCformBegin    

    \AMCassociation{\id}
    \begin{minipage}{1.0\linewidth}
      \namefield{\fbox{    
        \begin{minipage}{1.0\linewidth}
        Name: \Large\bf \name{} \ten{} \hfill \includegraphics[height=1cm] \logo{}
        \end{minipage}
      }
    }\end{minipage}

    \AMCform

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

Can you send you project directory?

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

Attached is the project files.

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

Option "Pre-association" is available with my AMC...
Pre-association option
If you don't have this, can you open the project in debugging mode (from Help menu) and send the log file produced?
However, you also have to select your students list file with the "set file" button and your ID column ("id") for "Primary key from this list".

pre-assoc.png - Pre-association option (22 kB)

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

Attached is the log file.

The version from GUI: 1.1.1335 (svn:1341)

One thing though: I installed the new version without uninstalling the last version I use. Would this cause any problem?

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

Output from the console for version:

[root@fedora17 nle]# rpm -qa |grep multiple
auto-multiple-choice-1.1.1335-1.fc17.i686

Ealier what I did was installing the newly build rpm with yum:
yum auto-multiple-choice-1.1.1335-1.fc17.i686.rpm

The log for the install:
[root@fedora17 i686]# yum install auto-multiple-choice-1.1.1335-1.fc17.i686.rpm
Loaded plugins: langpacks, presto, refresh-packagekit
Examining auto-multiple-choice-1.1.1335-1.fc17.i686.rpm: auto-multiple-choice-1.1.1335-1.fc17.i686
Marking auto-multiple-choice-1.1.1335-1.fc17.i686.rpm as an update to auto-multiple-choice-1.1.2-89.1.i686
Resolving Dependencies
--> Running transaction check
---> Package auto-multiple-choice.i686 0:1.1.2-89.1 will be updated
---> Package auto-multiple-choice.i686 0:1.1.1335-1.fc17 will be an update
--> Processing Dependency: perl(Gtk2::Notify) for package: auto-multiple-choice-1.1.1335-1.fc17.i686
--> Running transaction check
---> Package perl-Gtk2-Notify.i686 0:0.05-14.fc17 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================================
 Package                                               Arch                                  Version                                             Repository                                                                   Size
===================================================================================================================================================================================================================================
Updating:
 auto-multiple-choice                                  i686                                  1.1.1335-1.fc17                                     /auto-multiple-choice-1.1.1335-1.fc17.i686                                  8.7 M
Installing for dependencies:
 perl-Gtk2-Notify                                      i686                                  0.05-14.fc17                                        fedora                                                                       31 k

Transaction Summary
===================================================================================================================================================================================================================================
Install             ( 1 Dependent package)
Upgrade  1 Package

Total size: 8.7 M
Total download size: 31 k
Is this ok [y/N]: y
Downloading Packages:
perl-Gtk2-Notify-0.05-14.fc17.i686.rpm                                                                                                                                                                      |  31 kB     00:00
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-Gtk2-Notify-0.05-14.fc17.i686                                                                                                                                                                              1/3
  Updating   : auto-multiple-choice-1.1.1335-1.fc17.i686                                                                                                                                                                       2/3
  Cleanup    : auto-multiple-choice-1.1.2-89.1.i686                                                                                                                                                                            3/3
  Verifying  : perl-Gtk2-Notify-0.05-14.fc17.i686                                                                                                                                                                              1/3
  Verifying  : auto-multiple-choice-1.1.1335-1.fc17.i686                                                                                                                                                                       2/3
  Verifying  : auto-multiple-choice-1.1.2-89.1.i686                                                                                                                                                                            3/3

Dependency Installed:
  perl-Gtk2-Notify.i686 0:0.05-14.fc17

Updated:
  auto-multiple-choice.i686 0:1.1.1335-1.fc17

Complete!

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

can you tell me what is the output of the following command:

perl -MAMC::Data -le 'print AMC::Data->new("/home/nle/MC-Projects/auto-association1/data")->module("layout")->pre_association();'

and send a screenshot of the same area as mine above?

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

Can you also try again after unchecking Desktop notifications in Edit/Preferences/Display? It seems that there is something wrong with notifications...

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

[nle@fedora17 tmp]$ perl -MAMC::Data -le 'print AMC::Data->new("/home/nle/MC-Projects/auto-association1/data")->module("layout")->pre_association();'
WARNING: statement request with no transaction -- AssocNumber

WARNING: sql_single with no transaction -- DBI::st=HASH(0x8c7e770)

3

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

Hah, that's what it was. Unchecking the notification fixed it.

I would like to thank you very much for you amazing support. I do support myself and can't even compare to your level :).

[nle@fedora17 tmp]$ auto-multiple-choice &
ppmtoxpm: (Computing colormap...
ppmtoxpm: ...Done.  256 colors found.)
Use of uninitialized value in string ne at /usr/lib/AMC/perl/AMC-gui.pl line 4557.
Use of uninitialized value in numeric gt (>) at /usr/lib/AMC/perl/AMC-gui.pl line 5120.
*** unhandled exception in callback:
***   GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files at /usr/lib/AMC/perl/AMC-gui.pl line 442.
***  ignoring at /usr/share/perl5/AMC/Gui/Avancement.pm line 105.
*** unhandled exception in callback:
***   GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files at /usr/lib/AMC/perl/AMC-gui.pl line 442.
***  ignoring at /usr/lib/AMC/perl/AMC-gui.pl line 7064.

RE: AMCassociation availability - Added by Alexis Bienvenüe over 11 years ago

Thanks for your compliment. I'm glad we finally found where is the problem.
If you have any idea to fix it (either something missing to install, or some way to detect the problem before it shows, or both)... Which window manager do you use?

RE: AMCassociation availability - Added by Nhu Le over 11 years ago

I run XWin-Server from cygwin on Win7. AMC is under Fedora17/Vmware.

It looks like many people have the same kinda problem (for other software). I will definitely come back and check out this once I am through with this crunch.

(1-15/15)