Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Jython/Python
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Jython/Python
eclipse+jython import error
ambika mullasseri
Greenhorn
Posts: 28
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am getting this error
Traceback (innermost last): File "<string>", line 1, in ? ImportError: no module named mymodule at org.python.core.Py.ImportError(Unknown Source) at org.python.core.imp.import_first(Unknown Source) at org.python.core.imp.import_name(Unknown Source) at org.python.core.imp.importName(Unknown Source) at org.python.core.ImportFunction.load(Unknown Source) ..................................................................................
i have a plugin project com.myjython where there is JythonFactory.java which has the folloeing code
PythonInterpreter interpreter = new PythonInterpreter(); interpreter.exec("from com.mypackage import myFile");
I have another plugin project com.mypackage which has pysrc folder with mymodule/myFile.py
Please help me find the reason for this issue.
SCJP 6.0 86%
Steve Fahlbusch
Bartender
Posts: 612
7
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
nobody else has replied, so here it goes.....
first post the code....
second, insure that is the full and complete error message... i think it is, and i think i know the issue, but i need to see the code..
third, if you have fixed this, what did you do?
-steve
Sumit Bisht
Ranch Hand
Posts: 331
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is com.mypackage project on the build path ?
Also, please ensure your module folder has an empty __init__.py file
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Applet InvocationTargetException
Issue when to trying check code with pmd
Applet in JSP
calling method from another package
How to create web service in RAD7
More...