Re: MySQLdb AttributeError Problem

2001-07-16 Thread Paul Prescod
John, this sounds to me like what happens when you have a file called "MySQLDb.py" or "MySQLDb.pyc" hanging around other than the one you expect. Here's what I would do to diagnose (replace string with MySQLdb): >>> import string >>> dir(string) [] >>> string.__file__ 'c:\\python20\\lib\\stri

Re: (OT) Could Ximian's .NET port to Linux strengthen the possibilityof compiled Python?

2001-07-09 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > Just wondering what would be gained by a C# implementation of Python that > could be run across Win32 and Linux Boxes. I know there have been plenty of > discussions about compiled python before, but does the C# model provide and > advantages that have not been reali

Re: Windows NT4 installation problems

2001-06-25 Thread Paul Prescod
What happens when you try to install? [EMAIL PROTECTED] wrote: > > I cant seem to install Activestate Python 211, I have uninstalled the 2.01 > version that I had before, any ideas? > > Cheers > > Sharriff Aina > med.iq information & quality in healthcare AG > > __

Re: debugging wxPython programs

2001-06-25 Thread Paul Prescod
Paul Casteels wrote: > >... > Is this a known problem with PythonWin/wxPython ? Is there another way to > debug wxPython programs ? In general, it is not safe to debug graphical applications using "foreign" toolkits in IDLE or PythonWin. If you've had luck so far with IDLE, that's fine, but it

ActivePython 2.1.0 build 211

2001-06-20 Thread Paul Prescod
ActiveState is pleased to announce ActivePython 2.1.0 build 211. This is an incremental improvement over the first build based on Python 2.1.0 (build 210). Many build 210 users will not need to upgrade. Users of Tk and/or Active Server Pages should upgrade because this release fixes bugs relati

Re: Programming ASP with ActivePython [also a general Web question]

2001-06-04 Thread Paul Prescod
Wartan Hachaturow wrote: > > Hello. > > I've got one trouble with ASPs on Python -- they doesn't work ;) > In fact, I did run pyscript.py, and it said that it has successfully > registered python as a scripting engine. > When I try to execute server-side scripts, they fail (saying 500 Server > E

Re: Why should I use Python if PERL exists ?

2001-05-31 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > Hello , > Can you please explain to me advantages of Python in comparison > with PERL? > I use Perl because I need > download web pages, > GUI interface to my program, > use threads > and make exe from perl program. > Is it all in Python or even something better? >

Re: Is ASP broken in current ActivePython?

2001-05-23 Thread Paul Prescod
We do have users who are using ASP successfully and have no immediate way of diagnosing your problems. Please check that you have these Python DLLs in your system32: 708,693 python21.dll 57,344 PyWinTypes21.dll 290,916 pythoncom21.dll Check that you don't have other python DLLs on your system t

Re: Is ASP broken in current ActivePython?

2001-05-20 Thread Paul Prescod
The current ActivePython works with ASP. It does not automatically register Python as an ASP server. You can do that by running the program win32comext\axscript\client\pyscript.py. You may also want to check out this link: http://starship.python.net/crew/mhammond/win32/InstallationProblems.html

Re: Pythonwin crashes showing very long strings.

2001-05-02 Thread Paul Prescod
I think that this is a known bug with Scintilla with long *lines*. Could you confirm that by checking whether you have any really long lines? It may be that if we switch to a newer Scintilla, that will fix it. -- Take a recipe. Leave a recipe. Python Cookbook! http://www.ActiveState.com/pytho

Re: a newbie's question

2001-04-30 Thread Paul Prescod
sowen wrote: > >... > I know in Linux/Unix,Python is a kind of shell script.I think > maybe it can do some work as well as Perl.What jobs the Python fans > will put Python do in Linux? In Windows,what character Python is? People use Python for all sorts of general purpose jobs. Some peopl

Re: Newbie question - Python interpreter using a lot of memory when using range

2001-04-27 Thread Paul Prescod
Gregg Ward wrote: > > > > Does the interpreter actually generate an individual value for everything in > the range 0-999? Yes. There is a function called "xrange" that does not generate the individual values. range is faster for small lists. xrange is better for large ones. -- Take a

Re: ActivePython and Zope

2001-04-25 Thread Paul Prescod
David Brown wrote: > > Has there been any thought about packaging up Zope so it works with > ActivePython? I don't have access to a C compiler on Windows (other than > cygwin, and that one doesn't have a threading library that will work with > Python), and it wou;d be nice to have a Zope install

Re: ActivePython 2.1 problems.

