> Anyway, downloaded pysol as an rpm and installed on my SuSE8.2.
> (Wife like to play card games) When I run the command to open pysol
> I get a "RuntimeError - Bad Magic number in .pyc"
> ????? How do I find the magic "good magic numer" ??
> Thanks for any assistance from you Python - Perl guys out there.
Not sure about this rpm you downloaded, but .pyc files are compiled
versions of python's source .py files. Unfortunately they are not
binary compatable with different versions of python, so your 2.1 pyc's
probably won't work with a 2.2 python interpreter and vice-versa. The
good news is that rarely are .py files not compatable, and .pyc files
are easily generated from .py source files. Does the pysol package you
have come with the .py files in addition to the .pyc files?
If not, you have one of two choices... install a version of python to
match your pysol rpm, or install the pysol rpm to match your python
version. The second will be the easiest; are there rpm's pre-built
for other versions of python at the same place you got the pysol rpm
that doesn't work? If not, you can grab the pysol .src.rpm and rpm
--rebuild (or rpmbuild --rebuild) it. Assuming the packagers knew what
they were doing, it'll build an rpm to match the version of python you
have installed. If even that doesn't work, then send a link to the
src.rpm and I can look at the spec and send you a version that should
build for your python. Which version of python do you run, anyway?
Good Luck,
~ Daniel
________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:11:41 EDT