kennethreitz/xerox — Issue #7: Xerox fails to install on Linux
Author: Raynes
Created: 2012-01-15 06:49:25+00:00
State: open

```
raynes@li231-96:~$ sudo pip install xerox
Downloading/unpacking xerox
Downloading xerox-0.3.0.tar.gz
Running setup.py egg_info for package xerox
Traceback (most recent call last):
File "", line 14, in
File "/home/raynes/build/xerox/setup.py", line 6, in
import xerox
File "xerox/__init__.py", line 1, in
from .core import *
File "xerox/core.py", line 12, in
from .linux import *
File "xerox/linux.py", line 23
return subprocess.Popen(["xclip", "-selection", "clipboard", "-o"], stdout=subprocess.PIPE).communicate()[0]).decode("utf-8")
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "/home/raynes/build/xerox/setup.py", line 6, in

import xerox

File "xerox/__init__.py", line 1, in

from .core import *

File "xerox/core.py", line 12, in

from .linux import *

File "xerox/linux.py", line 23

return subprocess.Popen(["xclip", "-selection", "clipboard", "-o"], stdout=subprocess.PIPE).communicate()[0]).decode("utf-8")

^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/raynes/.pip/pip.log
```

Just glancing at the above error, it looks like there is one more parenthesis than there should be. I'll take a look later and possible send a pull request.