No module named ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gtb

    #1

    No module named ...

    I was having trouble with the 'no module named' error message when
    trying to import and noticed that other successful imports were
    pulling from .py files that had the dot replaced with $ and .class
    appended to the name. Actually in one case it picked up a .pyc file
    then created a .class file.

    How do I create a .class file from my .py file so that functions can
    be imported.


    Thanx,

    gtb

  • Leif K-Brooks

    #2
    Re: No module named ...

    gtb wrote:
    I was having trouble with the 'no module named' error message when
    trying to import and noticed that other successful imports were
    pulling from .py files that had the dot replaced with $ and .class
    appended to the name. Actually in one case it picked up a .pyc file
    then created a .class file.
    >
    How do I create a .class file from my .py file so that functions can
    be imported.
    Sounds like a Jython implementation detail, like CPython's .pyc files.
    Those files should presumably be created automatically the first time
    your module is imported. The problem importing your module is probably
    caused by something else, like an incorrect sys.path.

    Comment

    Working...