No module named ...

G

gtb

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
 
L

Leif K-Brooks

gtb said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top