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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:12:06+00:00 2026-06-18T12:12:06+00:00

I write Python programs with eclipse IDE in Linux Backtrack5. Scapy,Python 2.6 are available

  • 0

I write Python programs with eclipse IDE in Linux Backtrack5.

Scapy,Python 2.6 are available in Backtrack.Using auto-completion feature I’ve seen in all modules,But when i run the program, I see the following error:

from scapy.contrib.ospf import OSPF_Hdr
ImportError : No module named contrib.ospf

I’ve just started programming with Python, and many of the sources that I’ve encountered this problem.

The problem for me is very interesting, when coding everything is OK, but it is not running!

In addition to resolving this problem, I want to know why this problem occurs??And in general how to fix?

Maybe my question is a duplicate, but a complete solution and we need it, in which case it does not duplicate any other person who asks the question.

  • 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-18T12:12:06+00:00Added an answer on June 18, 2026 at 12:12 pm

    Your search path is wrong.

    2 common causes are:

    • Pythonversions in development and execution are different. Are you sure you use python2.6 both times? Because not all packages are available for all versions of python.

    -the search path in your IDE is different from the search path in your shell. I don’t have experience with eclipse for python, but it happened to me with other IDEs.

    So in bash you can write:
    export PYTHONPATH=”$PYTHONPATH:/where/module/lives/”
    to include the path.

    How to include this in your bashprofile:
    http://blog.streamitive.com/2011/12/01/export-pythonpathpythonpath/
    You can include the path via python itself:
    http://www.johnny-lin.com/cdat_tips/tips_pylang/path.html

    When to include via bash and when to include via python itself:
    include via python for controlled programms, when you know 100% your module will always be in the same location.

    Else, you should set the path explicitly. Maybe in a startup shell script, in the crontab command, or wherever you are calling your python program.

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

Sidebar

Related Questions

I'm trying to write some programs using opencv and python. I installed opencv and
I'm trying to write a dummy program with python using eclipse and I get
I am using IDLE to write a few small sized Python programs. There are
I'm using Notepad++ as an editor to write programs in Python. It might sound
I write MPI programs with Python using the mpi4py library. The Python generates and
I have been asked to write a program using python for an assignment. I
I am trying to use the Kivy library for python in the Eclipse IDE.
I started to write python programs for some time, but I am not so
I am doing some simple programs with opencv in python. I want to write
To launch programs from my Python-scripts, I'm using the following method: def execute(command): process

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.