Opened 11 years ago

Closed 11 years ago

#198 closed defect (fixed)

Fitting pespective not loading

Reported by: ajj Owned by: butler
Priority: blocker Milestone: SasView 3.0.0
Component: SasView Keywords:
Cc: Work Package:

Description

Build r6846 run on a clean mac does not successfully load the fitting module because:

2014-01-19 20:17:28,518 ERROR Fitting problems: CategoryInstaller?: Could not find folder containing default categories
2014-01-19 20:17:28,518 ERROR SasView?: could not find Fitting plug-in module
2014-01-19 20:17:28,518 ERROR CategoryInstaller?: Could not find folder containing default categories

(from sasview.log)

Change History (7)

comment:1 Changed 11 years ago by ajj

  • Milestone changed from SasView 3.0.0 to SasView Next Release

comment:2 Changed 11 years ago by butler

  • Milestone changed from SasView Next Release to SasView 3.0.0

comment:3 Changed 11 years ago by butler

  • Priority changed from major to blocker
  • Summary changed from Categories broken in current mac build to Fitting pespective not loading

Old title: Categories broken in current mac build

This is a general problem not mac only. I just installed on a clean windows 8.1 machine and found exact same errors in the logfile.

NOTE: THIS PREVENTS FITTING FROM LOADING. In other words the applications starts and does not crash on those errors but the fitting perspective is disabled so that when you go to choose fitting (rather than say P(r) ) no such thing is possible. This may be related to the problem Jeff is having on the datainfo and the reader.

The default_category file is in the sasview directory as it should be. Since nothing has been touched in the repository regarding categories, this may be left over from the code reorg project. With luck it is just a setup.py fix.

comment:4 Changed 11 years ago by ajj

If I check out the source and do:

python setup.py install —user

and then run the script that is installed (~/Library/Python?/2.7/bin/sasview in the case of my Mac) then all is well. Running the packaged app build fails to load the fitting perspective.

Is this then a bundling issue?

Last edited 11 years ago by ajj (previous) (diff)

comment:5 Changed 11 years ago by mathieu

  • Resolution set to fixed
  • Status changed from new to closed

For the Mac build, the problem was that py2app is zipping site-packages before putting it in the app directory.
Added the following to the build script:

unzip -q sasview.app/Contents/Resources/lib/python2.6/site-packages.zip -d sasview.app/Contents/Resources/lib/python2.6

Also made sure that the --always-unzip option is used when calling easy_install on the sasview package.

comment:6 Changed 11 years ago by butler

  • Resolution fixed deleted
  • Status changed from closed to reopened

The windows app is still broken. After discussion at today's meeting am re-opening and tentatively assigning to Peter Parker.

comment:7 Changed 11 years ago by Peter Parker

  • Resolution set to fixed
  • Status changed from reopened to closed

With Mathieu's help I was able to make the following change:

http://sourceforge.net/p/sasview/code/6849/

It seems to have done the trick.

Note: See TracTickets for help on using tickets.