So I will need to first uninstall the the installed python3. What would be 
the command which will only delete my python3 version and not the python2 
version.

Thanks.

On Tuesday, 8 March, 2022 at 4:34:26 pm UTC+5:30 Graham Dumpleton wrote:

> All I can tell you is that the Python distribution is broken, or it could 
> actually be the virtual environment itself.
>
> Get down the newest Python version you can that supports that macOS 
> version from the Python Software Foundation. Install and use that instead.
>
> https://www.python.org/downloads/macos/
>
> You will need to create a new Python virtual environment against the newer 
> Python version and use it.
>
> Use the "python -m venv" command to create the virtual environment rather 
> than a separate tool.
>
> Graham
>
> On 8 Mar 2022, at 10:00 pm, Suraj Shaw <[email protected]> wrote:
>
> Hi,
>
> I am not sure about who's python distribution i am using. But i am using 
> Python(3.8.9) and i using a virtual environment. So could you please guide 
> me how should i proceed further.
>
> Thanks
>
> On Tuesday, 8 March, 2022 at 1:54:48 pm UTC+5:30 Graham Dumpleton wrote:
>
>> Who's Python distribution are you using? It is actually the Python 
>> distribution that looks to be the problem. Doesn't look like it has been 
>> configured correctly when built such that it can be used in embedded 
>> systems. Haven't see the problem for many many years and when did was with 
>> a packaging system for MacOS apps that as far as I know doesn't exist 
>> anymore.
>>
>> Graham
>>
>> On 8 Mar 2022, at 7:18 pm, Suraj Shaw <[email protected]> wrote:
>>
>> Hi,
>>  macOS - Big Sur (11.6.2) . Yes its an Intel System.
>>
>> *file 
>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so
>>  
>> <http://mod_wsgi-py38.cpython-38-darwin.so/>*
>>
>>
>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>> mod_wsgi-py38.cpython-38-darwin.so: Mach-O universal binary with 2 
>> architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64:Mach-O 64-bit 
>> bundle arm64]
>>
>>
>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>> mod_wsgi-py38.cpython-38-darwin.so (for architecture x86_64): Mach-O 
>> 64-bit bundle x86_64
>>
>>
>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>> mod_wsgi-py38.cpython-38-darwin.so (for architecture arm64): Mach-O 
>> 64-bit bundle arm64
>>
>>
>>
>> *file /usr/sbin/httpd*
>>
>> /usr/sbin/httpd: Mach-O universal binary with 2 architectures: 
>> [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable 
>> arm64e]
>>
>> /usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable 
>> x86_64
>>
>> /usr/sbin/httpd (for architecture arm64e): Mach-O 64-bit executable arm64e
>>
>>
>>
>> *which apxs*
>>
>> apxs not found
>>
>> *apxs -q BINDIR*
>>
>> zsh: command not found: apxs
>>
>>
>> I have installed mod_wsgi using the command - >     pip install mod_wsgi
>>
>> Thanks
>> Suraj
>>
>>
>> On Tuesday, 8 March, 2022 at 1:27:22 am UTC+5:30 Graham Dumpleton wrote:
>>
>>> Give the OS version, I presume this is an Intel system?
>>>
>>> What do you get when you run:
>>>
>>>     file 
>>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>>> mod_wsgi-py38.cpython-38-darwin.so
>>>
>>> and:
>>>
>>>     file /usr/sbin/httpd
>>>
>>> and:
>>>
>>>     which apxs
>>>
>>> and:
>>>
>>>     apxs -q BINDIR
>>>
>>> Graham
>>>
>>> On 8 Mar 2022, at 1:50 am, Suraj Shaw <[email protected]> wrote:
>>>
>>> Hi ,
>>>
>>> I am using the following configuration.I have installed mod_wsgi using 
>>> pip command.I am using macos bigSur(11.6.2). 
>>>
>>> mod-wsgi==4.9.0
>>>
>>> Server version: Apache/2.4.51 (Unix) - Apple Version
>>>
>>> I am getting the following error
>>>
>>> httpd: Syntax error on line 191 of /private/etc/apache2/httpd.conf: 
>>> Cannot load 
>>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>>> mod_wsgi-py38.cpython-38-darwin.so into server: 
>>> dlopen(/Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>>> mod_wsgi-py38.cpython-38-darwin.so, 10): Library not loaded: 
>>> @rpath/Python3.framework/Versions/3.8/Python3\n  Referenced from: 
>>> /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/
>>> mod_wsgi-py38.cpython-38-darwin.so\n  Reason: image not found
>>>
>>> Could anyone please guide me on this.
>>>
>>> Thanks and Regards 
>>> Suraj
>>>
>>> -- 
>>> 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/a5b75dca-04da-423c-abcd-9464fd19088en%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/modwsgi/a5b75dca-04da-423c-abcd-9464fd19088en%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/87edc051-6ee1-4971-b010-fe6c71b0412cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/modwsgi/87edc051-6ee1-4971-b010-fe6c71b0412cn%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/baebca73-546f-4bf0-8e66-225e22c3ad2fn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/baebca73-546f-4bf0-8e66-225e22c3ad2fn%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/4c41adfb-1322-411c-ba7c-72a16fcef7c3n%40googlegroups.com.

Reply via email to