Cannot running on App Engine application by Python37 beta.
已回答
Google App Engine can run python 37.
But Pycharm cannot running.
My python interpreter settings.
case python2.7
subprocess.CalledProcessError: Command '['python3', '--version']' returned non-zero exit status 127
case python3.7
AttributeError: module 'enum' has no attribute 'IntFlag'
Can running on my terminal. but it doesn't use Pycharm.
$ python --version
Python 3.7.0
$ $HOME/.pyenv/versions/2.7.12/bin/python /usr/local/lib/google-cloud-sdk/bin/dev_appserver.py .
How do I configure it to run and debug with Pycharm?
请先登录再写评论。
Hi,
>Google App Engine can run python 37
Does it work for you with Python 3.7 in the terminal?
>case python3.7
This is a known issue, please follow https://youtrack.jetbrains.com/issue/PY-31555
>case python2.7
It looks strange, there's a reference to python3 in the call for some reason. Could you please provide a full Run window output? Run Configuration and Settings | Project ... | Project Interpreter window screenshots are also welcomed.
Hi,
> Does it work for you with Python 3.7 in the terminal?
Yes.
However, dev_appserver.py needs to be run in python2.
And, target project needs to be run in python3.
The local path is python3.
But, dev_appserver.py called by python2.
It can run.
> It looks strange, there's a reference to python3 in the call for some reason.
In the case python2.7, there doesn't has python3 path.
I think can't run pycharm by this setting. (dev_appserver.py is 2.7, and the project is 3.7)
> Run Configuration and Settings | Project ... | Project Interpreter window screenshots are also welcomed.
case 3.7
Process finished with exit code 1
case 2.7
Settings | Project ... | Project Interpreter
>The local path is python3. But, dev_appserver.py called by python2.
Maybe I am missing something, but you basically run it under Python 2, I don't think python3 as the first executable in PATH plays any role here.
>case 2.7
Could you please check if you have PYTHONPATH variable defined globally in your system?
echo $PYTHONPATH should do the trick. Does it work correctly if you set the project interpreter as Python 2 instead of changing it for a run configuration?
> I don't think python3 as the first executable in PATH plays any role here.
Want to run python37 runtime. Not python27 runtime.
https://cloud.google.com/appengine/docs/standard/python3/runtime
I'm sorry when I different, I think needs to python37 because runtime is python37.
> Could you please check if you have PYTHONPATH variable defined globally in your system?
> echo $PYTHONPATH should do the trick. Does it work correctly if you set the project interpreter as Python 2 instead of changing it for a run configuration?
PYTHONPATH is not set.
Can run gae, If it is python27 runtime....
But this case is python37 runtime by gae.
Is there a way to run python 37 runtime with Pycharm?
>Is there a way to run python 37 runtime with Pycharm?
It's not yet supported, unfortunately.
">case python3.7
This is a known issue, please follow https://youtrack.jetbrains.com/issue/PY-31555"
AND
">Is there a way to run python 37 runtime with Pycharm?
It's not yet supported, unfortunately."
Is there any update on WHEN this will be fixed. It is not really a satisfactory answer just to say this is not supported and to link to another issue which has no updates or progress shown.
Thanks
Paul
Same issue for me, could someone reply to give a proper reply such as whether there is a plan to support it and when?
Thank you!
Yikang
Hi Yikang,
I do not have any ETA, unfortunately. But as soon as it gets In Progress status it can be expected to be released in one of the future updates.
https://youtrack.jetbrains.com/issue/PY-31555