Re: keep getting the Fatal Python error with mod_wsgi and apache

2020-03-26 Thread Fateh Budwal
Yes i did recreate my virtualenv.  

On Thursday, March 26, 2020 at 6:58:15 AM UTC-7, Stephen J. Butler wrote:
>
> Did you recreate the virtualenv on the server, or did you copy it from 
> your development machine? You should recreate virtualenv's when deploying 
> to a different server.
>
> On Thu, Mar 26, 2020 at 8:53 AM Fateh Budwal  > wrote:
>
>> Yes python 3.8.2 is installed 
>>
>> On Wednesday, March 25, 2020 at 8:30:35 PM UTC-7, Hella Nick wrote:
>>>
>>> 你的服务器是安装的python3.8.2的版本吗?
>>>
>>> Fateh Budwal  于2020年3月26日周四 上午6:03写道:
>>>
>>>> Hello Everyone 
>>>>  I have complied python 3.8.2 with django 2.2. it run locally fine but 
>>>> when i try to deploy it with Apache and mod_wsgi 4.7.1 and getting the 
>>>> below error. Any suggestions ?  
>>>>
>>>> Current thread 0x7f5aa48af880 (most recent call first):
>>>> no Python framePython path configuration:
>>>>   PYTHONHOME = (not set)
>>>>   PYTHONPATH = (not set)
>>>>   program name = /var/www/project/venu/bin/python
>>>>   isolated = 0
>>>>   environment = 1
>>>>   user site = 1
>>>>   import site = 1
>>>>   sys._base_executable = /var/www/project/venu/bin/python
>>>>   sys.base_prefix = '/opt/python3.8.2'
>>>>   sys.base_exec_prefix = '/opt/python3.8.2'
>>>>   sys.executable = '/var/www/project/venu/bin/python
>>>>   sys.prefix = '/opt/python3.8.2'
>>>>   sys.exec_prefix = '/opt/python3.8.2'
>>>>   sys.path = [
>>>> '/opt/python3.8.2/lib/python38.zip',
>>>> '/opt/python3.8.2/lib/python3.8',
>>>> '/opt/python3.8.2/lib/lib-dynload',
>>>>   ]
>>>> Fatal Python error: init_fs_encoding: failed to get the Python codec of 
>>>> the filesystem encoding
>>>> Python runtime state: core initialized
>>>> ModuleNotFoundError: No module named encodings
>>>>
>>>> Current thread (most recent call first)
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to django...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5f39f719-94f3-4f30-a7d3-2a65749af0cf%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/5f39f719-94f3-4f30-a7d3-2a65749af0cf%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d5d28b14-12d5-41cd-a878-97e6d6157afd%40googlegroups.com.


Re: keep getting the Fatal Python error with mod_wsgi and apache

2020-03-26 Thread Fateh Budwal
i do have django 2.2.8 installed in production.

On Wednesday, March 25, 2020 at 9:36:58 PM UTC-7, Mike Dewhirst wrote:
>
> On 26/03/2020 2:29 pm, Hella Nick wrote: 
> > 你的服务器是安装的python3.8.2的版本吗? 
> > 
> > Fateh Budwal  <mailto:fbu...@gmail.com 
> >> 
> > 于2020年3月26日周四 上午6:03写道: 
> > 
> > Hello Everyone 
> >  I have complied python 3.8.2 with django 2.2. 
> > 
>
>
> https://docs.djangoproject.com/en/3.0/faq/install/#faq-python-version-support 
>
> That page says Python 3.8 support was added in Django 2.2.8 but you 
> don't mention which Django is installed in production. 
>
> > it run locally fine but when i try to deploy it with Apache and 
> > mod_wsgi 4.7.1 and getting the below error. Any suggestions ? 
> > 
> > |Currentthread 0x7f5aa48af880(most recent call first):no 
> > Pythonframe Pythonpath configuration:PYTHONHOME 
> > =(notset)PYTHONPATH =(notset)program name 
> > =/var/www/project/venu/bin/python isolated =0environment =1user 
> > site =1importsite =1sys._base_executable 
> > =/var/www/project/venu/bin/python sys.base_prefix 
> > ='/opt/python3.8.2'sys.base_exec_prefix 
> > ='/opt/python3.8.2'sys.executable 
> > ='/var/www/project/venu/bin/python sys.prefix = '/opt/python3.8.2' 
> > sys.exec_prefix = '/opt/python3.8.2' sys.path = [ 
> > '/opt/python3.8.2/lib/python38.zip', 
> > '/opt/python3.8.2/lib/python3.8', 
> > '/opt/python3.8.2/lib/lib-dynload', ] Fatal Python error: 
> > init_fs_encoding: failed to get the Python codec of the filesystem 
> > encoding Python runtime state: core initialized 
> > ModuleNotFoundError: No module named encodings Current thread 
> > (most recent call first)| 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Django users" group. 
> > To unsubscribe from this group and stop receiving emails from it, 
> > send an email to django...@googlegroups.com  
> > <mailto:django-users+unsubscr...@googlegroups.com >. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com
>  
> > <
> https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com?utm_medium=email_source=footer>.
>  
>
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Django users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to django...@googlegroups.com  
> > <mailto:django-users+unsubscr...@googlegroups.com >. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/CAHfGPEeGWB6kdVc65d6s53M-M0KnGS0Er_PFE-pz3tSZco_cGg%40mail.gmail.com
>  
> > <
> https://groups.google.com/d/msgid/django-users/CAHfGPEeGWB6kdVc65d6s53M-M0KnGS0Er_PFE-pz3tSZco_cGg%40mail.gmail.com?utm_medium=email_source=footer>.
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/84e39ab6-1618-447e-b373-49cf1e7903c3%40googlegroups.com.


Re: keep getting the Fatal Python error with mod_wsgi and apache

2020-03-26 Thread Fateh Budwal
Yes python 3.8.2 is installed 

On Wednesday, March 25, 2020 at 8:30:35 PM UTC-7, Hella Nick wrote:
>
> 你的服务器是安装的python3.8.2的版本吗?
>
> Fateh Budwal > 于2020年3月26日周四 上午6:03写道:
>
>> Hello Everyone 
>>  I have complied python 3.8.2 with django 2.2. it run locally fine but 
>> when i try to deploy it with Apache and mod_wsgi 4.7.1 and getting the 
>> below error. Any suggestions ?  
>>
>> Current thread 0x7f5aa48af880 (most recent call first):
>> no Python framePython path configuration:
>>   PYTHONHOME = (not set)
>>   PYTHONPATH = (not set)
>>   program name = /var/www/project/venu/bin/python
>>   isolated = 0
>>   environment = 1
>>   user site = 1
>>   import site = 1
>>   sys._base_executable = /var/www/project/venu/bin/python
>>   sys.base_prefix = '/opt/python3.8.2'
>>   sys.base_exec_prefix = '/opt/python3.8.2'
>>   sys.executable = '/var/www/project/venu/bin/python
>>   sys.prefix = '/opt/python3.8.2'
>>   sys.exec_prefix = '/opt/python3.8.2'
>>   sys.path = [
>> '/opt/python3.8.2/lib/python38.zip',
>> '/opt/python3.8.2/lib/python3.8',
>> '/opt/python3.8.2/lib/lib-dynload',
>>   ]
>> Fatal Python error: init_fs_encoding: failed to get the Python codec of the 
>> filesystem encoding
>> Python runtime state: core initialized
>> ModuleNotFoundError: No module named encodings
>>
>> Current thread (most recent call first)
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5f39f719-94f3-4f30-a7d3-2a65749af0cf%40googlegroups.com.


keep getting the Fatal Python error with mod_wsgi and apache

2020-03-25 Thread Fateh Budwal
Hello Everyone
 I have complied python 3.8.2 with django 2.2. it run locally fine but when
