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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:30:40+00:00 2026-05-29T23:30:40+00:00

I develop in eclipse using pydev plugin. When I run project in eclipse everything

  • 0

I develop in eclipse using pydev plugin. When I run project in eclipse everything works fine. But when I try to run it from command line I get an Import error. I have a dir structure like this:

      TGRParser 
        |----tgr
              |--graph
              |--main
              |   |-- main.py
              |   |-- __init__.py  
              |--parser
                  |--__init__py
                  |--parserClass.py

Now I have a class Main in module main (main.py) in package main (TGRParser/tgr/main). Now in class Main I try to call

    from tgr.parser.parserClass import Parser

It works fine from within eclipse but doesnt work at all from command line. I checked sys.path. They are both the same in cmd line and in eclipse.

It says:

 File "main.py", line 6, in <module>
from tgr.parser.parserClass import Parser
ImportError: No module named tgr.parser.parserClass
  • 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-29T23:30:41+00:00Added an answer on May 29, 2026 at 11:30 pm

    Add the TGRParser directory to your PYTHONPATH environment variable.

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

Sidebar

Related Questions

I've been using Pydev/Eclipse to develop Google App Engine (GAE) applications but I've been
I'm using Eclipse-plugin to develop Android applications on mac. I've got a project and
I am using Eclipse/PyDev to develop a Google App Engine project called GAEServer. One
I'm trying to develop a widget for Android. I'm using Eclipse but I can't
I am using Eclipse IDE to develop android apps. But I want to use
I am using Eclipse 3.4.2 to develop my code. As part of my project
I am using eclipse to develop an android application . But, now i can't
when i using eclipse to develop my android project , the logCat always print
I'm using MyEclipse to develop a really simple Java Struts project. Everything was working
I am using Eclipse classic to develop my Android applications. But I am not

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.