Error installing goslate API for python on Windows

Asked

Viewed 130 times

0

I’m getting this result when I try to install the goslate API, which is a more optimized Google Api to mess with translations and other things.

C:\Users\chris\Documents\PyCharm Projects\Integrador\goslate-1.5.1>py setup.py install
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
      import goslate as module
  File "C:\Users\chris\Documents\PyCharm Projects\Integrador\goslate-1.5.1\goslate.py", line 33, in <module>
      import concurrent.futures
  File "C:\Users\chris\AppData\Local\Programs\Python\Python35-32\lib\site-packages\futures-3.0.3-py3.5.egg\concurrent\futures\__init__.py", line 8, in <module>
      from concurrent.futures._base import (FIRST_COMPLETED,
  File "C:\Users\chris\AppData\Local\Programs\Python\Python35-32\lib\site-packages\futures-3.0.3-py3.5.egg\concurrent\futures\_base.py", line 355
      raise type(self._exception), self._exception, self._traceback
                                 ^
SyntaxError: invalid syntax

It seems that it is giving a problem in the module futures, and I’ve even lowered that lib futures latest and installed it quietly, only it did no good.

Question

Does anyone know what I can do to solve this problem?

P.S. I am using python version 3.5.1

  • Tried to install Python 2.7 ?

  • @Denercarvalho, goslate says it’s compatible with 3.4+.

  • Like you’re doing the installation?

  • I need to do this in the latest Python because of other features of my work. The installation is just what is there downloaded the file and went to install it. Goslate is compatible, only this problem in future that’s holding up the business.

1 answer

0


As you can see on that occasion Futures repository, Futures is a module made for programs of version 2.x to be compatible with Features of version 3.x, so it doesn’t make much sense to install the Future module for versions 3.x.

Therefore, uninstalling Utures should solve your problem.

Another addition is that perhaps it is simpler to use the Pip to install these packages.

  • 1

    OK man, I gave up everything here and I did it for pip and worked right. Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.