Forums

Running Python Script Errors

Auteur Réponses
SpasticHairpin Mercredi 3 Avril 2013 à 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                                        


Edité par SpasticHairpin

Ronin DUSETTE Mercredi 3 Avril 2013 à 3:05
Ronin DUSETTE

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 Mercredi 3 Avril 2013 à 3:07
Ronin DUSETTE

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

Citer


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

Citer

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 Mercredi 3 Avril 2013 à 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.

Edité par SpasticHairpin

Ronin DUSETTE Mercredi 3 Avril 2013 à 3:15
Ronin DUSETTE


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

Citer


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

Edité par 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 Mercredi 3 Avril 2013 à 3:15
SpasticHairpinAnonymous

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

Edité par SpasticHairpin

Ronin DUSETTE Mercredi 3 Avril 2013 à 3:16
Ronin DUSETTE

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 Mercredi 3 Avril 2013 à 3:17
Ronin DUSETTE

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 Mercredi 3 Avril 2013 à 3:17
Ronin DUSETTE

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 Mercredi 3 Avril 2013 à 3:19
SpasticHairpinAnonymous

I checked with pacman -S and it said I have python 2.6 and python 3.3
Ronin DUSETTE Mercredi 3 Avril 2013 à 3:20
Ronin DUSETTE

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

Citer


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

Citer


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 Mercredi 3 Avril 2013 à 3:21
Ronin DUSETTE

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

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 dmcayonlinux.com