 |
 |
 |
 |
| Software Help on software problems. |

2009-06-15, 07:03 PM CDT
|
 |
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
|

2009-06-30, 01:35 PM CDT
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 1

|
|
|
I am having the exact same problem.
|

2009-06-30, 07:37 PM CDT
|
 |
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
|

2009-07-01, 07:13 AM CDT
|
 |
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
|

2009-07-01, 08:10 AM CDT
|
 |
Retired User
|
|
Join Date: Oct 2004
Location: London, UK
Posts: 5,000

|
|
Quote:
Originally Posted by martypants
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
|

2009-08-12, 12:13 AM CDT
|
|
Registered User
|
|
Join Date: Aug 2009
Posts: 4

|
|
|
Permission
How do I get permission to make these changes? I'm very new to Linux and I am running Fedora 11. Thanks
|

2009-08-12, 01:15 AM CDT
|
 |
Administrator
|
|
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 9,854

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

2009-08-21, 12:46 PM CDT
|
|
Registered User
|
|
Join Date: Aug 2009
Posts: 3

|
|
|
pysol
thanks, i had the same problem. it works
|

2009-09-05, 01:31 PM CDT
|
|
Registered User
|
|
Join Date: Sep 2009
Posts: 1

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

2009-09-05, 07:02 PM CDT
|
 |
Retired Community Manager -- Banned from Texas by popular demand.
|
|
Join Date: Sep 2007
Location: NYC
Posts: 8,150

|
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Automatic Translations (Powered by  ):
All times are GMT -7. The time now is 11:28 AM CST.
|
|
 |
 |
 |
 |
|
|