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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:13:37+00:00 2026-05-31T05:13:37+00:00

I have developed some code in Python using the eclipse perspective PyDev. The code

  • 0

I have developed some code in Python using the eclipse perspective PyDev. The code includes imports.

When i run the code from within eclipse everything goes fine, but if i try executing: > python my_application.py -some_flag I get an error. The interpreter is unable to located one of the modules from which i import a class.

I am running from the python32 directory (since python.exe is not in my PATH) but provide the full path to my_application.py. my_application.py has imports from other .py files that declare classes that a I have written. all the .py files are in the same directory.

EDIT: Adding python.exe to the PATH and running the command above from the directory where my_application.py is placed made no effect.

What am i doing wrong?

  • 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-31T05:13:38+00:00Added an answer on May 31, 2026 at 5:13 am

    Turns out one of the modules was not in the correct directory. Eclipse would run the program with no problem, since the module was in the same project. Python, on the other hand, couldn’t find the module and failed.

    i Moved the module to the correct directory and it runs without any problem.

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

Sidebar

Related Questions

I have some code I developed in python 2.4++ and you bet, I have
Task at hand — I have three versions of some code, developed by different
I have some ANSI C code that I developed on my Mac, but when
I have taken over some code from a previous developer and have come across
I have inherited some code (from zip file) from a developer and git initialzed,
We are developing a customized installer using Wix and Wpf. We have developed some
I have some python code for Google App Engine that responds with the string
I have some python code that was written by a developer before me. It
I have been using Python for about a year now, coming from a mostly
I have a number of projects using git for version control. Some are python

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.