Python Setup Py Install Syntax Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about setup.py syntax error hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask python download Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join numpy them; it only takes a minute: Sign up python setup.py install syntax error on Windows up vote 1 down vote favorite This is probably a dumb question but I am having trouble installing a module from a tar.gz file on Windows. The module is docx. Of course for docx one needs lxml and PIL which I had no problems installing because there are binaries available. For docx it appears I am out of luck. So, I went about extracting the tarball with 7zip, using the command prompt to cd to the extracted directory with the setup.py file, then: >>setup.py install It appears to start working and then I get an error: exec_(compile(source, fn, 'exec'), globs, locs) File "setup.py", line 182 print "--- using Tcl/Tk libraries at", TCL_ROOT ^ Any ideas on this? Do I need a C++ compiler to run this? python syntax module docx share|improve this question asked Nov 26 '13 at 3:57 griffsterb 5619 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote Looks like the module doesn't support your python version. In Python 3.x, print is a function, which is why it throws an error. Either install Python 2.x, or forget this module. Sorry. share|improve this answer answered Nov 26 '13 at 4:01 aIKid 11.7k31941 add a comment| up vote 0 down vote This is probably too late to answer, but for anyone else reading this question, use Pillow, it's a better-maintained fork of PIL that works with python 3.x share|improve this answer answered May 19 '14 at 3:00 serakfalcon 2,62811027 add a comment| up vote -1 down vote you open cmd,command : 1.cd 'to folder save module need install' path_to_python.exe setup.py build ... setup.py install done example: cd C:\Python\Packet\tornado C:\Python27\python.exe setup.py build C:\Python27\python.exe setup.py install share|improve this answer answered Nov 26 '13 at 4:11 langiac 3316 Definitely not the problem, this –aIKid Nov 26 '13 at 12:53 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a gue
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Importing modules http://stackoverflow.com/questions/20208199/python-setup-py-install-syntax-error-on-windows with python up vote 0 down vote favorite I'm working with python 2.7 (32-bit) on Windows Vista. I downloaded some libraries including numpy, scipy, and pygame. When I try to import these modules the output says Traceback (most recent call last): File "
DeutschEnglishEspañolFrançaisItaliano日本語 Please enable Javascript to take full advantage of our site features. Forum » API » Getting started Started by mdevaan over 4 years ago, https://www.discogs.com/forum/thread/322504 4 replies Save Thread Notify Me of Replies Add New Thread mdevaan over https://github.com/numenta/nupic/issues/1125 4 years ago This post is hidden because you reported it for abuse. Show this post Hello, I would like to explore the Discogs data using the API. I have little experience with Python, so I hope that this is the right place to ask my question. I have syntax error some trouble installing the client: from setuptools import setup setup( name='discogs-client', version='1.1.1', description='Official Python API client for Discogs', url='https://github.com/discogs/discogs-python-client', author='Discogs', author_email='info@discogs.com', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Communications', 'Topic :: Utilities', ], install_requires=[ 'requests', ], python setup py py_modules=[ 'discogs_client', ], ) >>> import discogs_client as discogs Traceback (most recent call last): File "
Sign in Pricing Blog Support Search GitHub This repository Watch 571 Star 4,526 Fork 1,273 numenta/nupic Code Issues 440 Pull requests 3 Projects 1 Wiki Pulse Graphs New issue Syntax error on "python setup.py install" #1125 Closed rhyolight opened this Issue Jul 18, 2014 · 9 comments Projects None yet Labels status:in progress type:bug type:build Milestone Sprint 26 Assignees rhyolight 3 participants Numenta member rhyolight commented Jul 18, 2014 I always get this error. It doesn't break anything, but it should probably be fixed. Extracting nupic-0.1.0-py2.7.egg to /usr/local/lib/python2.7/site-packages File "/usr/local/lib/python2.7/site-packages/nupic-0.1.0-py2.7.egg/nupic/frameworks/opf/exp_generator/opfExperimentControlTemplate.py", line 4 "environment": $ENVIRONMENT, ^ SyntaxError: invalid syntax File "/usr/local/lib/python2.7/site-packages/nupic-0.1.0-py2.7.egg/nupic/regions/UnimportableNode.py", line 5 Try to import this, Python interpreter... ^ SyntaxError: invalid syntax This is because the file being parsed is a template, not a python source file. We need to try to exclude templates like this from interpretation somehow. rhyolight added bug build labels Jul 18, 2014 david-ragazzi commented Jul 18, 2014 File "/usr/local/lib/python2.7/site-packages/nupic-0.1.0-py2.7.egg/nupic/frameworks/opf/exp_generator/opfExperimentControlTemplate.py", line 4 "environment": $ENVIRONMENT, ^ SyntaxError: invalid syntax Is $ENVIRONMENT empty? If yes, syntax error surelly will happen. By the way, shouldn't we use os.getenv['ENVIRONMENT'] for this purpose? File "/usr/local/lib/python2.7/site-packages/nupic-0.1.0-py2.7.egg/nupic/regions/UnimportableNode.py", line 5 Try to import this, Python interpreter... It thought this error was supposed to happen due to the node be "Unimportable".. See the content of nupic/regions/UnimportableNode.py: """This file does NOT contain valid Python code. It is used to test error handling when trying to import "bad" Python nodes """ Try to import this, Python inte