The forum

Running Python Script Errors

Author Replies
SpasticHairpin Wednesday 3 April 2013 at 3:03
SpasticHairpinAnonymous

Hi everyone, I tried following the instructions in the download section on how to install playonlinux. I ran ./playonlinux within the playonlinux folder like it says but when I do it gives me these errors. How do I fix this?

  File "mainwindow.py", line 27
    print "ERROR ! Please define POL_OS environment var first."
                                                              ^
SyntaxError: invalid syntax
./playonlinux: line 144: python2.6: command not found


OS: ArchBang x86_64
Kernel: 3.8.4-1-ARCH
Graphics card nvidia geforce GTX 550 ti
Drivers 4.3.0 NVIDIA 312.26                                        


Edited by SpasticHairpin

Ronin DUSETTE Wednesday 3 April 2013 at 3:05
Ronin DUSETTE
Admin

Didnt I just lock a thread about this?

HOW did you install it? What did you do to install it? Thats NOT how you run a "python script", as I have explained. Please provide more information.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Wednesday 3 April 2013 at 3:07
Ronin DUSETTE
Admin

I tried following the instructions in the download section on how to install playonlinux. I ran ./playonlinux within the playonlinux folder

Quote


There is nothing in the instructions that says to run it like that. At all.

Arch Linux

Adding the archlinuxfr repository:

As root (or with sudo), add to /etc/pacman.conf the following lines (for i686 architectures):
[archlinuxfr]
Server = http://repo.archlinux.fr/i686
Or the following lines (for x86_64 architectures):
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
Installing PlayOnLinux

As root (or with sudo), type the following command:
pacman -Sy playonlinux

Quote

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
SpasticHairpin Wednesday 3 April 2013 at 3:14
SpasticHairpinAnonymous

What other information do you need?That method doesn't give me the latest version.It gives me 4.2.0-1 which is out of date.

Edited by SpasticHairpin

Ronin DUSETTE Wednesday 3 April 2013 at 3:15
Ronin DUSETTE
Admin


SyntaxError: invalid syntax
./playonlinux: line 144: python2.6: command not found

Quote


That is not the issue. You dont even have Python 2.6 installed. At least thats what it looks like. 

No python installed? Im locking this thread, as well. Please read all documentation again, as you are missing basic prerequisites that are stated in documentation.

Please read more before opening up another thread......

Edited by RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
SpasticHairpin Wednesday 3 April 2013 at 3:15
SpasticHairpinAnonymous

Wait I have Python. For some reason it's not detecting it though. I have python 2.6 and 3.3.

Edited by SpasticHairpin

Ronin DUSETTE Wednesday 3 April 2013 at 3:16
Ronin DUSETTE
Admin

how do you know that you have python?

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Wednesday 3 April 2013 at 3:17
Ronin DUSETTE
Admin

You are missing dependencies. hahaha. Straight up. There is a whole list of dependencies that need to be on your system.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Wednesday 3 April 2013 at 3:17
Ronin DUSETTE
Admin

Then why does it say its not found? haha

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
SpasticHairpin Wednesday 3 April 2013 at 3:19
SpasticHairpinAnonymous

I checked with pacman -S and it said I have python 2.6 and python 3.3
Ronin DUSETTE Wednesday 3 April 2013 at 3:20
Ronin DUSETTE
Admin

Here is the problem. You did this:

Generic package

.tar.gz files:

You just have to extract these files and run "./playonlinux". PlayOnLinux is written in Python, so you have nothing to build, but Python must be installed first.
PlayOnLinux: PlayOnLinux_4.2.1.tar.gz

Quote


You built from source, which is NOT the correct install for your distribution, which is Arch.

Here are the directions, on the SAME PAGE that you read that on:

Arch Linux

Adding the archlinuxfr repository:

As root (or with sudo), add to /etc/pacman.conf the following lines (for i686 architectures):
[archlinuxfr]
Server = http://repo.archlinux.fr/i686
Or the following lines (for x86_64 architectures):
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
Installing PlayOnLinux

As root (or with sudo), type the following command:
pacman -Sy playonlinux

Quote


Ive said it before... You are NOT READING everything correctly, and you dont understand how your Linux flavour works at all. Please do reading and research on how your system installs and operates software.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Wednesday 3 April 2013 at 3:21
Ronin DUSETTE
Admin

This thread is being locked. Please do not repost the same question again. READ the correct instructions for installation on your system, which is what I just posted. Delete whatever you did with building from source, and install the supported fashion.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts