-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: invalid Syntax #25
Comments
Could it be that you are on python <2.6? Because the |
Thank you so much for your reply! I have tried installation on several different platforms, mostly CentOS 5 x64 and windows 7 x64. I am using 3.3.3. I am trying to set up Eclipse+pydev to use for Arduino programming. If there is an older version of Python that I need to install, is there a preferred version? -David David Adams, MD, PhD From: Tino de Bruijn [mailto:notifications@github.com] Could it be that you are on python <2.6? Because the with-statement was introduced then. I am not sure I want to backport to earlier python version, as we are already looking at python 3 support. — |
For python 3 you should try the py3 branch [1]. It passes on 2.6, 2.7, 3.2 [1] https://github.com/tino/pyFirmata/tree/py3 On Mon, Jan 6, 2014 at 9:32 PM, dadams1 notifications@github.com wrote:
|
I am interested in any help that I can get installing on CentOS5 (64 bit). Thanks!
[dradams@MercuryCentOS bin]$ pip-python install pyfirmata
Downloading/unpacking pyfirmata
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/pip/basecommand.py", line 124, in main
self.run(options, args)
File "/usr/lib/python2.4/site-packages/pip/commands/install.py", line 178, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.4/site-packages/pip/req.py", line 890, in prepare_files
location = req_to_install.build_location(self.build_dir, not self.is_download)
File "/usr/lib/python2.4/site-packages/pip/req.py", line 147, in build_location
_make_build_dir(build_dir)
File "/usr/lib/python2.4/site-packages/pip/req.py", line 1125, in _make_build_dir
os.makedirs(build_dir)
File "/usr/lib64/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/bin/build'
Storing complete log in /home/dradams/.pip/pip.log
[dradams@MercuryCentOS bin]$ sudo pip-python install pyfirmata
[sudo] password for dradams:
Sorry, try again.
[sudo] password for dradams:
Downloading/unpacking pyfirmata
Downloading pyFirmata-0.9.5.tar.gz
Running setup.py egg_info for package pyfirmata
Traceback (most recent call last):
File "", line 14, in ?
File "/usr/bin/build/pyfirmata/setup.py", line 5
with open('README.rst') as f:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 14, in ?
File "/usr/bin/build/pyfirmata/setup.py", line 5
SyntaxError: invalid syntax
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/dradams/.pip/pip.log
[dradams@MercuryCentOS .pip]$ cat pip.log
/usr/bin/pip-python run on Sun Jan 5 12:06:50 2014
Downloading/unpacking pyfirmata
Getting page http://pypi.python.org/simple/pyfirmata
URLs to search for versions for pyfirmata:
http://pypi.python.org/simple/pyfirmata/
Getting page http://pypi.python.org/simple/pyfirmata/
Analyzing links from page https://pypi.python.org/simple/pyFirmata/
Skipping link https://pypi.python.org/packages/any/p/pyFirmata/pyFirmata-0.9.5.macosx-10.6-x86_64.exe#md5=ea803a127e6361acaba32080de22f46f (from https://pypi.python.org/simple/pyFirmata/); unknown archive format: .exe
Found link https://pypi.python.org/packages/source/p/pyFirmata/pyFirmata-0.9.5.tar.gz#md5=6f9e9a617ffb904c6eb4f5b4696790db (from https://pypi.python.org/simple/pyFirmata/), version: 0.9.5
Downloading pyFirmata-0.9.5.tar.gz
Downloading from URL https://pypi.python.org/packages/source/p/pyFirmata/pyFirmata-0.9.5.tar.gz#md5=6f9e9a617ffb904c6eb4f5b4696790db (from https://pypi.python.org/simple/pyFirmata/)
Running setup.py egg_info for package pyfirmata
Traceback (most recent call last):
File "", line 14, in ?
File "/usr/bin/build/pyfirmata/setup.py", line 5
with open('README.rst') as f:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 14, in ?
File "/usr/bin/build/pyfirmata/setup.py", line 5
with open('README.rst') as f:
SyntaxError: invalid syntax
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/pip/basecommand.py", line 124, in main
self.run(options, args)
File "/usr/lib/python2.4/site-packages/pip/commands/install.py", line 178, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.4/site-packages/pip/req.py", line 927, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.4/site-packages/pip/req.py", line 219, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.4/site-packages/pip/init.py", line 237, in call_subprocess
raise InstallationError(
InstallationError: Command python setup.py egg_info failed with error code 1
[dradams@MercuryCentOS .pip]$
The text was updated successfully, but these errors were encountered: