python-goose icon indicating copy to clipboard operation
python-goose copied to clipboard

Can not install on mac

Open 1a1a11a opened this issue 10 years ago • 3 comments

Installation using pip failed. Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 152, in save_modules yield saved File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 193, in setup_context yield File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 237, in run_setup DirectorySandbox(setup_dir).run(runner) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 267, in run return func() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 236, in runner _execfile(setup_script, ns) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 45, in _execfile code = compile(script, filename, 'exec') File "/tmp/easy_install-5tsdus5b/BeautifulSoup-3.2.1/setup.py", line 22 print "Unit tests have failed!" ^ SyntaxError: Missing parentheses in call to 'print'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "setup.py", line 70, in test_suite="tests" File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup dist.run_commands() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/install.py", line 67, in run self.do_egg_install() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/install.py", line 117, in do_egg_install cmd.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 380, in run self.easy_install(spec, not self.no_deps) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 610, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 661, in install_item self.process_distribution(spec, dist, deps) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 709, in process_distribution [requirement], self.local_index, self.easy_install File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/init.py", line 824, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/init.py", line 1069, in best_match return self.obtain(req, installer) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/init.py", line 1081, in obtain return installer(requirement) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 629, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 659, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 842, in install_eggs return self.build_and_install(setup_script, setup_base) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1070, in build_and_install self.run_setup(setup_script, setup_base, args) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1056, in run_setup run_setup(setup_script, args) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 240, in run_setup raise File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 193, in setup_context yield File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/contextlib.py", line 77, in exit self.gen.throw(type, value, traceback) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 164, in save_modules saved_exc.resume() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 139, in resume compat.reraise(type, exc, self._tb) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/compat.py", line 65, in reraise raise value.with_traceback(tb) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 152, in save_modules yield saved File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 193, in setup_context yield File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 237, in run_setup DirectorySandbox(setup_dir).run(runner) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 267, in run return func() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 236, in runner _execfile(setup_script, ns) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/sandbox.py", line 45, in _execfile code = compile(script, filename, 'exec') File "/tmp/easy_install-5tsdus5b/BeautifulSoup-3.2.1/setup.py", line 22 print "Unit tests have failed!" ^ SyntaxError: Missing parentheses in call to 'print'

1a1a11a avatar May 07 '15 05:05 1a1a11a

Looks like you're using Python 3.4 which Goose currently doesn't support, as far as I know...

yprez avatar May 07 '15 09:05 yprez

OK, thanks!

1a1a11a avatar May 07 '15 16:05 1a1a11a

Getting this error while trying to install as well. I'm confused as many comments seem to suggest goose-extractor is python 3 ready? Frustrating as goose works very well

chickenofthewoods avatar Nov 14 '16 16:11 chickenofthewoods