i try to deploy it with Apache and mod_wsgi 4.7.1 and getting the below
error. Any suggestions ?

Current thread 0x7f5aa48af880 (most recent call first):
no Python framePython path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = /var/www/project/venu/bin/python
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = /var/www/project/venu/bin/python
  sys.base_prefix = '/opt/python3.8.2'
  sys.base_exec_prefix = '/opt/python3.8.2'
  sys.executable = '/var/www/project/venu/bin/python
  sys.prefix = '/opt/python3.8.2'
  sys.exec_prefix = '/opt/python3.8.2'
  sys.path = [
'/opt/python3.8.2/lib/python38.zip',
'/opt/python3.8.2/lib/python3.8',
'/opt/python3.8.2/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec
of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named encodings

Current thread (most recent call first)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOts0r0qLZLyaFczsQvdKNm45uhhRFYZPwo3uTfMK9Jmy%2B1oNQ%40mail.gmail.com.


Getting ORA-00918: column ambiguously defined error which try to open django admin page after upgrading to django 3.03 from 2.0

2020-02-15 Thread Fateh Budwal


Getting django.db.utils.DatabaseError: ORA-00918: column ambiguously 
defined error when I try to open Django admin page. Here is the error:

raise dj_exc_value.with_traceback(traceback) from exc_value File 
"/venomscribe/lib/python3.6/site-packages/django/db/backends/utils.py", 
line 86, in _execute return self.cursor.execute(sql, params) File 
"/venomscribe/lib/python3.6/site-packages/django/db/backends/oracle/base.py", 
line 514, in execute return self.cursor.execute(query, 
self._param_generator(params)) django.db.utils.DatabaseError: ORA-00918: 
column ambiguously defined

Query is

SELECT "DJANGO_ADMIN_LOG"."ID",
   "DJANGO_ADMIN_LOG"."ACTION_TIME",
   "DJANGO_ADMIN_LOG"."USER_ID",
   "DJANGO_ADMIN_LOG"."CONTENT_TYPE_ID",
   "DJANGO_ADMIN_LOG"."OBJECT_ID",
   "DJANGO_ADMIN_LOG"."OBJECT_REPR",
   "DJANGO_ADMIN_LOG"."ACTION_FLAG",
   "DJANGO_ADMIN_LOG"."CHANGE_MESSAGE",
   "AUTH_USER"."ID",
   "AUTH_USER"."PASSWORD",
   "AUTH_USER"."LAST_LOGIN",
   "AUTH_USER"."IS_SUPERUSER",
   "AUTH_USER"."USERNAME",
   "AUTH_USER"."FIRST_NAME",
   "AUTH_USER"."LAST_NAME",
   "AUTH_USER"."EMAIL",
   "AUTH_USER"."IS_STAFF",
   "AUTH_USER"."IS_ACTIVE",
   "AUTH_USER"."DATE_JOINED",
   "DJANGO_CONTENT_TYPE"."ID",
   "DJANGO_CONTENT_TYPE"."APP_LABEL",
   "DJANGO_CONTENT_TYPE"."MODEL"
  FROM "DJANGO_ADMIN_LOG"
  INNER JOIN "AUTH_USER"
ON ("DJANGO_ADMIN_LOG"."USER_ID" = "AUTH_USER"."ID")
  LEFT OUTER JOIN "DJANGO_CONTENT_TYPE"
ON ("DJANGO_ADMIN_LOG"."CONTENT_TYPE_ID" = "DJANGO_CONTENT_TYPE"."ID")
  WHERE "DJANGO_ADMIN_LOG"."USER_ID" = :arg0
  ORDER BY "DJANGO_ADMIN_LOG"."ACTION_TIME" DESC
  FETCH FIRST 10 ROWS ONLY

please note it only happening with django 3.03. django 2 is working fine. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/62d610eb-174f-476c-85a7-c7d2beb76842%40googlegroups.com.