The system cannot load a module compiled by a different version, that's the
problem. You can try to compile the source, if you have it, or adapt the code
to use the very similar standard module (to your version):

   'x-oz://system/adt/Stack.ozf'

See documentation at

    http://www.mozart-oz.org/documentation/mozart-stdlib/adt/stack.html

The adaptation would go +- like his:

declare STACK_URL = 'x-oz://system/adt/Stack.ozf'
declare STACK_MODULE = {Module.link [STACK_URL]}
declare NewStack = STACK_MODULE.new

Please notice that commands are named a bit differently in this package. For
example, push is called put.

Good luck! Cheers,

Jorge.

Selon Stijn De Saeger <[EMAIL PROTECTED]>:

> Hello all,
>
> I'm going through the oznlp book and currently I get stuck at
>
http://www.mozart-oz.org/users/duchier/OzNLP/node45.html#functional.programming.module.ads
> It seems I am able to load the abstract data type module (a local copy),
> however trying to execute the line
> "declare NewStack = ADS_Module.newStack"
> gives me what looks like a compatibility / versioning error in the pickle
> module. Below is the error message:
>
>
> "
> Mozart Engine 1.3.1 (20050914) playing Oz 3
>
>
> %***************** Error: distributed programming ***************
> %**
> %** Version mismatch during loading of pickle
> %**
> %** File:
> '/home/coe/oz/oznlp/datatypes/Abstract.ozf'
> %** Expected:                                     '3#3'
> %** Got:                                          '3#2'
> %** Pickle version 3#2 corresponds to Oz version: '1.2.0'
> %** In statement: {<P/2 URL.load> '#'('/' [104 111 109 101] '/' [99 111 101]
> '/' [111 122] '/' [111 122 110 108 112] '/' [100 97 116 97 116 121 112 101
> 115] ,,,) _}
> %**
> %** Call Stack:
> %** procedure 'Meth_load' in file
> "/build/buildd/mozart-1.3.1.20040616/mozart/share/lib/init/Resolve.oz",
> line 61, column 3, PC = 135892492
> %** procedure 'Do_Method' in file
> "/build/buildd/mozart-1.3.1.20040616/mozart/share/lib/init/Resolve.oz",
> line 87, column 3, PC = 135893888
> %**--------------------------------------------------------------
> "
> I'm sure there is an obvious way around this problem, but this being my
> first encounter with mozart/oz, I 'm pretty clueless for the moment. It
> seems further material in the book depends on this module, so any help would
> be greatly appreciated.
> Thanks in advance!
>
> Stijn.
>




_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to