Hi,

I try to follow the running Flask tutorial on macOS 
<https://davidhamann.de/2017/08/05/running-flask-with-wsgi-on-macos/>.
My setup:

(venv) Jaros-MacBook-Pro:MyFlaskProject jaro$ httpd -V

Server version: Apache/2.4.29 (Unix)

Server built:   Nov 17 2017 02:59:17

Server's Module Magic Number: 20120211:68

Server loaded:  APR 1.6.3, APR-UTIL 1.6.1

Compiled using: APR 1.6.3, APR-UTIL 1.6.1

Architecture:   64-bit

Server MPM:     prefork

  threaded:     no

    forked:     yes (variable process count)

Server compiled with....

 -D APR_HAS_SENDFILE

 -D APR_HAS_MMAP

 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

 -D APR_USE_SYSVSEM_SERIALIZE

 -D APR_USE_PTHREAD_SERIALIZE

 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

 -D APR_HAS_OTHER_CHILD

 -D AP_HAVE_RELIABLE_PIPED_LOGS

 -D DYNAMIC_MODULE_LIMIT=256

 -D HTTPD_ROOT="/opt/local"

 -D SUEXEC_BIN="/opt/local/bin/suexec"

 -D DEFAULT_PIDLOG="var/run/apache2/httpd.pid"

 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"

 -D DEFAULT_ERRORLOG="logs/error_log"

 -D AP_TYPES_CONFIG_FILE="etc/apache2/mime.types"

 -D SERVER_CONFIG_FILE="etc/apache2/httpd.conf"


When I try to execute mod_wsgi-express start-server I always get an error:

Jaros-MacBook-Pro:MyFlaskProject jaro$ *virtualenv venv*
New python executable in 
/Users/jaro/Work/test/MyFlaskProject/venv/bin/python
Installing setuptools, pip, wheel...done.

Jaros-MacBook-Pro:MyFlaskProject jaro$ *source venv/bin/activate*

(venv) Jaros-MacBook-Pro:MyFlaskProject jaro$ *pip install mod_wsgi*
Collecting mod_wsgi
  Downloading mod_wsgi-4.5.24.tar.gz (2.6MB)
    100% |████████████████████████████████| 2.6MB 519kB/s 
Building wheels for collected packages: mod-wsgi
  Running setup.py bdist_wheel for mod-wsgi ... done
  Stored in directory: 
/Users/jaro/Library/Caches/pip/wheels/9d/97/b6/8c19c1e88235e38fb291430ebdeec57c5dc660ef761503b153
Successfully built mod-wsgi
Installing collected packages: mod-wsgi
Successfully installed mod-wsgi-4.5.24

(venv) Jaros-MacBook-Pro:MyFlaskProject jaro$ *mod_wsgi-express 
start-server*
Traceback (most recent call last):
  File "/Users/jaro/Work/test/MyFlaskProject/venv/bin/mod_wsgi-express", 
line 7, in <module>
    from mod_wsgi.server import main
  File 
"/Users/jaro/Work/test/MyFlaskProject/venv/lib/python2.7/site-packages/mod_wsgi/server/__init__.py",
 
line 24, in <module>
    from . import apxs_config
  File 
"/Users/jaro/Work/test/MyFlaskProject/venv/lib/python2.7/site-packages/mod_wsgi/server/apxs_config.py",
 
line 8, in <module>
    from mod_wsgi_packages.httpd import __file__ as PACKAGES_ROOTDIR
ImportError: No module named mod_wsgi_packages.httpd

What should I do? Do you have any suggestions?


-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to