Ticket #11482 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

OSX 10.9 packaging faults

Reported by: Owen Arnold Owned by: Steven Hahn
Priority: blocker Milestone: Release 3.4
Component: Python Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

One of our users has complained that the 10.9 package isn't allowing him to use the ipython notebook. We've tracked this down to a packaging fault. See Error from http://builds.mantidproject.org/job/master_clean/label=osx-10.9-build/405/console

01:52:42 cp: /Library/Python/2.7/site-packages/_markerlib/: No such file or directory
01:52:42 cp: /Library/Python/2.7/site-packages/backports: No such file or directory
01:52:42 cp: /Library/Python/2.7/site-packages/certifi: No such file or directory
01:52:42 cp: /Library/Python/2.7/site-packages/tornado: No such file or directory
01:52:42 cp: /Library/Python/2.7/site-packages/psutil: No such file or directory

This is probably because these are missing from the build servers.

  • Fix the packaging script so that it fails noisily if any of these are missing rather than continuing
  • Install missing packages on the build servers
  • Check that the IPython notebook can be started up and runs according to the instructions here http://www.mantidproject.org/Using_IPython_Notebook

Change History

comment:1 Changed 5 years ago by Steven Hahn

I updated the installation instructions to include sudo pip install ipython[notebook] instead of sudo pip install ipython. We don't need to copy over _markerlib since it's a matplotlib dependency and matplotlib comes with OSX 10.9+.

comment:2 Changed 5 years ago by Steven Hahn

  • Status changed from new to inprogress

comment:3 Changed 5 years ago by Steven Hahn

Refs #11482. Packaging fails if a python file is missing.

Changeset: eaa7b5881e40a42895db51d5d5179c4d86350359

comment:4 Changed 5 years ago by Steven Hahn

  • Status changed from inprogress to verify
  • Resolution set to fixed

This is being verified as pull request #606.

comment:5 Changed 5 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:6 Changed 5 years ago by Owen Arnold

@quantumsteve I can start the IPython Notebook, however I would not be able to use this with Mantid. If I modify the DYLD_LIBRARY_PATH as per our existing [instructions](http://www.mantidproject.org/Using_IPython_Notebook), I get this:

![screen shot 2015-04-17 at 08 59 43](https://cloud.githubusercontent.com/assets/1109536/7198061/2f1dad96-e4e0-11e4-9793-2d84a5d4c442.png)

We need to be able to load the plugins and core mantid libraries so that we can use them with the notebook, but clearly dragging in the libJPeg is a mistake in this case.

comment:7 Changed 5 years ago by Steven Hahn

@OwenArnold If you unset your DYLD_LIBRARY_PATH, can you then load the Mantid libraries?

hdf4 depends on libjpeg, which is installed by homebrew. Setting your DYLD_LIBRARY_PATH causes some system libraries to find this libjpeg instead of the system library.

comment:8 Changed 5 years ago by Owen Arnold

@quantumsteve. Yes it does work now without any need to modify the library paths. Could you please update the wiki documentation so that there is a 10.9+ section (or do it by Mantid version) in the OSX heading. We can remove the current instructions for OSX when the release is out.

comment:9 Changed 5 years ago by Owen Arnold

  • Status changed from verifying to closed

Merge pull request #606 from mantidproject/11482_ipython_notebook

Include ipython notebook dependencies in OS X bundle.

Full changeset: 7a49f4161ec76dd49b28ba585c6b5fe44238d0e8

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 12321

Note: See TracTickets for help on using tickets.