I have had a similar problem that requires me to roll back to 4.1.5 for some of my code. I've tracked it down to the following code where I've using eval to build a procedure from piece parts when constructing a rule network. [They parts don't (necessarily) exist in the same syntactic construct, so I can't build them in the rule macro and have to do it when building the rule network.] It now fails (post 4.1.5) if the the rule actions contain references things to another module.<br>
<div id=":144" class="ii gt">
<br></div>(eval `(lambda ,previous-variable-list<br> (begin ,@(rule-actions rule)))<br>
(namespace-anchor->namespace anchor)))<br><br>The error given is:<br>
<br>
farmer.ss:26:11: link: module mismatch, probably from old bytecode
whose dependencies have changed: variable not provided (directly or
indirectly) from module: "C:\Documents and
Settings\dwilliams\Application Data\PLT Scheme\planet\300\4.2.0.900\
<div id=":144" class="ii gt">cache\williams\science.plt\3\5\random-distributions\triangular.ss" accessed from module: "C:\Documents and Settings\dwilliams\Application Data\PLT Scheme\planet\300\4.2.0.900\cache\williams\inference.plt\2\0\private\inference-control.ss" at source phase level: 0 in: random-triangular</div>
<br>In this case, random-triangular is defined in a required package. I suspect it is something different with namespace-anchor->namespace or something along those lines.<br><br>Any ideas?<br><br>Doug<br><br><div class="gmail_quote">
On Tue, Sep 8, 2009 at 6:36 PM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Do you get the error when you run from outside of DrScheme?<br>
<font color="#888888"><br>
Robby<br>
</font><div><div></div><div><br>
On Tue, Sep 8, 2009 at 7:04 PM, Carl Eastlund<<a href="mailto:cce@ccs.neu.edu" target="_blank">cce@ccs.neu.edu</a>> wrote:<br>
> The cleanup I did each time involved rm -r of the compiled/<br>
> directories, so the drscheme/ subdirectories were gone as well.<br>
><br>
> --Carl<br>
><br>
> On Wed, Sep 9, 2009 at 12:21 AM, Robby<br>
> Findler<<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>> wrote:<br>
>> Likely the files in compiled/drscheme/ are out of date. Why cm isn't<br>
>> bringing them back into sync is unclear to me, but you can at least<br>
>> get out of the bad loop by deleting those directories.<br>
>><br>
>> Robby<br>
>><br>
>> On Tue, Sep 8, 2009 at 6:01 PM, Carl Eastlund<<a href="mailto:cce@ccs.neu.edu" target="_blank">cce@ccs.neu.edu</a>> wrote:<br>
>>> Running code in DrScheme from one of my planet development links, I<br>
>>> get this familiar error:<br>
>>><br>
>>> link: module mismatch, probably from old bytecode whose dependencies<br>
>>> have changed: variable not provided (directly or indirectly and at the<br>
>>> expected position) from module:<br>
>>> "/Users/cce/research/planet/scheme/syntax.ss" accessed from module:<br>
>>> "/Users/cce/research/planet/scheme/require-provide.ss" at source phase<br>
>>> level: 0 in: provide/contract-contract-id-make-planet-path.62<br>
>>><br>
>>> The usual process to fix this is to recompile the relevant files. I<br>
>>> have now twice cleaned out all compiled files from my planet<br>
>>> development links and run a full 'setup-plt' to restore them, and the<br>
>>> message has not gone away. What could be causing this, if the .zo<br>
>>> files are all up to date?<br>
>>><br>
>>> Carl Eastlund<br>
><br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-dev" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-dev</a><br>
</div></div></blockquote></div><br>