Forum .LRN Q&A: Re: IMS-LD: problem with a level B course

Collapse
Posted by Emmanuelle Raffenne on

Hi,

I wanted to test the LD I mentionned in my first post with the imsld HEAD version so I installed dotLRN from HEAD but then I ran into the following problems:

  • imsld appears to depend on xowiki now but the dependency is not declared in the info file (I modified it on my local dev site to be able to install). I'm a bit worried about that since although imsld is part of dotLRN, xowiki is not and there's no plan to include it AFAIK.
  • an error when uploading the LD:
wrong # args: should be "ns_cache names cache"
    while executing
"ns_cache names xowiki_cache PF-[my id]-agg-*"
    (procedure "flush_page_fragment_cache" line 3)
    ::2742 ::xowiki::Package->flush_page_fragment_cache
    invoked from within
"[my package_id] flush_page_fragment_cache"
    (procedure "save_new" line 3)
    invoked from within
"next"
    (procedure "save_new" line 3)
    ::3010 ::xo::db::CrCache::Item->save_new
    invoked from within
"::$folder_id save_new"
    (procedure "require_folder_object" line 36)
    ::2742 ::xowiki::Package->require_folder_object
    invoked from within
"my require_folder_object"
    (procedure "init" line 5)
    ::2742 ::xowiki::Package->init
    ::xowiki::Package ::xotcl::Class->create
    invoked from within
"$package_class create ::$package_id -destroy_on_cleanup -id $package_id -url $url"
    (procedure "require" line 30)
    ::xowiki::Package ::xo::PackageMgr->require
    invoked from within
"my require -url $url $package_id"
    (procedure "initialize" line 26)
    ::xowiki::Package ::xo::PackageMgr->initialize
    invoked from within
"::xowiki::Package initialize -package_id $package_id -url $xw_url -user_id [ad_conn user_id]"
    (procedure "imsld::xowiki::file_new" line 12)
    invoked from within
"imsld::xowiki::file_new -href $filex_href  -path_to_file $filex_href  -file_name "${manifest_identifier}/${filex_href}"  -type file  -complete_path "[..."
    (procedure "imsld::parse::parse_and_create_resource" line 47)
    invoked from within
"imsld::parse::parse_and_create_resource -resource_node $resourcex  -manifest $manifest  -manifest_id $manifest_id  -activity_name $activity_name  -par..."
    (procedure "imsld::parse::parse_and_create_item" line 22)
    invoked from within
"imsld::parse::parse_and_create_item -manifest $manifest  -manifest_id $manifest_id  -item_node $imsld_item  -parent_id $parent_id  -tmp_dir $tmp_dir"
    (procedure "imsld::parse::parse_and_create_learning_objective" line 13)
    invoked from within
"imsld::parse::parse_and_create_learning_objective -learning_objective_node $learning_objectives  -manifest_id $manifest_id  -parent_id $cr_folder_id  ..."
    (procedure "imsld::parse::parse_and_create_imsld_manifest" line 54)
    invoked from within
"imsld::parse::parse_and_create_imsld_manifest -xmlfile $tmp_dir/imsmanifest.xml  -manifest_id $manifest_id  -tmp_dir $tmp_dir  -community_id $communit..."
    invoked from within
"set manifest_list [imsld::parse::parse_and_create_imsld_manifest -xmlfile $tmp_dir/imsmanifest.xml  -manifest_id $manifest_id  -tmp_dir $tmp_dir  -com..."
    ("uplevel" body line 34)
    invoked from within
"uplevel {
    	  # /packages/imsld/www/admin/imsld-new-3.tcl

ad_page_contract {

    Parse and create the imsld in the database.
    
    @author jop..."
    (procedure "code::tcl::/var/www/openacs-head/packages/imsld/ww..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

    if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare"
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 6)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
                $handler
            } ad_script_abort val {
                # do nothing
            }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
            rp_serve_abstract_file "$root/$path"
            set tcl_url2file([ad_conn url]) [ad_conn file]
            set tcl_url2path_info..."
Collapse
Posted by Gustaf Neumann on
Concerning ns_cache: The system where you are testing seems to have a very old version of ns_cache (older than 5 years). If you run automated tests on xotcl-core, it will flag this problem.

To get an appropriate version, use the following:
cvs -z3 -d:pserver:mailto:anonymous@aolserver.cvs.sourceforge.net:/cvsroot/aolserver co nscache

IMS-LD should have a "weak dependency" on xowiki/xotcl-core. It should behave well (with restricted functionality) without xowiki available.

Collapse
Posted by Don Baccus on
Well, the release tarball for nscache is the old one. I don't think we really want to be releasing code that depends on the cvs HEAD version and my guess is the release tarball is what ends up in the AOLserver debian packages, which is what we've all said we want to encourage people to use. In order to ease the installation process, and the horribly unprofessional impression given newbies by our older manual installation process based on bits and pieces of released code, cvs code, and various other magic.
Collapse
Posted by Emmanuelle Raffenne on
Hi Gustaf,

I was using version 1.5 from the tarball available at http://sourceforge.net/project/showfiles.php?group_id=3152, I upgraded using the CVS version and it fixed it. Thank you.

What functionalities wouldn't be available without xowiki?

Collapse
Posted by Gustaf Neumann on
Great.

Don't ask me about IMS-LD! I looked into IMS-LD last time two years ago, and did not know about the xowiki integration.

Collapse
Posted by Emmanuelle Raffenne on
Gustaf,

Oh I see, I misunderstood. When you wrote "...should have a weak dependency..." was a recommendation not a statement. OK, sorry about that.

Thanks again for your help with nscache.