<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px; ">Hello, </div><div style="font-family:Helvetica,Arial;font-size:13px; ">I’m experiencing a problem (<a href="https://github.com/davidhalter/jedi/issues/1375">https://github.com/davidhalter/jedi/issues/1375</a>). </div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">Running this on a Python installed with Macports: </div><div style="font-family:Helvetica,Arial;font-size:13px; ">```</div><div style="font-family:Helvetica,Arial;font-size:13px; "><pre><code>Python 3.8.1 (default, Feb 8 2020, 01:33:23)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output('/Users/rubendibattista/.envs/josiepy-B4k-0ZyT/bin/python -c "import sys; print(sys.executable)"', shell=True)
b'/opt/local/bin/python\n'</code></pre></div><div style="font-family:Helvetica,Arial;font-size:13px; ">```</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">I get as result the system python executable and not the one from the virtualenv (created using pew). </div><div style="font-family:Helvetica,Arial;font-size:13px; ">While on Linux: </div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">```</div><div style="font-family:Helvetica,Arial;font-size:13px; "><pre><code>Python 3.7.3 (default, Jun 7 2019, 17:57:55)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output('/home/ruben.di-battista/.envs/josiepy/bin/python -c "import sys; print(sys.executable)"', shell=True)
b'/home/ruben.di-battista/.envs/josiepy/bin/python\n'</code></pre></div><div style="font-family:Helvetica,Arial;font-size:13px; ">```</div><div><br></div>Does it work for you? Is it a bug from Macports, from my particular configuration, from macOs or from Python build on macOs? (Or isn’t a bug?)<br><div class="gmail_signature" ><pre><code> _
-. .´ |∞∞∞∞
', ; |∞∞∞∞∞∞
˜˜ |∞∞∞∞∞∞∞∞∞ RdB
,., |∞∞∞∞∞∞
.' '. |∞∞∞∞
-' `’
https://rdb.is
</code></pre></div></body></html>