Can't import custom Python module using Eclipse

istiaq2379

I am writing Python in Eclipse and I have the following problem.
For example, this is the code of my module:

class HalloWelt:
    def __init__(self):
        self.A = "Hallo"

    def Antwort(self, strPlaintext):
        print strPlaintext

I have saved it as ex1. When I try to import this module from another script, I don't see it in the Autocomplete list.

I have also tried to inherit it like this:

import ram 
class aa(ram.HalloWelt):
  ram.A

but after writing ram.A, it is not showing anything starting with A. Does anyone know what the problem is? Thank you.

Konstantin

If the problem is with autocompletion of import, try to do the following in PyDev [Eclipse], assuming you have default settings of PyDev.

Go to Window -> Preferences -> PyDev -> Editor -> Code Completion.

1) Change Minimum number of chars in qualifier for deep analysis to 3

2) Check Request completion on all letter chars and '_'?

Autocompletion should work fine!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can't import custom python module using multiprocess library

From Dev

Can't import module in python

From Dev

Can't import module in python

From Dev

Can't import module created using SWIG

From Dev

Python can't find my custom module

From Dev

Can't find '_sqlite3' module when import it using python which installed by pyenv

From Dev

Can't import own python module in Postgresql plpython function

From Dev

root able to import python module, but user can't

From Dev

Can't import shared python code from custom package

From Dev

How to Create and Import a Custom Module in Python

From Dev

How to Create and Import a Custom Module in Python

From Dev

Can't import an eclipse project into android studio?

From Dev

Can't Import Guava's MoreAsserts in Eclipse

From Dev

Can't import Apache HTTP in Eclipse

From Dev

Can't import the volley library in eclipse

From Dev

Eclipse + volley can't import the library

From Dev

Why can't I import this Haskell module?

From Dev

Can't import package "No module named <modulename>"

From Dev

Why I can't import this module

From Dev

Can't import ggplot module in iPython

From Dev

I can't import a module without errors

From Dev

Can't import package "No module named <modulename>"

From Dev

Can’t import a module within my virtualenv

From Dev

Node can't import npm installed module

From Dev

Can't import a python file on iOS using the app pythonista

From Dev

Can't import a python file on iOS using the app pythonista

From Dev

Can't import turtle module in Python 2.x and Python 3.x

From Dev

Can't find module cPickle using Python 3.5 and Anaconda

From Java

pytest cannot import module while python can

Related Related

HotTag

Archive