推荐的Mathematica修补程序链接到NetLogo 6无效 [英] Recommended hotpatch for Mathematica Link to NetLogo 6 didn't work

查看:88
本文介绍了推荐的Mathematica修补程序链接到NetLogo 6无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与在无法在NetLogo 6.0中使用Mathematica链接"(

I have the same problem as the user who posted in "Unable to use Mathematica Link in NetLogo 6.0" (Unable to use Mathematica Link in NetLogo 6.0). For me, the Mathematica Link seems to work fine with Netlogo version 5.3.1. Even after I attempted the recommended hotpatch (which was the answer to the original posted question on this topic), still no luck (I get the same error message posted in the original comment cited above). I tried extracting the hotpatch in the NetLogo 6.0 directory and in the NetLogo 6.0 / app subdirectory... neither seemed to work. I'm using a PC with Windows 7.

对于如何正确安装补丁的任何建议,我们将不胜感激.

Any advice on how to properly install the patch would be greatly appreciated.

推荐答案

此修补程序与6.0.1打包在一起,其使用说明可以在

This fix is packaged with 6.0.1 and instructions on using it can be found here. If it's easy for you to upgrade to 6.0.1 I would recommend doing that over trying to install the 6.0 fix. I have verified that the fix works for 6.0, although the installation instructions don't seem to be correct.

我的配置:

  • Windows 10(不幸的是,没有Windows 7可用)
  • NetLogo 6.0 64位
  • Windows 10 64位

我执行的安装步骤:

  • 开始之前,请转到NetLogo安装目录,并将"Mathematica Link"目录重命名为"Mathematica Link-original"(或根据需要将其删除).
  • 下载文件时,它解压缩到我的下载"文件夹中的某个位置.您可能需要提取自己,具体取决于您的浏览器和操作系统配置
  • 我将随附的"Mathematica Link"文件夹(名称中带有空格的文件夹,而不是顶层的"MathematicaLink"文件夹)复制到了NetLogo目录(而不是说明中提到的"app"目录) .

然后我打开Mathematica并运行以下命令:

I then opened Mathematica and ran the following commands:

  • 文件>安装>键入:包,源:从文件,文件:C:\ Program Files \ NetLogo 6.0.1 \ Mathematica Link \ NetLogo.m,安装名称:NetLogo,仅为此用户安装.请注意,选择此文件时,Mathematica将使用您打开的最后一个目录,因此,在打开文件对话框时,首先导航至驱动器顶部,然后向下导航至NetLogo 6.0.1(使用旧版本的NetLogo.m文件). NetLogo版本几乎肯定会中断Mathematica链接,这是一个很容易犯的错误.
  • 在笔记本中输入(无法对此代码进行编码):<
  • 在笔记本中输入:NLStart["C:\\Program File\\NetLogo 6.0.1"](请注意两个反斜杠,没有尾随反斜杠).
  • NetLogo窗口将在明显的延迟后打开(取决于您的系统速度和内存)
  • File > Install > type: Package, source: From File, file: C:\Program Files\NetLogo 6.0.1\Mathematica Link\NetLogo.m, install name: NetLogo, install for this user only. Note that when selecting this file, Mathematica will use the last directory you opened, so when the file dialog opens, first navigate to the the top of the drive then navigate down to NetLogo 6.0.1 (using a NetLogo.m file from an older NetLogo version will almost certainly break Mathematica link, and this is a very easy mistake to make).
  • Entered in the notebook (cannot code block this): <
  • Entered in the notebook: NLStart["C:\\Program File\\NetLogo 6.0.1"] (note the double backslashes and no trailing backslash).
  • The NetLogo window will open after a noticeable delay (depending on your system speed and memory)

我想为以后的读者巩固故障排除步骤.我介绍了新版本的NetLogo.m,可在此处,用户应下载该文件以进行故障排除(它将与NetLogo的将来版本一起分发).使用此步骤的一些步骤:

I wanted to consolidate troubleshooting steps for future readers. I've introduced a new version of NetLogo.m available here, which users should download for troubleshooting purposes (it will be distributed with future versions of NetLogo). Some steps to using this:

  1. Mathematica将缓存旧的"NetLogo.m"文件.您可以通过在Mathematica中使用以下命令找到这些缓存的位置:

  1. Mathematica will cache old "NetLogo.m" files. You can find where these caches are by using the following commands in Mathematica:

  • FileNameJoin[{ $BaseDirectory, "Applications" }]
  • FileNameJoin[{ $UserBaseDirectory, "Applications" }]
  • FileNameJoin[{ $BaseDirectory, "Applications" }]
  • FileNameJoin[{ $UserBaseDirectory, "Applications" }]

访问在步骤1中获得的目录,并从其中删除所有"NetLogo.m"文件.

Visit the directories obtained in Step 1 and delete all "NetLogo.m" files from them.

这篇关于推荐的Mathematica修补程序链接到NetLogo 6无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