473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PySol not working on WinXP, SP2

Hi All--
I've been using PySol-4.40 for years, because that was the last Windows
installer version I could find. My wife's been using it for almost the
same length of time. That version's worked just fine on W98, W98SE, W2K
(server included), and WinXP SP1.

I upgraded to SP2 and pysol fails silently. Running 'python pysol.pyw'
gives me this error:

Traceback (most recent call last):

File "pysol.pyw", line 64, in ?

imp.load_compiled("__main__", sys.argv[0])

ImportError: Bad magic number in C:\Program
Files\PySol-4.40\data\pysol.pyc

I can't find any later version on google, although I turned up a thread
on this list regarding running pysol in a later version on W98. I also
found http://avitous.net/software/pysol-windows/py23.shtml but the
version he has REQUIRES ActiveState python 2.2, even though he says he's
put together a version for 2.3--and of course, I'm running Python 2.4.

My wife's going to be force to upgrade to SP2 some of these days, and
she won't be happy if her solitaire doesn't work. Does anyone have a
working version? Anyone know what happened to Markus ... Oberhumer?

Metta,
Ivan
----------------------------------------------
Ivan Van Laningham
God N Locomotive Works
http://www.andi-holmes.com/
http://www.foretec.com/python/worksh...oceedings.html
Army Signal Corps: Cu Chi, Class of '70
Author: Teach Yourself Python in 24 Hours
Jul 19 '05 #1
2 2201
Ivan Van Laningham wrote:
Hi All--
I've been using PySol-4.40 for years, because that was the last Windows
installer version I could find. My wife's been using it for almost the
same length of time. That version's worked just fine on W98, W98SE, W2K
(server included), and WinXP SP1.

I upgraded to SP2 and pysol fails silently. Running 'python pysol.pyw'
gives me this error:

Traceback (most recent call last):

File "pysol.pyw", line 64, in ?

imp.load_compiled("__main__", sys.argv[0])

ImportError: Bad magic number in C:\Program
Files\PySol-4.40\data\pysol.pyc


Are you sure you're using the Python version (2.3, 2.4 etc) that the
Pysol .pyw files were compiled for? As I understand it, that's what the
"magic number" is - a versioning number for the .pyc/.pyw files which
changes when the Python version is upped.

If you had multiple versions of Python installed on your machine,
upgrading to SP2 might have muddled your file associations.
Jul 19 '05 #2

"Rocco Moretti" <ro**********@hotpop.com> wrote in message
news:d7**********@news.doit.wisc.edu...
Are you sure you're using the Python version (2.3, 2.4 etc) that the
Pysol .pyw files were compiled for? As I understand it, that's what the
"magic number" is - a versioning number for the .pyc/.pyw files which
changes when the Python version is upped.

If you had multiple versions of Python installed on your machine,
upgrading to SP2 might have muddled your file associations.


2.4 came out about the same time as SP2. If the .pyc files worked with
2.3, I am pretty sure they will not work with 2.4 since I am pretty sure
the marshal format (used to make .pycs) was changed slightly for 2.4 after
no change for a few releases. It will change again for 2.5.

Python is intended to be distributed as readable source. .pycs are
intended to be temporary caches, only kept around to avoid recompiling with
every run, but certainly disposable with version changes.

Terry J. Reedy

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eric Scharff | last post by:
As a stress-test for tkinter of Python 2.3 on the Mac (yeah, that's it) I wanted to see if I could compile and run pysol. (Porting the sound server to Mac OS X would be nice too.) When I tried...
10
by: Lynn | last post by:
I have a SuSe 9.1 linux box (although this isn't a new issue) with reasonably up to date everything. When I run PySol, it grabs the sound system in a rude and complete way. I don't listen to...
0
by: David H | last post by:
Background. I'm running on WinXP w/ MS Services for Unix installed (to give rsh/rlogin ability), both Python 2.3 and 2.4 version. In linux, I'm running RHEE with python2.3 version. The code...
1
by: qwweeeit | last post by:
PySol uses TKinter as GUI system. Wanting to learn python I am studying PySol, but having choosed Qt as my GUI, I am asking if someone can comment on my choice both on pysol as as an application...
9
by: Abhi | last post by:
Hi, I created a virtual directory in my default website, then I created a few ASP pages. When i run these files from the browser, i go to the screen "page cannot be displayed" I am using...
2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
0
by: Mike T. | last post by:
Hi, I'm trying to install PySol on 10.0. I've tried two routes: the RPM and building from source. First, from RPM. I su'd to root and run the following: linuxdell:/home/mike # rpm -i...
0
by: Tshepang Lekhonkhobe | last post by:
Hi, On Python docs, on faq/installed.html, it's mentioned that PySol is the most common Python application. Is this a platform-specific fact?
2
by: johnxhc | last post by:
I am trying to use sos extension but almost half of the sos command do not work, for example 0:027!findtable No export findtable found 0:027!bpmd No export bpmd found 0:027!GCHandleLeaks...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.