Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Software

Software Help on software problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-06-15, 07:03 PM CDT
martypants's Avatar
martypants Offline
Registered User
 
Join Date: Jun 2007
Location: Ulsan, South Korea
Posts: 64
PySol crashes on any game other than Klondike[SOLVED]

Yeah, I know it isn't the most important thing, but PySol crashes on me when I try to select
any other game other than the one that load by default.

I got hooked on PySol's version of freecell and now it doesn't work. When I run it in a terminal, I get this:
/usr/lib/python2.6/site-packages/pysollib/init.py:156: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.
pin, pout, perr = os.popen3(settings.FCS_COMMAND+' --help')
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pysollib/pysolaudio.py", line 349, in playLoop
audiodev = ossaudiodev.open('w')
IOError: [Errno 2] No such file or directory: '/dev/dsp'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pysollib/pysolaudio.py", line 369, in play
audiodev = ossaudiodev.open('w')
IOError: [Errno 2] No such file or directory: '/dev/dsp'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pysollib/pysolaudio.py", line 369, in play
audiodev = ossaudiodev.open('w')
IOError: [Errno 2] No such file or directory: '/dev/dsp'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pysollib/app.py", line 529, in mainloop
self.runGame(id, random)
File "/usr/lib/python2.6/site-packages/pysollib/app.py", line 626, in runGame
self.menubar.updateFavoriteGamesMenu()
File "/usr/lib/python2.6/site-packages/pysollib/tile/menubar.py", line 884, in updateFavoriteGamesMenu
self.updateGamesMenu(submenu, games)
File "/usr/lib/python2.6/site-packages/pysollib/tile/menubar.py", line 809, in updateGamesMenu
menu.delete(0, 'last')
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2670, in delete
if c in self._tclCommands:
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/usr/share/PySolFC/pysol.py", line 32, in <module>
sys.exit(main(sys.argv))
File "/usr/lib/python2.6/site-packages/pysollib/main.py", line 374, in main
app.mainloop()
File "/usr/lib/python2.6/site-packages/pysollib/app.py", line 529, in mainloop
self.runGame(id, random)
File "/usr/lib/python2.6/site-packages/pysollib/app.py", line 626, in runGame
self.menubar.updateFavoriteGamesMenu()
File "/usr/lib/python2.6/site-packages/pysollib/tile/menubar.py", line 884, in updateFavoriteGamesMenu
self.updateGamesMenu(submenu, games)
File "/usr/lib/python2.6/site-packages/pysollib/tile/menubar.py", line 809, in updateGamesMenu
menu.delete(0, 'last')
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2670, in delete
if c in self._tclCommands:
TypeError: argument of type 'NoneType' is not iterable
What is /dev/dsp and whay would a game need such?
Any ideas?

I'm running the latest F11 stuff
__________________
----------------------------------------------------------------------------------------------
There are 10 kinds of people in this world: those than can count in binary and those that can't

Last edited by martypants; 2009-07-01 at 07:14 AM CDT. Reason: Solved
Reply With Quote
  #2  
Old 2009-06-30, 01:35 PM CDT
cparte01 Offline
Registered User
 
Join Date: Jun 2009
Posts: 1
I am having the exact same problem.
Reply With Quote
  #3  
Old 2009-06-30, 07:37 PM CDT
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 5,000
you can fix it by editing /usr/lib/python2.6/lib-tk/Tkinter.py (or /usr/lib64/python... for x86_64), and changing line 2670 from

if c in self._tclCommands:

to

if c and c in self._tclCommands:

The /dev/dsp error can be fixed with (as root)

modprobe snd-pcm-oss
Reply With Quote
  #4  
Old 2009-07-01, 07:13 AM CDT
martypants's Avatar
martypants Offline
Registered User
 
Join Date: Jun 2007
Location: Ulsan, South Korea
Posts: 64
That did the trick for sure. Many thanks. Hours of mindless freecell ahead!

One question, though: how'd you catch that error? That was buried pretty deep.

Cheers,
Marty
__________________
----------------------------------------------------------------------------------------------
There are 10 kinds of people in this world: those than can count in binary and those that can't
Reply With Quote
  #5  
Old 2009-07-01, 08:10 AM CDT
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 5,000
Quote:
Originally Posted by martypants View Post
That did the trick for sure. Many thanks. Hours of mindless freecell ahead!

One question, though: how'd you catch that error? That was buried pretty deep.

Cheers,
Marty
The final line of error message does suggest line 2670 is the cause.

There's a proper patch to tkinter on the python bug list http://bugs.python.org/issue3774.

This is just a simple alternative quickfix mentioned in the discussion
Reply With Quote
  #6  
Old 2009-08-12, 12:13 AM CDT
thedigjam Offline
Registered User
 
Join Date: Aug 2009
Posts: 4
linuxfedorafirefox
Permission

How do I get permission to make these changes? I'm very new to Linux and I am running Fedora 11. Thanks
Reply With Quote
  #7  
Old 2009-08-12, 01:15 AM CDT
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 9,854
linuxopera
Quote:
How do I get permission to make these changes?
Open a terminal window, and log in as root user. Then open a text editor (your choice) and edit the specified file as shown in Post#3.

Run the modprobe command as shown in Post #3 as root user.

V
Reply With Quote
  #8  
Old 2009-08-21, 12:46 PM CDT
dsteckel1 Offline
Registered User
 
Join Date: Aug 2009
Posts: 3
linuxfedorafirefox
pysol

thanks, i had the same problem. it works
Reply With Quote
  #9  
Old 2009-09-05, 01:31 PM CDT
drelanger Offline
Registered User
 
Join Date: Sep 2009
Posts: 1
linuxsusefirefox
Pysol crash

Although my english is very bad, linux newcomer, using Open Suse, opened for the first time a console and finally found kate as texteditor, after two hours triing and retriing hoping not to damage my system I was finally successful. Pysol doesn't crash any more and I can choose the games. Thank you very much this was very helpful. Many greetings from France E. Langer
Reply With Quote
  #10  
Old 2009-09-05, 07:02 PM CDT
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,150
linuxopera
Thanks Goedel. I was having the same problem.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Klondike: Locks up system while moving card mjrice Gamers Lounge 0 2009-04-20 09:09 AM CDT
Klondike Solitaire Sticky Ace ssivil Gamers Lounge 2 2009-03-27 05:56 AM CDT
Hacking Pysol glennzo Software 3 2007-11-07 02:56 PM CST
GFX drivers causing game crashes radiohead Software 1 2005-07-31 03:56 AM CDT
Pysol on FC4? Nighthawk4 Software 3 2005-07-06 08:53 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 11:28 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations made by vBET 2.3.8