question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PyJulia does not work with Julia 1.0 & 0.7 with Python installed via Conda/Ubuntu/(what else?)

See original GitHub issue

I’m writing down the issue so that it is easy to find by the users.

At the moment, for PyJulia to load Julia >= 0.7, two conditions have to be met:

  1. Python interpreter configured for PyCall.jl and Python interpreter used to import PyJulia have to use identical libpython (once #190 is merged) <strike>have exactly identical paths</strike>.

  2. The Python interpreter have to be dynamically linked (which is usually the case in Windows and macOS according to this comment)

To check if condition 2 is the case, run:

$ ldd /usr/bin/python | grep libpython
        libpython3.7m.so.1.0 => /usr/lib/libpython3.7m.so.1.0 (0x00007f17c12c4000)

where /usr/bin/python is the appropriate Python interpreter.

If it does not print anything, you can’t use PyJulia with this Python interpreter.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:34 (19 by maintainers)

github_iconTop GitHub Comments

5reactions
ExpandingMancommented, Sep 12, 2018

This problem is not going to go away, Debian is not going to change it and lots and lots of people are going to try this as debian distros are the most popular (though I prefer Arch I still have to use them often myself). My first question is how other languages solve this problem. We can’t be the first people ever to want to use a dynamically linked Python executable. It would be good to see how Scala and Java solve this, though I haven’t started looking yet.

I think at a minimum what we need is a very clear set of the simplest possible steps that one would take to get pyjulia running on debian in a very visible location right in the packages readme or documentation. Thanks to @tkf to taking the first steps to this with his pyenv setup, I’m going to try it myself when I get a chance.

4reactions
tkfcommented, Aug 21, 2018

I think there are three ways to use Python with Julia 1.0 on Ubuntu/Debian/etc. at the moment:

Will this issue be solved in near future

I think I know how to fix it #173. But likely not in next weeks. I can’t grant anything 😃 If I were to do it I want to do it after dropping Julia 0.6 (which requires PyJulia to be released soon).

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found