halostatue-archive / rubypython

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

Failure to find python library #6

Closed halostatue closed 7 years ago

halostatue commented 13 years ago

Originally reported by: Anonymous


Trying to use Ruby's cucumber with Python got the following error:

Could not open library '/usr/lib/libpython2.6.so': /usr/lib/libpython2.6.so: cannot open shared object file: No such file or directory (LoadError)
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython/python.rb:62:in `open'
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython/python.rb:62
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython/python.rb:60:in `each'
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython/python.rb:60
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython.rb:159:in `load'
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython.rb:159:in `reload_library'
/var/lib/gems/1.8/gems/rubypython-0.3.2/lib/rubypython.rb:76:in `start'
/var/lib/gems/1.8/gems/cucumber-0.10.0/bin/../lib/cucumber/py_support/py_language.rb:40:in `begin_scenario'

Running ruby 1.8.7 + Python 2.6.6. on Ubuntu Linux i686


halostatue commented 13 years ago

Original comment by Austin Ziegler (Bitbucket: halostatue, GitHub: halostatue):


Assuming resolved with RubyPython 0.5+.

halostatue commented 13 years ago

Original comment by Austin Ziegler (Bitbucket: halostatue, GitHub: halostatue):


Can you try this with the latest version in hg? This should be resolved with the upcoming release of RubyPython, but it'd be nice to get some verification.

halostatue commented 7 years ago

This is what I get for not reading the full post before I going to work. I made some changes that got RubyPython working in my Windows XP virtual machine with Python 2.7 and Ruby 1.9.2, but I see I approached it a different when than you did. If my changes don't work for you I guess we'll just merge the two until they do work. I guess part of it depends on how you installed python.

halostatue commented 7 years ago

Pull Request with super simple support that is enough to get by with. https://github.com/halostatue/rubypython/pull/1

halostatue commented 7 years ago

Fixed as of <>.