nwhitehead / pineapple

http://nwhitehead.github.io/pineapple/
Other
351 stars 26 forks source link

Import modules #62

Closed soobrosa closed 7 years ago

soobrosa commented 8 years ago

Hi,

tried to import not burnt in modules in 0.7.4. failed.

Tried latest 0.8.0 P2.7 - it doesn't even start throwing a EXC_BREAKPOINT (SIGTRAP).

Do you maybe have an idea how to mitigate?

Cheers, Daniel

pog87 commented 8 years ago

have yoy tried this?

import pip
pip.main(['install', "burnt"])
soobrosa commented 8 years ago

thanks for the hacky tip it drops


  File "/Applications/Pineapple-Pro.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/db/__init__.py", line 69
    print "var", var
              ^
SyntaxError: Missing parentheses in call to 'print'
kevinr commented 7 years ago

I ran into this while Googling for the same issue, and later found from data/examples/python2.7/Packages.ipynb that it looks like

import pineapple
%pip install burnt

is the right way to do this.

soobrosa commented 7 years ago

Thanks, Pineapple does not even start since then.