|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, I'm new to python. Please tell me what I'm missing with my code below. The error is it can not locate the specified module (import parallel).
class HelloWorld: _reg_clsid_ = '{BEA1AA48-1D0A-4D19-8E98-03C54F195B59}' _reg_desc_ = "Python Test COM Server" _reg_progid_ = "Python.TestServer" _public_methods_ = ['call_it'] _public_attrs_ = ['softspace', 'noCalls'] _readonly_attrs_ = ['noCalls'] def __init__(self): self.softspace = 2 self.noCalls = 0 def call_it(self,arg1): import parallel p=parallel.Parallel() return arg1 |
|
#2
|
|||
|
|||
|
Quote:
__________________
When you ask a question, be prepared to tell us: what have you tried? If you think you don't need to try anything, we will never be interested in helping you. If you agree with the link, and you refuse to answer that question, you are being a hypocrite. Need help with broken code? Your question should be like a good bug report: (1) It has the smallest number of steps to reproduce the problem you see (2) It tells us precisely what you expected to see and (3) It tells us what you saw and how it differed from what you expected. We need all three to help you. Want better answers? Tell us what you Googled for and what steps you took to answer your own question. |
|
#3
|
|||
|
|||
|
Why, 'tis at http://pyserial.wiki.sourceforge.net/pyParallel.
|
|
#4
|
|||
|
|||
|
Quote:
Hi, I think the path of the parallel module is in "C:\Python26\Lib\site-packages\parallel\". Can you guide me how to write the path within my script. Thanks in advance, mbox_96 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Help in "no module found" error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|