, but have been running into some problems. Background:
WARPDRIVE=$HOME/../../usr/local/lib/python3.6/site-packages/warpdrive
export WARPDRIVE
source `$WARPDRIVE rcfile`
(I suspect that the path might be wrong, but I verified the location of the package using pip3 show warpdrive)
Also made sure apr and apr-util are installed for good measure, thus also adding following to my ~/.bash_profile:
export PATH="/usr/local/opt/apr/bin:$PATH"
export PATH="/usr/local/opt/apr-util/bin:$PATH"
Even though I have command line tools installed, verified with:
xcode-select --install
CAN run
warpdrive build without errors
First problem - warpdrive setup not running:
Created the file ~/.warpdrive/action_hooks/setup, and added commands as described in tutorial. When running the command warpdrive setup, nothing is happening, not even an error message.
Second problem - warpdrive startserver:
When running
warpdrive startserver I get following error:
-----> Executing server command 'mod_wsgi-express start-server --server-root /Users/horken7/.warpdrive/warpdrive+mydjangosite/mod_wsgi --log-to-terminal --startup-log --port 8080 --application-type module --entry-point mydjangosite.wsgi --callable-object application --url-alias /static/ /Users/horken7/.warpdrive/warpdrive+mydjangosite/tmp/django/static/'
Traceback (most recent call last):
File "/Users/horken7/.warpdrive/warpdrive+mydjangosite/bin/mod_wsgi-express", line 7, in <module>
from mod_wsgi.server import main
ModuleNotFoundError: No module named 'mod_wsgi'
I find that odd, since I expected that warpdrive would take care of all mod_wsgi integration for me. But to make sure, I explicitly installed mod_wsgi into warpdrives virtualenv (using pip3 install mod_wsgi). To get some further information I also located and ran following:
python3 ~/.warpdrive/warpdrive+mydjangosite/bin/mod_wsgi-express
Traceback (most recent call last):
File "/Users/USERNAME/.warpdrive/warpdrive+mydjangosite/bin/mod_wsgi-express", line 7, in <module>
from mod_wsgi.server import main
File "/Users/USERNAME/.warpdrive/warpdrive+mydjangosite/lib/python3.6/site-packages/mod_wsgi/server/__init__.py", line 24, in <module>
from . import apxs_config
File "/Users/USERNAME/.warpdrive/warpdrive+mydjangosite/lib/python3.6/site-packages/mod_wsgi/server/apxs_config.py", line 8, in <module>
from mod_wsgi_packages.httpd import __file__ as PACKAGES_ROOTDIR
ModuleNotFoundError: No module named 'mod_wsgi_packages'
There are many potential problems and fixes, but after hours of googling I still haven't found a solution. Hoping the problem to be simple, like some incorrect directory reference. But apxs has been popping up multiple times whilst troubleshooting previous errors, so I am suspecting that Apache might have something to do with it. Unfortunately, getting warpdrive to work hasn't been as easy as pip install warpdrive. Maybe a suggestion would be to make a Youtube tutorial to show the process from a totally clean environment (no python3, commandline tools or apache pre-installed)?
Please tell me if you need any further information. Thanks!