halostatue-archive / rubypython

An in-process between Ruby and Python 2.
Other
254 stars 47 forks source link

Update lib path for debian/ubuntu #4

Closed awwaiid closed 7 years ago

awwaiid commented 9 years ago

Adding this line got it to work for me on both recent debian and ubuntu machines.

peter-wangxu commented 7 years ago

Hi @halostatue any reason that blocks this change? We also met this issue on debian like system.

Look forward to your consideration of this PR. Thanks Peter

halostatue commented 7 years ago

You are correct. The problem here is that IPython assumes that sys.argv is set. This is not true for an embedded interpreter, which is essentially what RubyPython is. A quick workaround is to use

{{{ sys = RubyPython.import "sys" sys.argv = [""] }}}

right after staring the interpreter and before importing IPython.

peter-wangxu commented 7 years ago

This issue was already included in release 0.6.4. please update via gem.

Reopen this if the issue still exists.