google/anvil-build

Virtual ENV does not have supporting package

Opened this issue · 0 comments

I was trying to get Anvil running on my Mac and it failed to run. The issue is when a virtual ENV is created, the new ENV does not have all of the libraries e.g. twisted.internet. I modified my local third_party/anvil-build/setup-local.sh file to have the following line modified:

virtualenv --system-site-packages $DIR/local_virtualenv

With the updated file and newly generated ENV, I was able to get Anvil to start up. Without the update, I got the following error message:

Traceback (most recent call last):
File "/Users/captain/jl/src/tracing-framework/third_party/anvil-build/anvil/manage.py", line 327, in
anvil.manage.main()
File "/Users/captain/jl/src/tracing-framework/third_party/anvil-build/anvil/../anvil/manage.py", line 312, in main
cwd=os.getcwd())
File "/Users/captain/jl/src/tracing-framework/third_party/anvil-build/anvil/../anvil/manage.py", line 191, in run_command
return command.execute(parsed_args, cwd)
File "/Users/captain/jl/src/tracing-framework/third_party/anvil-build/anvil/commands/serve_command.py", line 68, in execute
self._launch_http_server(args.http_port, cwd)
File "/Users/captain/jl/src/tracing-framework/third_party/anvil-build/anvil/commands/serve_command.py", line 85, in _launch_http_server
from twisted.internet import reactor
ImportError: No module named twisted.internet