Re: [SLUG] pysol magic number

From: Eben King (eben1@tampabay.rr.com)
Date: Sun Jan 04 2004 - 17:51:47 EST


On Sun, 4 Jan 2004, Ronald KA4INM Youvan 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"
>
> > ????? How do I find the magic "good magic numer" ??
>
> I searched for years, I found: The file's "magic number" is the first
> four bytes of the file, typically: "%!PS" ps, "ÿWPC."wp, "<HTML" html,
                                                            ^^^^^

That's five bytes, and

> "ÐÏ.à", "ÿØÿà." jpg, "xRIFF„" wav, "0PNG"png, "P4 " pbm etc.
                        ^^^^^^

that's six. Maybe "the first few bytes"? Or only four bytes ("<HTM",
"xRIF") are necessary for identification? Or not necessarily the _first_
four bytes? That HTML one could be in either case, too.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

A: Because it looks dumb and is hard to read. Q: Why is top-posting wrong? -- from lots42@xxx.com

----------------------------------------------------------------------- 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:53 EDT