You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my Mac, python executable is the system python2. to get to python3 I use the exec python3 (installed via homebrew).
But, running:
anvil-app-server --app MyTodoList
Fails with the following issue:
[INFO anvil.app-server.dispatch] Launching built-in downlink...
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named anvil_downlink_host
Which suggests the runtime is looking for anvil_downlink_host in the wrong location, as I installed anvil-runtime-server in my homebrew installation.
So, I ran brew info python3 and picked up the bin folder that has python linked to my brew installation and then ran:
(We were launching the subprocess with the system default python interpreter, rather than your chosen interpreter. This will be fixed in the next release of the App Server. In the meantime, running the App Server in a virtualenv will solve the problem!)
meredydd
added
the
fix coming
A fix for this issue is being tested, and will be available in the next release.
label
May 7, 2020
On my Mac,
python
executable is the systempython2
. to get topython3
I use the execpython3
(installed via homebrew).But, running:
Fails with the following issue:
Which suggests the runtime is looking for
anvil_downlink_host
in the wrong location, as I installedanvil-runtime-server
in my homebrew installation.So, I ran
brew info python3
and picked up the bin folder that haspython
linked to my brew installation and then ran:I was then able to get things to work.
This is a perennial issue with Python never enforcing
python3
as the proper executable name.Thought others might find this helpful.
Thank you for releasing Anvil as open-source! Very excited to give it a go.
PS. System info:
usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin
The text was updated successfully, but these errors were encountered: