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
[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
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
>
> __
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
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
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
[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?
>
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
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
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
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
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
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
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
> 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
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
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:\
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
>
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
[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
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
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
[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
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
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
[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
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
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
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
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
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
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
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
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/
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', '
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
> [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
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
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
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
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
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
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
> 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
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
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
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.
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
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
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
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
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
eve according to the instructions above.
Paul Prescod
___
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython
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
, 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
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
_
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.
_
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
58 matches
Mail list logo