0

I fail to install goslate with sudo pip install goslate. Log of error message is below. What I am missing? Or what is my computer (Debian) missing?

It is possible to install the package in Python 2, but not in Python 3. python3 --version:Python 3.2.3type python3:python3 is hashed (/usr/bin/python3)

 Downloading/unpacking goslate Running setup.py egg_info for package goslate Traceback (most recent call last): File "<string>", line 14, in <module> File "/home/admin/build/goslate/setup.py", line 8, in <module> import goslate as module File "goslate.py", line 222 return tuple(u'' for i in range(len(self._writing))) , unicode(target_language) ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 14, in <module> File "/home/admin/build/goslate/setup.py", line 8, in <module> import goslate as module File "goslate.py", line 222 return tuple(u'' for i in range(len(self._writing))) , unicode(target_language) ^ SyntaxError: invalid syntax ---------------------------------------- Command python setup.py egg_info failed with error code 1 in /home/admin/build/goslate Exception information: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 104, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 245, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python3/dist-packages/pip/req.py", line 1009, in prepare_files req_to_install.run_egg_info() File "/usr/lib/python3/dist-packages/pip/req.py", line 225, in run_egg_info command_desc='python setup.py egg_info') File "/usr/lib/python3/dist-packages/pip/__init__.py", line 256, in call_subprocess % (command_desc, proc.returncode, cwd)) pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/admin/build/goslate 
4
  • Is there a need to install it using sudo? I created a new virtualenv and installed it using pip/3, nothing abnormal.
    – Braiam
    CommentedApr 4, 2015 at 20:17
  • No, but I also tried without sudo, and the result is the same.CommentedApr 4, 2015 at 20:38
  • Edit your question and add the output of python3 --version and type python3
    – Braiam
    CommentedApr 4, 2015 at 23:27
  • @Braiam: question updated.CommentedApr 5, 2015 at 0:29

1 Answer 1

1

You need to upgrade to python 3.4.

3
  • Indeed, it can be installed in Python 2 without any problem. However, in theory it should support Python 3 too according to pypi.python.org/pypi/goslateCommentedApr 4, 2015 at 21:37
  • try to update python 3 to version 3.4.3CommentedApr 5, 2015 at 10:28
  • Python 3.4.3 worked. Using Python 2 is not a solution, it's avoiding the problem.CommentedApr 5, 2015 at 15:45

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.