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
This week's book giveaway is in the
Java in General
forum.
We're giving away four copies of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
and have Michael Redlich on-line!
See
this thread
for details.
Win a copy of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
this week in the
Java in General
forum!
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
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Jython/Python
eclipse+jython import error
ambika mullasseri
Greenhorn
Posts: 28
posted 12 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 12 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 12 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
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
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...