We have a module called "cart.items" and imported this in another PY code to use classes.
I did import classed under cart.items like ("from cart.ltems import Items") and used Items class in my code. When I run my PY code in UNIX box, I get that problem. What I ve missing to run this script in UNIX shell.
kuchi
0
Newbie Poster
Recommended Answers
Jump to PostIt would be something like
from cart import items
if cart.py is the name of the file. But without knowing what type of object cart and items are, there is no real way to answer the question. Post a simplified example.
Jump to PostThere are 2 things here that you must check up.
1. If the module exists in the same project in IDE(eclipse) it should call that for you. But i have a problem with eclipse as it default to jython and custom modules are not that consistant.
You can …
All 5 Replies
woooee
814
Nearly a Posting Maven
kuchi
0
Newbie Poster
richieking
44
Master Poster
kuchi
0
Newbie Poster
richieking
44
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.