Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 25th, 2009, 06:08 PM
mbox_96 mbox_96 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Location: Philippines
Posts: 19 mbox_96 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 42 m 47 sec
Reputation Power: 0
Red face Help in "no module found" error

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

Reply With Quote
  #2  
Old June 25th, 2009, 06:59 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2006
Posts: 1,984 Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level)Oler1s User rank is General 2nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 5 Days 9 h 15 m 6 sec
Reputation Power: 1083
Quote:
The error is it can not locate the specified module (import parallel).
Indeed. So tell us, where is this module?
__________________
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.

Reply With Quote
  #3  
Old June 25th, 2009, 09:25 PM
sfb sfb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 488 sfb User rank is Sergeant (500 - 2000 Reputation Level)sfb User rank is Sergeant (500 - 2000 Reputation Level)sfb User rank is Sergeant (500 - 2000 Reputation Level)sfb User rank is Sergeant (500 - 2000 Reputation Level)sfb User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 9 h 35 m 47 sec
Reputation Power: 20

Reply With Quote
  #4  
Old June 26th, 2009, 06:13 AM
mbox_96 mbox_96 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Location: Philippines
Posts: 19 mbox_96 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 42 m 47 sec
Reputation Power: 0
Quote:
Originally Posted by Oler1s
Indeed. So tell us, where is this module?


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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Help in "no module found" error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT