On Thu, 24 Jul 2008 11:01:54 -0700, "Mike Orr" <[EMAIL PROTECTED]> wrote: > On Thu, Jul 24, 2008 at 2:04 AM, mario ruggier <[EMAIL PROTECTED]> wrote: >> >> OK, interesting stuff, if somewhat magical. > > It's standard Python troubleshooting techniques, so worth keeping in > your wallet for when you need them.
Certainly. The "magical" ref was to the fact that it suddenly works just by running the debugger on it... but of course it is probably for another reason, like some problem in the shell session as you suggest. > Your Python path includes /usr/local/lib/python2.5/site-packages as it > should, and paths for the eggs you want are before paths for any > conflicting eggs you don't want. "/usr/local/bin" would not normally > be in sys.path but I assume that was the current directory at the > time. If i dump sys.path it is not... > That "/home/mario/py_packages" must have come from PYTHONPATH > or a *.pth file. Whenever you have packages not found or the wrong > version, remember to look there to see if it contains any overlapping > eggs that may have contributed to the problem. >From a pth file... to my dev area, where I have packages that i work with directly on svn, just for convenience. I never install 3rp party packages there. >> $ sudo easy_install mysql-python >> EnvironmentError: mysql_config not found > I use the Ubuntu package (python-mysqldb) to avoid that problem. > Either you didn't install MySQL's development files, or Python can't > find them, or there's some mysql command it can't run. Things like > that always happen when installing pacakges with C extensions. I used > to have lots of trouble getting PIL to compile on some systems. I was not aware that I could use a Ubuntu package instead! Anyhow, after some frustration i realized i need mysql-devel package, so i fished around for what seems to be the latest version for the platform, and then to install it, like so: wget ftp://rpmfind.net/linux/SuSE-Linux/i386/update/10.2/rpm/i586/mysql-devel-***.rpm sudo rpm -i mysql-devel-5.0.26-16.i586.rpm Yes, I recently also had some trouble to install PIL with jpg support on the same Suse machine as well as on a Mac OS X laptop. First experiences with pylons seem to be a lot less frustrating ;-) Thanks a lot for your help! mario > -- > Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
