<div dir="auto">The problem has been solved with the updated of virtualenv, that is currently in a PR for Macports. ðŸ˜‰Â </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 13 Mar 2020, 00:09 Ryan Schmidt, <<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am dropping macports-dev from Cc because the question is not about developing MacPorts.<br>
<br>
On Feb 7, 2020, at 18:42, Ruben Di Battista wrote:<br>
<br>
> Hello, <br>
> I’m experiencing a problem (<a href="https://github.com/davidhalter/jedi/issues/1375" rel="noreferrer noreferrer" target="_blank">https://github.com/davidhalter/jedi/issues/1375</a>). <br>
> <br>
> Running this on a Python installed with Macports: <br>
> ```<br>
> Python 3.8.1 (default, Feb  8 2020, 01:33:23)<br>
> [Clang 11.0.0 (clang-1100.0.33.16)] on darwin<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> import subprocess<br>
> >>> subprocess.check_output('/Users/rubendibattista/.envs/josiepy-B4k-0ZyT/bin/python -c "import sys; print(sys.executable)"', shell=True)<br>
> b'/opt/local/bin/python\n'<br>
> <br>
> ```<br>
> <br>
> I get as result the system python executable and not the one from the virtualenv (created using pew). <br>
> While on Linux: <br>
> <br>
> ```<br>
> Python 3.7.3 (default, Jun  7 2019, 17:57:55)<br>
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> import subprocess<br>
> >>> subprocess.check_output('/home/ruben.di-battista/.envs/josiepy/bin/python -c "import sys; print(sys.executable)"', shell=True)<br>
> b'/home/ruben.di-battista/.envs/josiepy/bin/python\n'<br>
> <br>
> ```<br>
> <br>
> 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>
<br>
I am not very familiar with Python and I do not have any virtualenv. I can however offer this result from my High Sierra system:<br>
<br>
<br>
$ /opt/local/bin/python3.8<br>
Python 3.8.2 (default, Mar  2 2020, 03:10:15)<br>
[Clang 9.1.0 (clang-902.0.39.2)] on darwin<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import subprocess<br>
>>> subprocess.check_output('/opt/local/bin/python3.7 -c "import sys; print(sys.executable)"', shell=True)<br>
b'/opt/local/bin/python3.7\n'<br>
>>> ^D<br>
<br>
<br>
In other words, that seems to be working correctly.<br>
<br>
Possibly relevant is that I do not have /opt/local/bin/python. If you have it, what is it, and do you still experience the same problem if you remove it?<br>
<br>
</blockquote></div>