Git Product home page Git Product logo

Comments (4)

nwhitehead avatar nwhitehead commented on August 29, 2024

You are 100% correct! For version 0.5 and 0.6 the included python should be fixed up to work anywhere, but I didn't do anything special for any other binaries. They were included just because the directory was copied. With version 0.5 you can actually install packages using pip by running it through python directly. Something like "python -m pip list" to list packages.

For the new release 0.7 I have a new way to do it from the notebook using new magic "%require packagename". This new magic is part of package "pineapple". So you do:

import pineapple
%require bokeh

Based on your feedback I will also include a working version of the pip tool so you can use the command line, that is a great idea.

from pineapple.

nwhitehead avatar nwhitehead commented on August 29, 2024

Just committed a change that should make the pip script inside the app work from the command line. Because it is inside Pineapple, it has to figure out how to call the right version of python so it is a bit "nonstandard".

from pineapple.

CodeSturgeon avatar CodeSturgeon commented on August 29, 2024

The pip shebang line in 0.8.0 (python2.7 full) is:
#!/Users/Shared/Jenkins/Home/workspace/PineappleMultiBuild/pineapple/build_full/python2.7/bin/python2.7

To get it working, I changed it to:
#!/Applications/Pineapple.app/Contents/Resources/python2.7/bin/python

from pineapple.

jsilence avatar jsilence commented on August 29, 2024

Using the magic %require crashes python on my installation.

Trying to install the lib on the command line also crashes the (local) python interpreter:

jsilence@zoe /Applications/Pineapple.app/Contents/bin % ./pip3.5 install foobar
Collecting foobar
Could not find a version that satisfies the requirement foobar (from versions: )
dyld: lazy symbol binding failed: Symbol not found: _fdopendir$INODE64
Referenced from: /Applications/Pineapple.app/Contents/bin/./../Frameworks  /Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/../../../../Python
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _fdopendir$INODE64
Referenced from: /Applications/Pineapple.app/Contents/bin/./../Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/../../../../Python
Expected in: /usr/lib/libSystem.B.dylib

./pip3.5: line 3: 55494 Trace/BPT trap: 5       (core dumped) ${BASH_SOURCE%/*}/../Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python -m pip "$@"

The referenced library libSystem.B.dylib does not exist in the Frameworks directory tree. It seems to be directly referenced in the python3.5 binary stub. It does however exist in /usr/lib:

133 jsilence@zoe /Applications/Pineapple.app/Contents/bin % ls /usr/lib/libSystem.B.dylib
/usr/lib/libSystem.B.dylib*

from pineapple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.