>(3) running 'make install' would not work since I had no permission to
>write in some directories. I don't fully understand this since
>I am the
>admin and I was running logged in as such, but to no avail.
>Solution: run this as
>
>sudo make install
>
>type in the password and you're of
>I asked earlier and ODBC seems to be mostly out on the MacPython
>front. What methods do you folks use for accessing an database
>(SQL based database prefered) via macpython?
Python's Db API, of course.
http://www.python.org/peps/pep-0249.html
There are a lot of databases out there, and there's
>Does anyone know how customizable jedit is .. in Jython maybe?
Alle jEdit plugins are written in Java, never used Jython, so I don't
know if that would be a way.
But at least on my Mac (Tiger) jEdit behaves rather clumsy and tends to
crash; there are some GUI problems; some plugins won't load or
>> Other than whatever that issue was, though, TextWrangler/BBEdit is
>> an *excellent* editor, so be sure to try it out yourself (this
>> directed at Jerry and the OP) before dismissing it.
I love TextWrangler for its "open in another encoding" feature, but hate
it for some inconveniences (bl
>Does anyone have any suggestions as to the best IDE
>for Python on OS X. I've been informed that PythonIDE
>has ceased development and that the cold is pretty
>old.
Would you please read the ongoing thread "Preferred IDE".
Greetlings, HR
___
Pythonmac-
>A somewhat similar question: is there a good debugger for python?
SPE comes with WinPdb, but I never used it.
http://www.digitalpeers.com/pythondebugger/
There's also HAP (seems to be Win-only at the moment):
https://sourceforge.net/projects/hapdebugger/
Best regards,
Henning Hraban Ramm
Südku
>I would appreciate any recommendations as to which IDE
>to use on OS X. I understand that the MacPythonIDE has
>ceased development, and was advised to ask which IDE
>people are now using.
>
>I'm after something fairly lite. A module browser,
>basic file management etc. are all that are required,
>
>than one way, but I think the most common is to create a file called
>.profile, and put it in your home directory. Put in this line:
>
>export PATH=$PATH:/usr/local/bin
I'd use '.bashrc' or '.bash_profile', because 'export' is bash syntax --
'.profile' should be read by any shell, and tcsh (e.g
> Thank you. That gives me something closer to a list, but the output is now:
> ['939\n', '936\n', '937\n', '885\n', '886\n', '887\n', '171\n', '19\n', ...]
> Question: how do I get rid of the \n attached to each member in my list?
Choose:
map(int(map(string.strip, yourlist)) (Python 2.2)
[ in
Title: Nachricht
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Kirk DurstonSent: Thursday, November 10, 2005
2:00 AMTo: pythonmac-sig@python.orgSubject:
[Pythonmac-SIG] inputing multi-digit numbers
Im
having a hard time figurin
>> A little googling turned up the following interesting-sounding open-
>> source packages:
>>
>> Gamera project (Python-based OCR)
>> http://ldp.library.jhu.edu/projects/gamera/
>>
>> gocr
>> http://jocr.sourceforge.net/
>>
>> ocrad
>> http://www.gnu.org/software/ocrad/ocrad.html
>>
>> I haven't t
> Yes, I've installed SDL and Numeric using Fink, I've installed PyObjC
> and trying to install pygame in the Terminal.
If you use Fink, you must use Fink for everything; at the moment you've
probably several different Python installations of whose none has all required
modules.
It's normall
>> Python by itself cannot.
>That's not true at all.
Sorry, I shouldn't answer if I have no clue... ;-/
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
___
Pythonmac-SIG maillist - Pythonmac-SIG@python
>I'm a newbie. Can anyone clearify if Python can play
>Quicktime movies? I kind of heard that it's possible.
>Also, does it have a specific control to play the .mov
>by time-codes? Many Thanks!
Python by itself cannot. But it can access Apple's core libraries to do
anything.
QuickTime seems a bit
> Because of the difficulty in getting python-ldap to build on Mac OS 10.4
Perhaps this helps:
http://twistedmatrix.com/users/tv/ldap-intro/ldap-intro.html
http://tv.debian.net/software/ldaptor/ (based on twisted, see
http://twistedmatrix.com)
Best regards,
Henning Hraban Ramm
Südkurier Medien
>Anyone have any idea on how to get the Machine Name from the Sharing
>Preference pane?
Is `hostname` what you look for?
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
___
Pythonmac-SIG maillist - Pyt
Thank you very much for this overview!
I tried several IDEs about a month ago to find the suiting one
for my little projects and made partly the same, partly different
experiences.
Several apps showed the same problem on my german Tiger:
The text in interpreter windows is not readable (only top p
>I've tried to use PyDev, but apart from the speed issue, Eclipse's
>interface is so sprawling and unintuitive that I haven't even figured
>out how to get PyDev started. Perhaps I'm missing something, and if you
>find Eclipse a pleasant environment to work in, go for it.
I tried Eclipse yesterday
Hi there,
I made the mistake to upgrade my home Mac to Tiger, and now I must wait for
updates of several apps... :-(
Anyway, I installed Py2.4, latest wx etc. and changed my PATH to execute Python
2.4 before the system's. That works so far.
But I've the same problem with every IDE that I tried
>Having not yet used wxPython, I'm not sure how "native" its apps look,
>but people seem to like its power.
I very much like it on WinXP, and it works (and looks good) on OSX,
but some advanced widgets don't work.
see www.wxpython.org
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / Media
>This might be an OS question, rather than a Python one, but I am
>wondering if there is a way to tell an application to be always on
>top (or in front) of other applications running.
>I'd like to create a GUI in python and it should stay on top of
>other background applications to which the GUI co
>import bas_init
What's this?
>print "This file, %s, is bad." % test
test is undefined.
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.or
>So if you're looking for features/support, now's the time to ask...
Some more information on the homepage would be nice, too.
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
___
Pythonmac-SIG maillist
Does anyone have experience with jEdit? (www.jedit.org)
It's an GPL'ed all purpose editor written in Java that claims
to also support Python.
I had no time to test it yet besides that it runs on MacOS X,
but it's extremely configurable and enhanceable (plugins, macros etc.).
Best regards,
Henning
>If you want a cleaner coder, you give might one of the more "pythonic"
>XML APIs, like ElementTree or XIST a try.
>
>ElementTree: http://effbot.org/zone/element-index.htm
>XIST: http://www.livinglogic.de/Python/xist/
Thank you for this links - lots of interesting stuff there that I didn't know.
def getPages(self):
return self.pages.getSortedArray()
def getPage(self, no):
return self.pages[no]
>My style is to create/build a data structure in the parser and have a
>single get... method that will give me the result.
>Your getPage/getPages would be part of t
>> And where should the "output" go to?
>> All examples use print statements in the element handlers.
>I'm not certain we are clear. Instead of output statements you
>store the data in some instance variable - in your case it appears
>self.pages is your instance variable containing the data.
Rig
>> Is there a better syntax for self.__class__.__dict__[handler]?
>how about:
> handler = getattr(self, str('_start_'+name),None)
># fetch the actual bound method
> if handler is not None:
> handler( attrs )
That's good, I think. Thank you.
>or so
David Reed wrote:
>There's probably a better mailing list with XML parsing experts. I'm
>certainly not an expert but have done a little XML parsing.
>I've always
>followed the pattern of using startElement, characters and endElement
>to grab all the data. In the startElement method you set a i
Hi there!
I just wrote a SAX handler for XML files that describe a newspaper issue (list
of pages etc.); I'd like to know if I could do it better.
def startElement(self, name, attrs):
"""call an own handler method named _start_Something
for a Something element if it exists,
to avoid
>Based on the statement above it looks as if wxWindows is the more
>mature and stable GUI toolkit for cross-platform on OSX. Is it worth
>learning WX? or will PyQt catch up? or does anyone even know the
>answer to that?
I guess you can use PyQt on OSX, I never tried it, but I need to develop also
>I have experience with OOP, OOA&D and have about 16 years experience
>writing various stand-alone, client/server and n-tier business
>applications. I am getting a handle on Python, and I have written a
>couple of "faceless" applications with it.
As Bob wrote, wx seems to be the best cross-plat
>/usr/bin/magic determines the file type heuristically by parsing
>/usr/share/file/magic and then reading a couple bytes out of the given
>file.
>
>This appears to be a direct Python translation of the file command,
>with an embedded copy of a magic table:
>http://www.demonseed.net/~jp/code/magi
I'm looking for a way to retrieve a file's type - not (only) Mac type/creator,
but like what the shell command 'file' returns.
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.
___
Pythonmac-SIG maillist
34 matches
Mail list logo