Re: Package won't load after v.7 upgrade
- To: mathgroup at smc.vnet.net
- Subject: [mg102316] Re: Package won't load after v.7 upgrade
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Wed, 5 Aug 2009 05:44:19 -0400 (EDT)
On 8/4/09 at 4:26 AM, pmcrobbi at umich.edu (Porscha Louise McRobbie) wrote: >A few days ago I was able to successfully load and use my own AddOn >package using v.6 with Mac OSX. My package is called "integExp.m", >and I placed it in a folder I created called "Quantum", located at: >/Applications/Mathematica.app/AddOns/ExtraPackages/Quantum Rather than put packages in that directory, I think it is better to put them in ~/Library/Mathematica This is the directory stored in $UserBaseDirectory when running on Mac OS X. The key advantage of using this directory is when you upgrade to a new version of Mathematica, you can simply drag and drop without worrying about overwriting packages you've created. Also, using this directory makes it simpler to have different versions of Mathematica on the same system access packages you've created. However, using the directory you used should not cause any problems assuming you replaced the package you created after installing version 7. >To load the package, I used >Needs["Quantum`integExp`"] >It loaded and ran fine. However, I upgraded to v.7 yesterday, and >now using Needs doesn't work, and I get the following nocont and >notfound errors: >Needs["Quantum`integExp`"] Needs::nocont: Context Quantum`integExp` >was not created when Needs was evaluated. >?integExp Information::notfound: Symbol integExp not found. Which suggests you did not replace the package after installing version 7 and the problem is the package no longer exists where you expect. >Did something change in v.7 regarding where to place AddOn packages? No. I had no problem whatever with packages I created in earlier versions loading in version 7.