Are you able to find where the _multiarray_umath package/C extension is 
installed? What directory is it in?

> On 13 Jan 2021, at 9:13 pm, Kai Brown <[email protected]> wrote:
> 
> Hi there,
> 
> I posted a question already but it may have been lost in moderation as I 
> cannot view it in any tab or view on the website...
> I have setup an apache installation through WAMP on windows and connected it 
> to a virtual environment on anaconda python 3.8 called 'MMDBpy', installing 
> Mod_WSGI into the venv and using module-config to configure Apache. 
> I am trying to host a flask app on localhost on a local network with a 
> self-signed ssl certificate for completeness (Limited users and we are aware 
> of possible certificate duplication). My app's code runs correctly in debug 
> mode, connecting to the WAMP MySQL server for data to display.
> I have successfully run the helloworld .wsgi script from the docs, as well as 
> the scripts in the "check your installation" section at 
> https://modwsgi.readthedocs.io/en/master/user-guides/checking-your-installation.html.
> ---Python Installation in use:
> sys.version = '3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit 
> (AMD64)]' sys.prefix = 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy'  
> 
> ---Python module search path:
> sys.path = ['C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\python38.zip', 
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\DLLs', 
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\lib', 
> 'C:\\wamp64\\bin\\apache\\apache2.4.46\\bin', 
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy', 
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\lib\\site-packages', 
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\lib\\site-packages\\win32', 
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\lib\\site-packages\\win32\\lib',
>  
> 'C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\lib\\site-packages\\Pythonwin']
>   
> 
> ---Embedded or Daemon Mode Check:
> mod_wsgi.process_group = ''  
> 
> ---Python Sub-interpreter Check:
> mod_wsgi.application_group = ''  
> 
> ---Multithreading Check:
> wsgi.multithread = True  
> I ran into a problem when I tried to use MMDBpy.wsgi to import my Python Dash 
> App from my scripts. I saved the scripts into the install location of my venv 
> because it appears on the python module path and the .wsgi file could then 
> detect and import it.
> This successfully begins running my dash app but fails when importing pandas 
> - the c-extensions of numpy throw an error:
> I reinstalled python and repeated the entire mod_WSGI configuration problem 
> but it didnt solve it  - conda shows numpy and pandas are both up to date. 
> The website given for NumPy in the error logs blames the installation or a 
> problem with activating the environment... That's as far as I've got.
> Any help with this is much appreciated. :)
> ---Error Log - Log level INFO:
> [Wed Jan 13 11:22:48.082868 2021] [ssl:info] [pid 6032:tid 1292] [client 
> ::1:57848] AH01964: Connection to child 61 established (server localhost:443)
> [Wed Jan 13 11:22:48.089864 2021] [wsgi:info] [pid 6032:tid 1292] [client 
> ::1:57848] mod_wsgi (pid=6032, process='', application=''): Loading Python 
> script file 'C:/wamp64/https_www/MMDBpy.wsgi'., referer: https://localhost/
> [Wed Jan 13 11:22:48.103850 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] mod_wsgi (pid=6032): Failed to exec Python script file 
> 'C:/wamp64/https_www/MMDBpy.wsgi'., referer: https://localhost/
> [Wed Jan 13 11:22:48.103850 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] mod_wsgi (pid=6032): Exception occurred processing WSGI script 
> 'C:/wamp64/https_www/MMDBpy.wsgi'., referer: https://localhost/
> [Wed Jan 13 11:22:48.103850 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] Traceback (most recent call last):\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]   File "C:/wamp64/https_www/MMDBpy.wsgi", line 1, in <module>\r, 
> referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]     from MMDBA_Scripts.Dash_Server_Host import app as 
> application\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]   File 
> "C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\MMDBA_Scripts\\Dash_Server_Host.py",
>  line 29, in <module>\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]     import pandas as pd\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]   File 
> "C:\\Users\\Constantin\\anaconda3\\envs\\MMDBpy\\lib\\site-packages\\pandas\\__init__.py",
>  line 16, in <module>\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]     raise ImportError(\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] ImportError: Unable to import required dependencies:\r, referer: 
> https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] numpy: \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS 
> ISSUE!\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] Importing the numpy C-extensions failed. This error can happen 
> for\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] many reasons, often due to issues with your setup or how NumPy 
> was\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] installed.\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] We have compiled some common reasons and troubleshooting tips 
> at:\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]     
> https://numpy.org/devdocs/user/troubleshooting-importerror.html\r, referer: 
> https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] Please note and check the following:\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]   * The Python version is: Python3.8 from 
> "C:\\wamp64\\bin\\apache\\apache2.4.46\\bin\\httpd.exe"\r, referer: 
> https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848]   * The NumPy version is: "1.19.2"\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] and make sure that they are the versions you expect.\r, referer: 
> https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] Please carefully study the documentation linked above for further 
> help.\r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] Original error was: DLL load failed while importing 
> _multiarray_umath: The specified module could not be found.\r, referer: 
> https://localhost/
> [Wed Jan 13 11:22:48.104851 2021] [wsgi:error] [pid 6032:tid 1292] [client 
> ::1:57848] \r, referer: https://localhost/
> 
> Regards
> 
> Kai
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/5c100304-3bce-4e1f-8f3a-7ef9c95aa6b5n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/5c100304-3bce-4e1f-8f3a-7ef9c95aa6b5n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/902E70EB-7723-464A-A862-DC3D8E6C3F73%40gmail.com.

Reply via email to