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

  • Home
  • SEARCH
  • 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 6137723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:45:44+00:00 2026-05-23T17:45:44+00:00

Im having some import problems with an application I developed in python with Eclipse/PyDev.

  • 0

Im having some import problems with an application I developed in python with Eclipse/PyDev.
Running the app from within Eclipse is no problem but when I try running it through the linux terminal the imports (which are imported from other folders (packages in Eclipse)) are broken and I get an ImportError: No module named xxx..

From previous experiences developing Java-apps in Eclipse I always solved this through exporting the project to a runnable jar-file but this isn’t an option with Python.

Is there a way of circumventing this? I’d rather not put all my .py-files in a single folder since I very much like the package-system (guess Java has damaged me). Can I change the import statement to make it work in both Eclipse and the terminal or do I have to abandon PyDev if I want this to work in the terminal?

Thanks for any help!

Slim

  • 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-05-23T17:45:45+00:00Added an answer on May 23, 2026 at 5:45 pm

    The key here is that PyDev and Eclipse manage a custom Python Path when you’re launching within Eclipse. You can modify your environment variables to contain a more complete PYTHONPATH value that contains the locations where you’re importing from, or you can use sys.path.append() to add directories to the path at run time so that the imports can be resolved.

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

Sidebar

Related Questions

I'm having some problems with a Navigation controller in my app. Moving from the
I'm having some problems integrating MS MapPoint 2009 into my WinForms .Net 2.0 application
I've recently been having some problems with my imports in Django (Python)... It's better
I'm having some problems upgrading Python on my Mac. For my first attempt, I
I’m having some difficulties while trying to consume an unmanaged-code dll from my application
I am writing a GAE application and am having some difficulty with the following
I'm new to java and having some problems. The main idea is to connect
I am using BeautifulSoup in Python and am having trouble replacing some tags. I
I am having some problem in importing a .csv file into a sqlite table.
As the title says, i am having some problems with serializing my auto generated

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.