This can be closed. I have started over and have other issues to focus on with that new test setup. Thank you.
On Wednesday, July 11, 2018 at 4:34:15 PM UTC-7, Graham Dumpleton wrote: > > Most likely your mod_wsgi isn't set up correctly to use the virtual > environment you want to use, you are using mod_wsgi compiled for one Python > version with a virtual environment for a different Python version, or you > have permissions issues on directories/files so package can't be read. > > What is the full error message and traceback you get? > > What does your mod_wsgi configuration in Apache look like? > > What do you get for sys.prefix for Python virtual environment when run: > > import sys > print(sys.prefix) > > in the python command line interpreter? > > Also see: > > > http://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html > > which explains how to use virtual environments with mod_wsgi. > > You can check what Python your mod_wsgi is compiled for by using: > > > http://modwsgi.readthedocs.io/en/develop/user-guides/checking-your-installation.html#python-installation-in-use > > Graham > > On 12 Jul 2018, at 9:29 am, jerry100 <[email protected] <javascript:>> > wrote: > > Hello all. I am wondering if anyone has bumped into this one. The requests > module was installed in the site-packages folder iin the virtual > environment. Since we run the flask app on apache and the virtual > environment is inactive, by design, as we are using mod_wsgi, the requests > module is not being imported by Apache.This is how I am trying to import > the module: > > Enter code here...from flask import Flask, render_template, request > import requests > > > > > > > -- > 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] <javascript:>. > To post to this group, send email to [email protected] <javascript:> > . > Visit this group at https://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. > > > -- 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.
