Re: [SLUG] pysol magic number

From: Bob Stia (rnr@sanctum.com)
Date: Mon Jan 05 2004 - 00:54:54 EST


On Sunday 04 January 2004 11:45 am, Backward Thinker wrote:
> > 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"
> >
Thanks to all who responded. At least now I know what a "magic number"
is!!! Hmmmm......OK

Daniel,
Let's see if I can provide the info you need to help me.

> 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?

Don't know. The file was downloaded and installed by apt-get on SuSE8.2
Never even got to look at it. Not sure how I would determine that. It
was not a .src.rpm so I doubt that it built a .spec file.
>
> 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?

No, as stated it came directly from the SuSE archives via apt.

> 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?

OK Daniel, my python is 2.2.2-92 The pysol is 4.81-191
I also have a later version of pysol (4.82-28) which I downloaded from
the pysol site but it will not install because it says I need python
2.2.3 which I cannot seem to find. It is available but only as a i686.
Don't know if that will work. If you don't have any other ideas I will
have to go searching.

Bob S.

BTW Thanks for your very clear explanation of my problem.

-----------------------------------------------------------------------
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:12:01 EDT