28 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Reverend Jim

I'm having a problem with my python installation. The packages that came with the installation work just fine but when I try to use other installed packages I run into problems. For example, I installed a package `pymsgbox` using pip from an admin shell. When I run a sample script …

Member Avatar for Reverend Jim
0
2K
Member Avatar for abders

This is my custom module: [CODE]class Player(object): def __init__(self, name, score = 0): self.name = name self.score = score def __str__(self): rep = self.name + ":\t" + str(self.score) return rep def ask_yes_no(self, question): response = None while response not in ("y", "n"): response = input(question).lower() return response def ask_number(self, question, …

Member Avatar for Kaushik_2
0
979
Member Avatar for Kewne

Hi guys, I just followed the tutorial on epesi and have finished making their tutorial on "Hello World". Now, I'm trying to create another module but it doesn't show up at the administrator availanble install. It was just a simple code following the skeleton presented at the HelloWorld tutorial just …

0
184
Member Avatar for pratz

Hello, I have few question regarding importing modules. I have created a folder for my python work [quote]/usr/home/pratz/pyfiles[/quote] I have exported this to set the $PATH. And now if I issue the command [code]echo $PATH [/code] I am getting the string the "/usr/home/pratz/pyfiles" in the list. If I am not …

Member Avatar for Amigodornot666
0
514
Member Avatar for Brandy_1

Program runs without errors, unfortunately it will not calculate the days overdue. Any Suggestions? I have attached the code as a pdf, i have also done this as an IF, THEN, ELSE statement with the exact same results, but it will not let me upload it. Help! Private Sub calculateFees …

Member Avatar for Reverend Jim
0
391
Member Avatar for mavtcr

I am studying vb.net through the help received through this forum. While I was making a small programme Out of curiosity/error I created a module.later I thought it is not necesssary.So I wanted to remove it.I searched in the project Tab But I could not see the Delete command.So I …

Member Avatar for mavtcr
0
271
Member Avatar for booicu

Evening Community! Alright. As you can see I am "newbie" on the block. When I try approaching my professor for assistance she tells me to go to my book. But I digress. If I was able to use a while loop this would be more simplified. But our professor is …

Member Avatar for woooee
0
17K
Member Avatar for dreking6

am a python beginner, receeently started learning about classesand i wrote this got this little code that keeps bringing this error . please i need someone here to help debug it: class employee(): ` empcount=0` def _init_(self,name,salary): self.name=name self.salary=salary employee.empcount=+1 def displaycount(self): print 'Total employee: %d' %employee.empcount def displayemployee(self): print …

Member Avatar for dreking6
0
6K
Member Avatar for kirtee2209

Hi. Does anyone know how to migrate a Merge Module project from .Net Framework 2.0 to 3.5? I have been able to move the WindowsFormApplications and msi project but got stuck with the msm. Thanks

Member Avatar for kirtee2209
0
444
Member Avatar for bdheeraj

hello everyone i created a python file DailyExpensessave.py when i need to import this in another python program i was getting this error > Traceback (most recent call last): > File "C:\Python32\DailyExpensessave", line 1, in <module> > from DailyExpenses import * > ImportError: No module named DailyExpenses Both the python …

Member Avatar for sneekula
0
572
Member Avatar for drichird

#module nametest def showName(): print("__name__ is: " + str(__name__)) If I import nametest into another module or into the shell interpreter and call nametest.showName() I find that name = "nametest", in other words __name__ gets the module name it is a built-in member of? The only exception I know of …

Member Avatar for drichird
0
246
Member Avatar for rayidi

Hie all, I'm developing a bulk sms website, there are users and resellers for the site. I want to map my to another ip through A record. Problem is how to identify the ip user / reseller ? Please help me.

Member Avatar for rayidi
0
224
Member Avatar for poojavb

Hello Friends....One more doubt... I have a connection module in which I have written the open and close database connection.... if database connection is an error it will return false else if success it will return true the function of the modules will be called from the form code.... what …

Member Avatar for poojavb
0
252
Member Avatar for DavidAntaramian

# Introduction to the Issue # I'm currently working on a piece of code that was put together by someone else on my team. All of his logic was in the `index.html` file, so I'm trying to factor it out into a modular library. Part of the reason is that …

Member Avatar for DavidAntaramian
0
233
Member Avatar for hemant_rajput

Hi, i've both pyhon 2.7 and python 3.2 installed on my windows PC. I downloaded and installed the module BeautifulSoup but it got installed only in python 2.7 how can i installed this also in python 3.2.

Member Avatar for Gribouillis
0
231
Member Avatar for bomko

i have this 2 custome modules and when i try to call module turtle i get an error message and i dont know what it means or better said i dont know where seems to be a problem. i think it should work just fine this is the message i …

Member Avatar for bomko
0
164
Member Avatar for mi.mac.rules

All, I am trying to install CAS on an Ubuntu Server and the only problem seems to be installing Apache Modules. I am setting this up to be (almost) exactly like a Solaris server we have currently up and running, but I can't seem to figure out how to install …

Member Avatar for mi.mac.rules
1
1K
Member Avatar for VulcanDesign

Hi all, I'm trying to use Python's urllib to get a Facebook profile page. I get the following error: [CODE]IOError: [Errno socket error] [Errno 10035] A non-blocking socket operation could not be completed immediately[/CODE] Here's my code: [CODE] import urllib member_profile_text = urllib.urlopen('http://www.facebook.com/profile.php?id=1073109649').read() [/CODE] I need to get this working …

Member Avatar for VulcanDesign
0
537
Member Avatar for Python_nooby

Recently I have been learning about the socket module and how you can create networking applications using it. I was curious if it would be possible using the socket module to either: Set the port as a USB port to trick the computer into thinking a USB is plugged in …

Member Avatar for richieking
0
481
Member Avatar for joaep2

Hi guys. I downloaded pygame and a few other modules for Python. I know that I have to put them in a certain folder to make sure Python can read them, but what is that exactly? I'm running a Mac, OS 10.6.6. I already tried putting it in the main …

Member Avatar for joaep2
0
895
Member Avatar for pi_lord12

Hey, I'm new to Python and wondering about the following bit of code. It tells me that the module random has no attribute randint. I've looked at the documentation and such and I think I'm doing it correctly, but obviously something's wrong. Any ideas? Thanks! [code] import random int1=random.randint(1, 6) …

Member Avatar for pi_lord12
0
2K
Member Avatar for gozlemci

Hi there; I hope I post this message in true place.My question is about modules in oop. In Code complete, author Mr Steve McConnell mentioned "module" in page 89. [QUOTE] Semantic coupling The most insidious kind of coupling occurs when one module makes use not of some syntactic element of …

Member Avatar for gozlemci
0
2K
Member Avatar for KhairilSyahrin

Does anyone know any example of source codes that can receive a string(SCPI String) and send it to a SCPI library/module/commands? For example to those who know, GPIB has their own specific module that can be used in VB and what i need is somewhat that same specific module that …

Member Avatar for KhairilSyahrin
0
240
Member Avatar for Musing888

When I run my code the program adds the following before the start of my program: >>> Warning (from warnings module): File "C:/Users/Steven/Documents/CA/CA python/CAMain.py", line 142 def maxgen(fname, worksheet=1,encoding='cp1251'): SyntaxWarning: import * only allowed at module level >>> [I]The first prompt of my program would be here[/I] The code it …

Member Avatar for Musing888
0
1K
Member Avatar for Nemuksis

Hi, i looking to find what would be the best cms + modules to host a kind of freeware site like the following [URL="http://www.androidfreeware.org/"]http://www.androidfreeware.org/[/URL] where users can upload apps, search for apps, detailed list of apps, category etc etc. I know literally any cms can be used, i mostly want …

Member Avatar for Nemuksis
0
165
Member Avatar for SSSD

Hello, im running windows XP home edition, and i dont have much IT knowledge, but recently, whenever i log into my computer, whatever the user - in this case it has administrative rights or whtever - i get 2 error messages, 'error loading C:\WINDOWS\kbdmsy.dll', and 'error loading C:\WINDOWS\aralaquv.dll', for both …

Member Avatar for gerbil
0
164
Member Avatar for iman_shani

Hej i am trying to create a simple game as homework from my school. now i just stuck on one stage. see the picture on this link how it looks like. [URL="http://jobbalert.se/"]http://jobbalert.se/[/URL] i have created a module here is the code for module file [CODE] Module Module1 Public Sub bknapper() …

Member Avatar for iman_shani
0
315
Member Avatar for sravan953

Hey guys, I am making a program called 'Weather Watch' which basically gets weather updates for any city you type in. For now, it only gets info for a particular city. I don't know how to search for the term entered in [url]www.weather.com[/url] and then get the updates. The code …

Member Avatar for EAnder
0
381

The End.