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 9174007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:40:50+00:00 2026-06-17T16:40:50+00:00

I am about to port my project from an development system to the production

  • 0

I am about to port my project from an development system to the production server. Everything has been prepped(servers etc). I was about to run my application on this server (you know I installed MySQL, build some chroot, installed hardening etc etc) and I got the issue of not knowing the import located at /project/src/lib. While this used to work in my Eclipse/pyDev envoirment. I did some digging around and found out pyDev sets some envoirment variables. Like PYTHON_PATH.

So, I did this aswell like so:

#!/bin/bash
PROJECT_PATH="/opt/project"
export PYTHONPATH=$PYTHONPATH:$PROJECT_PATH:$PROJECT_PATH/src:$PROJECT_PATH/static:$PROJECT_PATH/tests

python project.py

And it didn’t work. Same error, I just do not know what I should also change. Read the pyDev documention googled around althogh I bet its a common issue. I’d still like to get an answer as I can’t seem to find the answer on the net.

As a response to the Python_Path Env variable:

I am aware of that, sorry I mis-typed here..

  • 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-17T16:40:51+00:00Added an answer on June 17, 2026 at 4:40 pm

    Probably you’re setting it in the wrong place (i.e.: your script is not being called or it creates another shell with different vars).

    You can check the ‘real’ PYTHONPATH in your python program by doing:

    import sys
    print('\n'.join(sorted(sys.path)))
    

    and checking if the paths are what you expect.

    You can even edit the sys.path as the first thing your program does in its __main__ as that’s what python uses in the import process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I wanted to port an existing project from Javascript to Coffeescript (in my
I am trying to port a project (from linux) that uses Semaphores to Mac
I'm about to port a large C++ project (some sort of Library Project, it
I am importing headers from an existing project for a port to Android-NDK. In
I'm about to port a smallish library from Java to Python and wanted some
For the controller below, why does a call to http://localhost:port/content/about not pass about as
How would I go about writing to a COM port, trying to convert the
I have recenlty stumbled into Zend Lucene port of Lucene project. I have a
So I have been at it all day to no luck and it has
I am in a project that needs to download a file of about 10M

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.