conda-forge / mod_wsgi-feedstock

A conda-smithy repository for mod_wsgi.
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

mod_wsgi.so file does not exist #19

Open skimmy12 opened 1 year ago

skimmy12 commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

Ubuntu 20 linux

After I successfully run this command: conda install -c conda-forge mod_wsgi

I'm unable to find mod_wsgi.so

I need this file to use with apache 2.4

Installed packages

:~/miniconda3/envs$ conda list
# packages in environment at /var/www/miniconda3/envs/myenv:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
bzip2                     1.0.8                h7b6447c_0
ca-certificates           2023.7.22            hbcca054_0    conda-forge
click                     8.0.4           py311h06a4308_0
flask                     2.2.2           py311h06a4308_0
itsdangerous              2.0.1              pyhd3eb1b0_0
jinja2                    3.1.2           py311h06a4308_0
ld_impl_linux-64          2.38                 h1181459_1
libffi                    3.4.4                h6a678d5_0
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libstdcxx-ng              11.2.0               h1234567_1
libuuid                   1.41.5               h5eee18b_0
llvm-openmp               14.0.6               h9e868ea_0
markupsafe                2.1.1           py311h5eee18b_0
mod_wsgi                  4.9.4           py311hd4cff14_1    conda-forge
ncurses                   6.4                  h6a678d5_0
openssl                   3.1.2                hd590300_0    conda-forge
pip                       23.2.1          py311h06a4308_0
python                    3.11.4               h955ad1f_0
python_abi                3.11                    2_cp311    conda-forge
readline                  8.2                  h5eee18b_0
setuptools                68.0.0          py311h06a4308_0
sqlite                    3.41.2               h5eee18b_0
tk                        8.6.12               h1ccaba5_0
tzdata                    2023c                h04d1e81_0
werkzeug                  2.2.3           py311h06a4308_0
wheel                     0.38.4          py311h06a4308_0
xz                        5.4.2                h5eee18b_0
zlib                      1.2.13               h5eee18b_0

Environment info

:~/miniconda3/envs$ conda info

     active environment : myenv
    active env location : /var/www/miniconda3/envs/myenv
            shell level : 2
       user config file : /var/www/.condarc
 populated config files :
          conda version : 23.7.2
    conda-build version : not installed
         python version : 3.11.4.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.31=0
                          __linux=5.4.0=0
                          __unix=0=0
       base environment : /var/www/miniconda3  (writable)
      conda av data dir : /var/www/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /var/www/miniconda3/pkgs
                          /var/www/.conda/pkgs
       envs directories : /var/www/miniconda3/envs
                          /var/www/.conda/envs
               platform : linux-64
             user-agent : conda/23.7.2 requests/2.31.0 CPython/3.11.4 Linux/5.4.0-155-generic ubuntu/20.04.6 glibc/2.31
                UID:GID : 33:33
             netrc file : None
           offline mode : False
ReimarBauer commented 1 year ago

when I install it in a fresh env by mamba I have it in:

./menv/lib/python3.11/site-packages/mod_wsgi/server/mod_wsgi-py311.cpython-311-x86_64-linux-gnu.so

Please try when you have apache2-dev installed.

The package has the same limitations as described on pypi project descriptions https://pypi.org/project/mod-wsgi/ because it is based on that pypi module. When I remove the apache2-dev I get the result you describe.

my steps are:

mamba create -n mod_env
mamba activate mod_env
mamba install mod_wsgi
cd envs/mod_env/lib/python3.11/site-packages/mod_wsgi/server/
ls -rlt mod_wsgi-py311.cpython-311-x86_64-linux-gnu.so
-rwxrwxr-x 4 reimar reimar 1186936 Nov  2  2022 mod_wsgi-py311.cpython-311-x86_64-linux-gnu.so