473,671 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_compil ed("__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 2215
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_compil ed("__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**********@h otpop.com> wrote in message
news:d7******** **@news.doit.wi sc.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
1627
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 www.oberhumer.com I got a message stating "DNS change in progress. Please re-visit later", www.pysol.org states "under construction - new site should be ready Real Soon Now", and the pysol sourceforge project has no files. Where can pysol be...
10
2202
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 sound and I NEED my sound system available even if PySol is running. Does anyone have a simple way of ripping the sound functionality our of PySol? I've not enough of a python programmer to deal with this. Everything I've tried has just...
0
1643
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 below works fine for me in linux, but in WinXP the popen*() command "hangs". More specifically, I get an apparent python prompt (without the '>>> ', but whatever I type has no effect, and hitting return does a CR but not the additional LF, so I...
1
1608
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 worth to study (I want to implement a card game) and mainly on Qt choice. Perhaps it would be better if I choose an application already written in python and Qt (or PyQt)... but I do not know any in the card games field.
9
5685
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 Windows XP. I am using IE-6 can someone tell me why?? I am able to run HTML pages, the problem is only witht he ASP Pages.
2
3587
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 Visual Basic .net standard 2003. Not installing Visual Basic at the WinXP SP1A level - was the only way I found that I could install WinXPSP2. My computer was purchased with WinXP SP1 Professional. I also have Norton Internet Security and Norton...
0
1142
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 pysol-4.82-1.noarch.rpm error: Failed dependencies: tkinter >= 2.2 is needed by pysol-4.82-1
0
877
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
5534
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 No export GCHandleLeaks found
0
8476
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8914
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8820
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7433
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5695
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4224
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.