Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8506613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:38:18+00:00 2026-06-11T02:38:18+00:00

error_log … [Fri Sep 07 16:30:14 2012] [error] import os [Fri Sep 07 16:30:14

  • 0

error_log

...
[Fri Sep 07 16:30:14 2012] [error] import os
[Fri Sep 07 16:30:14 2012] [error] ImportError: No module named os

-shell-

[root@lts5srv1 home]# ldd /root/epd-5.1.0/bin/python
    libpython2.5.so.1.0 => /root/epd-5.1.0/lib/libpython2.5.so.1.0 (0x00002b0829205000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003da0600000)
    libdl.so.2 => /lib64/libdl.so.2 (0x0000003d9fe00000)
    libutil.so.1 => /lib64/libutil.so.1 (0x0000003dadc00000)
    libm.so.6 => /lib64/libm.so.6 (0x0000003da0200000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003d9fa00000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003d9f600000)

Anybody know how to solve this error? it’s the only error that i get when i try to run a python script or a django.wsgi script in a redhat system, after that i’m going to upload my web-app in a university server… and i’ve already configuret the VirtualHost. So that was the only problem, can anybody help please? Thank You.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:38:20+00:00Added an answer on June 11, 2026 at 2:38 am

    I found a solution for that problem (in redhat system), this is a solution in relation with Django framework..

    I’ve installed Python 2.6 (so i don’t use anymore the default installed python), and reinstalled Django using the new version of Python and some other modules that were required like: (easy_isntall, MySQL_python-1.2.3-py2.6-linux-x86_64, setuptools, mod_wsgi-2.5) so after install all these modules should compare in the site-packages directory of Python 2.6: “/usr/local/lib/python2.6/site-packages“.

    [root@lts5srv1 Python-2.6.8]# ./configure --enable-shared --prefix=/usr/local
    [root@lts5srv1 Python-2.6.8]# make
    [root@lts5srv1 Python-2.6.8]# make install
    

    Configure mod_wsgi to link with Python 2.6 shared libs

    [root@lts5srv1 /]# cd /usr/local/lib/python2.6/config/
    [root@lts5srv1 config]# ln -s ../../libpython2.6.so .
    
    [root@lts5srv1 mod_wsgi-2.5]# ./configure --with-python=/usr/local/bin/python2.6
    [root@lts5srv1 mod_wsgi-2.5]# make 
    [root@lts5srv1 mod_wsgi-2.5]# make install
    

    Then setting the environment variables:

    [root@lts5srv1 Python-2.6.8]# export LD_LIBRARY_PATH=/usr/local/lib/python2.6
    [root@lts5srv1 Python-2.6.8]# export LD_RUN_PATH=/usr/lib64/httpd/modules
    

    Editing ~/.bashrc and adding some lines to keep the changes permanent:

    [root@lts5srv1 ~]# vi ~/.bashrc
    
    # .bashrc
    
    # User specific aliases and functions
    
    PATH=/root/epd-5.1.0/lib/python2.5:/root/epd-5.1.0/bin:${PATH}
    PYTHONPATH=/usr/local/lib/python2.6
    LD_LIBRARY_PATH=/usr/local/lib/python2.6
    LD_RUN_PATH=/usr/lib64/httpd/modules
    
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi
    

    Django Install:

    [root@lts5srv1 Django-1.4.1]# /usr/local/bin/python2.6 setup.py install
    

    Then, checking if the modules are correctly integrated:

    [root@lts5srv1 /]# ldd /usr/lib64/httpd/modules/mod_wsgi.so
    [root@lts5srv1 /]# ldd /usr/local/bin/python2.6
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example, in my error_log, it says something like: Error... require, include, a_function, another_function
Error log: { [Error: Incorrect datetime value: '2012-08-24T17:29:11.683Z' for column 'robot _refreshed_at' at row
I have the following: error_log(big error!!, 1, my email address); When the message is
That is from the apache error_log: [Mon Oct 17 17:55:42 2011] [error] [client 127.0.0.1]
I frequently get this error in my Apache error_log when attempting to upload an
given a traceback error log, i don't always know how to catch a particular
A strange error appeared in the error log in PHP, but the script that
I am getting this in my error log file. Ive been searching for asolution
I have a file called error.log on my server that I need to frequently
Can anyone help me with error_log file. If you already guessed that I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.