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

Receiving error from transifex client #322

Open
rgbskills opened this issue May 26, 2021 · 5 comments
Open

Receiving error from transifex client #322

rgbskills opened this issue May 26, 2021 · 5 comments

Comments

@rgbskills
Copy link

Hello,

I installed transifex-client on macOS 11.4 but i'm receiving the following error:

tx pull
Traceback (most recent call last):
  File "/usr/local/bin/tx", line 11, in <module>
    load_entry_point('transifex-client==0.14.2', 'console_scripts', 'tx')()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
    return self.resolve()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Library/Python/2.7/site-packages/transifex_client-0.14.2-py2.7.egg/txclib/cmdline.py", line 7, in <module>
    from txclib import utils, web
  File "/Library/Python/2.7/site-packages/transifex_client-0.14.2-py2.7.egg/txclib/utils.py", line 6, in <module>
    import git
  File "/Library/Python/2.7/site-packages/GitPython-3.1.17-py2.7.egg/git/__init__.py", line 21
    def _init_externals() -> None:
                          ^
SyntaxError: invalid syntax
@transifexGithub
Copy link

Hello rgbskills,

Thank you for contacting Transifex support, Basing on the log you sent us It seems that you have compatibility issue, Could you please sent us the output of the following command:
Command: tx --version
0.14.2, py 3.9, arm64
Also could you tell us which version of python are you running

Best Regards

@rgbskills
Copy link
Author

rgbskills commented Jun 1, 2021

tx --version :

Traceback (most recent call last):
  File "/usr/local/bin/tx", line 11, in <module>
    load_entry_point('transifex-client==0.14.2', 'console_scripts', 'tx')()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
    return self.resolve()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Library/Python/2.7/site-packages/transifex_client-0.14.2-py2.7.egg/txclib/cmdline.py", line 7, in <module>
    from txclib import utils, web
  File "/Library/Python/2.7/site-packages/transifex_client-0.14.2-py2.7.egg/txclib/utils.py", line 6, in <module>
    import git
  File "/Library/Python/2.7/site-packages/GitPython-3.1.17-py2.7.egg/git/__init__.py", line 21
    def _init_externals() -> None:
                          ^
SyntaxError: invalid syntax```

----------------------------------------------------------------------------------------------

And my running python version

```python --version
Python 2.7.16```

@transifexGithub
Copy link

Thank you!, Could you please share the installation process of TX?

@rgbskills
Copy link
Author

Yes I installed it wit PIP

$ easy_install pip
$ pip install transifex-client

@transifexGithub
Copy link

transifexGithub commented Jun 2, 2021

Hello rgbSkills,

I manage to reproduce your scenario:

cesar@MacBookCesar ~ % tx --version
Traceback (most recent call last):
File "/usr/local/bin/tx", line 11, in
load_entry_point('transifex-client==0.14.2', 'console_scripts', 'tx')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2843, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2434, in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2440, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/Library/Python/2.7/site-packages/transifex_client-0.14.2-py2.7.egg/txclib/cmdline.py", line 7, in
from txclib import utils, web
File "/Library/Python/2.7/site-packages/transifex_client-0.14.2-py2.7.egg/txclib/utils.py", line 6, in
import git
File "/Library/Python/2.7/site-packages/GitPython-3.1.14-py2.7.egg/git/init.py", line 27
raise ImportError("'gitdb' could not be found in your PYTHONPATH") from e

                                                                      ^

SyntaxError: invalid syntax

The output above is because TX hasn't being install, So let's try installing TX with PIP3 as the example below:

Command 1
cesar@MacBook-Air-de-Cesar ~ % sudo pip3 install transifex-client

Command 2
cesar@MacBook-Air-de-Cesar ~ % pip3 install --upgrade transifex-client

Command 3
cesar@MacBook-Air-de-Cesar ~ % tx --version
0.14.2, py 3.9, arm64

Give it a try and let me know how it goes :)

Best Regards Cesar

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