The forum

too many arguments, line 86

debian, crunchbang

Author Replies
nanomagnetic Thursday 15 September 2011 at 5:50
nanomagneticAnonymous

So, I've gone through the first steps in the sticky and made sure all of my packages were installed. But when I run playonlinux I get a whole mess pouring out of the command line shell:

mendota@altair:~$ playonlinux
[install_plugins] Message: Checking plugin: Offline PlayOnLinux...
Traceback (most recent call last):
File "mainwindow.py", line 657, in <module>
app = PlayOnLinuxApp(redirect=False)
File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
self._BootstrapApp()
File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "mainwindow.py", line 601, in OnInit
self.frame = MainWindow(None, -1, os.environ["APPLICATION_TITLE"])
File "mainwindow.py", line 228, in __init__
self.jauge_update.Pulse()
AttributeError: 'Gauge' object has no attribute 'Pulse'
Exception TypeError: 'join() takes exactly 2 arguments (1 given)' in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[install_plugins] Message: Checking plugin: Capture...
[install_plugins] Message: Checking plugin: Transgaming Cedega...
/usr/share/playonlinux/lib/plugins.lib: line 86: [: too many arguments
[install_plugins] Message: Checking plugin: Wine Import...
/usr/share/playonlinux/lib/plugins.lib: line 86: [: too many arguments
[install_plugins] Message: Checking plugin: Wine Look...
/usr/share/playonlinux/lib/plugins.lib: line 86: [: too many arguments
[install_plugins] Message: Checking plugin: Offline PlayOnLinux...
Traceback (most recent call last):
File "mainwindow.py", line 657, in <module>
app = PlayOnLinuxApp(redirect=False)
File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
self._BootstrapApp()
File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "mainwindow.py", line 601, in OnInit
self.frame = MainWindow(None, -1, os.environ["APPLICATION_TITLE"])
File "mainwindow.py", line 228, in __init__
self.jauge_update.Pulse()
AttributeError: 'Gauge' object has no attribute 'Pulse'
Exception TypeError: 'join() takes exactly 2 arguments (1 given)' in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[install_plugins] Message: Checking plugin: Capture...
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/usr/share/playonlinux/python/lib/irc.py", line 533, in run
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'sleep'
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
[install_plugins] Message: Checking plugin: Transgaming Cedega...
Traceback (most recent call last):
File "mainwindow.py", line 30, in <module>
import wx
ImportError: No module named wx
mendota@altair:~$ /usr/share/playonlinux/lib/plugins.lib: line 86: [: too many arguments
[install_plugins] Message: Checking plugin: Wine Import...
/usr/share/playonlinux/lib/plugins.lib: line 86: [: too many arguments
[install_plugins] Message: Checking plugin: Wine Look...
/usr/share/playonlinux/lib/plugins.lib: line 86: [: too many arguments


The startup sequence keeps getting hung up on "line 86". These are lines 85 and 86 from plugins.lib (The library that's throwing the error).

#si la version du P est la même ou plus old que l'U on passe au plugin suivant
[ $Pversion -gt $Uversion ] || continue

My french isn't all that great, and my programming even worse. There's something going on here about comparing variables and piping or something. But that's as far as I've gotten.

Any help?
Quentin PÂRIS Thursday 15 September 2011 at 12:43
Quentin PÂRISAnonymous

Ok, this is a problem, but it won't prevent POL from running.

You're real problem comes from the fact that wxpython is not installed on your system for python2.6
nanomagnetic Thursday 15 September 2011 at 22:16
nanomagneticAnonymous

Okay. I'll go dig through the debian libraries and see if I can find a wxPython or python-wx for 2.6

edit:

So, it turns out that wxPython isn't in the main debian repositories, or at least it's not in mine. I downloaded the tar.gz from the wxPython website and unpacked it into a folder. After that, I went through the whole sequence of "./configure" then "make" then "make install".

Going down to reboot to see if that clears up the problems.

edit 2:

So I've got the wxPython core all installed and now I'm getting this error:

Traceback (most recent call last):
File "mainwindow.py", line 30, in <module>
import wx
ImportError: No module named wx

Line 30 being the third line of execution in mainwindow.py So, perhaps I need to set an environment variable?

There's some commented out code just before line 30, and it looks familiar. It looks like the code that was involved in the other "too many arguments error" thread. But that was a different linux and possibly a different issue with python versions.

#try:
#     locale.getlocale()
#except:
#     os.environ["LANG"] = "en_US.utf-8"
#locale.setlocale(locale.LC_ALL, '.utf-8')


edit 3:

I solved the line 30 problem. I went to this directory:

/usr/lib/python2.6/dist-packages

and modified a file named pygst.pth I appended two directory names into that file:

wx-2.6-gtk2-unicode
wx-2.8-gtk2-unicode

And now the POL scripts can find the wx module. However I have a new problem.

File "/usr/share/playonlinux/python/lib/lng.py", line 5, in <module>
import wxversion
ImportError: No module named wxversion

lng.py is trying to import wxversion, but i have wxversion.py in my python folders. what do i do now?

edit 4:

Got it. I had my Lenny and Squeeze debian releases intermingling somehow. I went through the package manager and uninstalled wxversion for python. I dropped all my repositories except Squeeze, reinstalled, and now I'm working on configuring POL.

hope this helps anyone in the future. DONT MIX YOUR DEBIAN RELEASES and DONT MIX MANUAL AND MANAGER INSTALLATIONS. it's a pain in the ass XD

Edited by nanomagnetic

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com