2001-04-21 Thread Paul Prescod
Tuttled wrote: > >... > > Does this mean the when the repository is working correctly it can already > distinguish between requests from AP 2.0 and AP 2.1 and automatically > dispense the correct module? That's right. It has been behaving this way since about noon yesterday when we last saw our

Re: Wierd Tkinter siding

2001-04-21 Thread Paul Prescod
> Craig Hurley wrote: > > I am stumped. I'm using ActiveStates' Python2.1 for windows as well as > their > Komodo beta1(build 18242). The attached program I have been modifying > as > my python learning process. I have no problem with you asking the question on this mailing list but it is my op

Re: ActivePython 2.1 problems.

2001-04-20 Thread Paul Prescod
Tuttled wrote: > > I solved the TK mystery. Didn't notice you're now including TK as a part of > the install. After I installed AP 2.1, I immediately used pyppm to install > TK! This caused the problem. Mixed versions of TK. Which brings up a couple > of points. > > 1) To really make pyppm sa

Re: ActivePython 2.1 problems.

2001-04-20 Thread Paul Prescod
Tuttled wrote: > > 1)After removing ActivePython 2.0 and replacing it with 2.1, all Tkinter > programs now generate the following error. Running "Repair" from the > installer doesn't help. > > C:\>D:\Python21\Grayson\Examples\Chapter03\calc2.py > Traceback (most recent call last): > File "D:\

Re: Komodo doesn't do "run"?

2001-04-12 Thread Paul Prescod
I think Daniel's answer is correct. You can run just by hitting F5. It would be nice to have a feature that allowed you to run and ignore breakpoints. This is on our todo list for Komodo. [EMAIL PROTECTED] wrote: > > I installed Komodo on both Win and Linux. Am I missing something, or does it >

Re: Where's the source?

2001-04-11 Thread Paul Prescod
Robin Dunn wrote: > > Does anybody else find it odd that the ActiveState Python installer for > windows includes the win32 extensions, and the .zip with the Debug version > of the python extensions also includes the win32 extensions, but the source > .zip does not? > > I was hoping for a nice in

Re: ActivePython and .NET

2001-04-11 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > What sort of .NET and/or SOAP capabilities does ActivePython have or will have? > > LB ActiveState has developed Python.NET which is an implementation of most of the Python language for the .NET runtime. This is open source software available on our website (separat

Re: Problem importing a module with python_d

2001-04-09 Thread Paul Prescod
Python will look for modulename_d.pyd. If you have modulename.pyd, that isn't enough. You need the _d suffix. This allows you to run debug and release versions of modules side by side just as you can run debug and release versions of Python side by side. David Humphrey wrote: > > I have a proble

Re: How do I read a raw floppy device on win98

2001-04-09 Thread Paul Prescod
Corey Zimmet wrote: > >... > > However, on win98, I believe I have to use a different methodology using > DeviceIOControl. I have yet to succeed. Does anyone know how to access the > floppy device on win98? I don't know the answer, but perhaps someone on python-list would. You should probably

Re: ODBC ->CGI results

2001-04-09 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > I am accessing an Access database with a CGI script, everything works but > for the problem that the results are in Tuple format when I "print" them as > an output to a browser client, could someone show me a better way to do > this or a work around? If you would rat

Extensions Survey

2001-04-03 Thread Paul Prescod
I am taking a survey of what extensions to ActivePython our users are using. Obviously this survey may not be applicable to the entire Python community but that does not matter much. I would appreciate if the mailing list participants could send me personal (OFFLIST!) mail listing which of the fo

Re: problem importing Tkinter

2001-03-26 Thread Paul Prescod
You need to use PPM to install "Tk" instead of "Tkinter". -- Take a recipe. Leave a recipe. Python Cookbook! http://www.activestate.com/pythoncookbook ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/ac

Re: I AM TRYING PYTHON

2001-03-22 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > Dear Sir. > I am a beginner and trying python for the first time . I don't know any > programming language, can you help me on understanding codes,programming > languages? and tell me how to get use to python and other programming > software? Python is a good first p

Re: help with Tkinter & PIL

2001-03-22 Thread Paul Prescod
The JPEG library is not part of PIL, TKinter or ActivePython. In the future we will probably add it to our PIL distribution as a convenience. For now, I will just email you the file in a separate message. David Ransier wrote: > > Hello, List. > > I'm new to Python and just starting to play with

Re: Automated Dialup Mail synchronization

2001-03-22 Thread Paul Prescod
You might want to investigate the win32ras package. That can be used to dial-up and hangup phone book entries. How you sync your mail will depend on your mail program. -- Take a recipe. Leave a recipe. Python Cookbook! http://www.activestate.com/pythoncookbook

Re: win32all buld 137 win32gui fails

2001-03-13 Thread Paul Prescod
Syver Enstad wrote: > > I've just installed the win32all build 137 that contains the support for > Vtable interfaces in win32com. I've suddenly found that import win32gui > fails with the message: > > ImportError: DLL load failed: The specified module could not be found. > > This is mighty stra

Re: ppm and ms proxy server

2001-03-13 Thread Paul Prescod
We are just testing out the version of PPM that supports proxies. We can send the files to anyone who wants to participate in the testing. -- Python: Programming the way Guido indented it. - (originated with Skip Montanaro?) ___ Activ

Re: Identifying Win32 workstation names

2001-03-13 Thread Paul Prescod
Scott Widney wrote: > > Can ActivePython be used to find the NetBIOS name of the NT/2000 workstation > to which a given user is logged on? Try the win32api.GetComputerName() API. That may help! -- Python: Programming the way Guido indented it. - (originated with Skip Montana

Fixed Tk

2001-03-10 Thread Paul Prescod
The attached file should fix the faulty Tk that was downloaded with ActivePython 203. You should be able to launch it straight from your mail program or else you could save it to a file and then launch it by double clicking the icon. If you prefer to use the command line you could type: pyppm in

Re: Faulty TK build on ActiveState PPM

2001-03-10 Thread Paul Prescod
You are right Don and I just figured that out last night. I'm trying to fix it as quickly as I can but it is tricky on the weekend to find the right people...sorry for the inconvenience!!! Anyone who has not downloaded ActivePython 203 is encouraged to wait until Tuesday when this will be correcte

Re: (no subject)

2001-03-10 Thread Paul Prescod
I think that you probably need a "Content-Type: application/x-www-form-urlencoded" header -- Python: Programming the way Guido indented it. ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/

Re: HTTP - POST-Method do not work

2001-03-09 Thread Paul Prescod
If I correct the variable names in the example I get this program: import httplib, urllib params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0}) h = httplib.HTTP("localhost:80") h.putrequest("POST", "/cgi-bin/query") h.putheader("Content-length", "%d" % len(params)) h.putheader('Accept', '

Re: Python PPM Problems

2001-03-09 Thread Paul Prescod
That was a transient problem with our website. It is fixed now. Apologies for the inconvenience. -- Vote for Your Favorite Python & Perl Programming Accomplishments in the first Active Awards! http://www.ActiveState.com/Awards ___ ActivePython maili

Python cookbook was (Re: AW: using SQL, ODBC vs ADO)

2001-03-09 Thread Paul Prescod
> [EMAIL PROTECTED] wrote: > > > As we try to move from VB to Python as much as we can, we are also > interested in any tips and tricks on how to use ODBC and ADO with > Python. > > We are looking for production-quality samples, it looks like this is a > white area within Python (and in the bo

Re: Embedding and Extending python

2001-03-09 Thread Paul Prescod
This isn't the best mailing list for generic Python questions (even if you are using the ActivePython distribution). There are more experts on the "python-list": http://groups.yahoo.com/group/python-list odell stewart wrote: > > Looking for some to do's and not to do's for embedding a Python G

Re: Newbie questions on this

2001-03-05 Thread Paul Prescod
David Lees wrote: > > Paul, > > ... > > What is a "message loop"? Is it the "messages" that occur on Python > exceptions? This would mean that exceptions in Python code and in TK > can get confused between each other? Graphical interfaces work by processing messages sent from (e.g.) your key

Re: help a newbie with a reproducible problem (Paul Prescod)

2001-03-04 Thread Paul Prescod
David Lees wrote: > > Paul Prescod said: "Tkinter code is not compatible with the PythonWin > environment. You should use Komodo for that." > > Paul, > > Could you please elaborate on this incompatability and be more > specific. I have just started using

Re: help a newbie with a reproducible problem

2001-03-01 Thread Paul Prescod
Tkinter code is not compatible with the PythonWin environment. You should use Komodo for that. -- Vote for Your Favorite Python & Perl Programming Accomplishments in the first Active Awards! http://www.ActiveState.com/Awards ___ ActivePython mailing

Re: URGENT HELP REQ _ regarding the use of ACTIVEPYTHON & AVAILABILITY

2001-02-21 Thread Paul Prescod
ere any affordable documnetation is there for that. Perl and Python are both programming languages. Some people use one, some the other and some both. The ActivePython distribution (with documentation) is available here: www.ActiveState.com/Products/ActivePython > Have an ineffable day. Ineffa

Re: Newbie Windows 98 installation

2001-02-19 Thread Paul Prescod
Larry Bates wrote: > > I downloaded and installed ActivePython on my Windows 98 machine. The > installation went fine and I can run the PythonShell just fine. When I try to > run PythonWin I get the following messages in a Window. It seems that somehow the correct Python path was not registere

Re: The Pythonwin.exe cannot be created?

2001-02-18 Thread Paul Prescod
> Hotmail wrote: > > Dear > > I've down loaded the source for ActivePython for windows. > > I've tried to compile the source with VC++ 6.0. > > Python.exe and pythonw.exe can be created sucessfully. > > But Pythonwin.exe cannot be created. What error message do you get? -- Vote for Your Fa

Re: Making EXE files

2001-01-15 Thread Paul Prescod
Derek Lavine wrote: > > Hi all, > > Is there away to generate EXE's from python programs like there is with > ActiveState Perl? ActiveState does not yet distribute or support such a program but you could look at this: http://www.mcmillan-inc.com/install1

Re: Module Directory problem

2001-01-15 Thread Paul Prescod
e current execution directory. My > scripts are going to be run on this system and another system that may not > share the same directory struture. Don't understand what you mean by "load your scripts". The "import" statement will look for your module in each direct

Re: Newbie want to do Python and ASP

2001-01-08 Thread Paul Prescod
ActivePython has a "Python COM Reference". It has a section called "ASP and Python" that should get you started. Good luck! Paul Prescod ActiveState ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.

Re: ActivePython PATH question

2001-01-05 Thread Paul Prescod
as it supposed to? If so could someone tell me what they > were supposed to be? Python20 is optionally added to your path as a convenience on Windows 2000 and probably NT, but no path changes are required for basic functionality. Paul Prescod ___ Acti

Re: starting Active Python 2.0 in Linux

2001-01-04 Thread Paul Prescod
hat when you type "python" you will get ActivePython. You could also use a shell alias. Paul Prescod ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: "Hello" window

2000-12-08 Thread Paul Prescod
Gar Nelson wrote: > > So if I were to code the above example using the native win32 extensions of > ActivePython, in the PythonWin environment, how would it look? (Just > putting up a box with a "hello" button, that exits when pressed.) The win32 environment uses a totally different set of clas

Re: "Hello" window

2000-12-08 Thread Paul Prescod
n: 1. Tk is not installed with ActivePython. You can get it here: http://www.ActiveState.com/Products/ActivePython/Extensions.html 2. Tk applications do not work from within the PythonWin environment. Make sure to use "Python Shell" instead. Paul Prescod ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: python cgi - odbc

2000-12-07 Thread Paul Prescod
ahsan ali wrote: > > status: beginner > > how do you access an odbc database in python cgi? > are there any resources dealing with this topic. > > ahsan > I would suggest you look at the mxODBC package listed here: http://www.activestate.com/Products/ActivePytho

Administrivia...

2000-12-01 Thread Paul Prescod
eve according to the instructions above. Paul Prescod ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: COM object creation not working

2000-11-30 Thread Paul Prescod
The list is intended primarily for users of ActivePython. General Python questions would be better addressed to comp.lang.python, even if they are related to the win32 extensions. Paul Prescod ActiveState ___ ActivePython mailing list [EMAIL

Re: ActivePython Win32 Installer Subset

2000-11-30 Thread Paul Prescod
, ActiveState intends to make the redistribution of Python applications easier. That may be done as part of ActivePython or as part of our development environment initiatives: You can learn about PythonDirect, Komodo and Visual Python here: http://www.activestate.com/Products/index.html Paul Prescod

Re: executing other application command

2000-11-29 Thread Paul Prescod
Biju Ramachandran wrote: > > Hi there: > > How do I execute another applications command using Active Python - for > example - the equivalent in Perlscript is > >$Application - > Could you give an actual example? Are you perhaps invoking a COM method on an object? Paul _

Re: reloading changed modules

2000-11-20 Thread Paul Prescod
e a reload of a method from disk. You could add some reload instructions to your file to force a reload with every run. You can also manually invoke the reload function from the PythonWin interpreter command line: import foo reload(foo) Hope that helps. Paul Prescod ActiveState Tool Corp. _

Re: Installing ActivePython on Windows95

2000-11-20 Thread Paul Prescod
zip Length MethodSize Ratio Date Time CRC-32Name -- --- - -- 7991296 Defl:N 7524766 6% 11-11-00 04:10 3cf068ae ActivePython-2.0.0.202.msi --- ------ 7991296