Skip to content
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

Closed
dadams1 opened this issue Jan 5, 2014 · 3 comments
Closed

SyntaxError: invalid Syntax #25

dadams1 opened this issue Jan 5, 2014 · 3 comments

Comments

@dadams1
Copy link

dadams1 commented Jan 5, 2014

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

with open('README.rst') as f:

        ^

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:

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]$

@tino
Copy link
Owner

tino commented Jan 6, 2014

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.

@dadams1
Copy link
Author

dadams1 commented Jan 6, 2014

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
Senior Staff Clinician, NHGRI/NIH
Pediatrics, Genetics and Biochemical Genetics
dadams1@mail.nih.govmailto:dadams1@mail.nih.gov
Pager: pin is 14657, 1-800-NIH-BEEP from outside NIH
Phone: (301) 402 6435


From: Tino de Bruijn [mailto:notifications@github.com]
Sent: Monday, January 06, 2014 3:26 PM
To: tino/pyFirmata
Cc: Adams, David (NIH/NHGRI) [E]
Subject: Re: [pyFirmata] SyntaxError: invalid Syntax (#25)

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-31683680.

@tino
Copy link
Owner

tino commented Jan 7, 2014

For python 3 you should try the py3 branch [1]. It passes on 2.6, 2.7, 3.2
and 3.3 [2].

[1] https://github.com/tino/pyFirmata/tree/py3
[2] https://travis-ci.org/tino/pyFirmata/builds/16527720

On Mon, Jan 6, 2014 at 9:32 PM, dadams1 notifications@github.com wrote:

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
Senior Staff Clinician, NHGRI/NIH
Pediatrics, Genetics and Biochemical Genetics
dadams1@mail.nih.govmailto:dadams1@mail.nih.gov
Pager: pin is 14657, 1-800-NIH-BEEP from outside NIH
Phone: (301) 402 6435


From: Tino de Bruijn [mailto:notifications@github.com]
Sent: Monday, January 06, 2014 3:26 PM
To: tino/pyFirmata
Cc: Adams, David (NIH/NHGRI) [E]
Subject: Re: [pyFirmata] SyntaxError: invalid Syntax (#25)

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.


Reply to this email directly or view it on GitHub<
https://github.com/tino/pyFirmata/issues/25#issuecomment-31683680>.


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-31684255
.

@tino tino closed this as completed Jan 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants