ImportError: No module named util.ssl_

transifex

(Stéphane de Labrusse) #1
[lsd@leo nethserver-transmission]$ tx push -s 
Traceback (most recent call last):
  File "/usr/bin/tx", line 9, in <module>
    load_entry_point('transifex-client==0.12.2', 'console_scripts', 'tx')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 563, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2651, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2305, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2311, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/txclib/cmdline.py", line 7, in <module>
    from urllib3.exceptions import SSLError
  File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 29, in <module>
    from .connection import (
  File "/usr/lib/python2.7/site-packages/urllib3/connection.py", line 39, in <module>
    from .util.ssl_ import (
ImportError: No module named util.ssl_

when I do : tx push -s

I have some python errors. I use Fedora 26…someone have a trick @dev_team ???


(Davide Principi) #2

Is tx at the latest version?


(Stéphane de Labrusse) #3

how to verify/install the latest version ?


(Davide Principi) #4

I’m out of office now, you could refer to tx docs:


(Stéphane de Labrusse) #5

ok some errors more…I will look after the documentation : tx --help crash

[lsd@leo nethserver-diagtools]$ tx --help
Traceback (most recent call last):
  File "/usr/bin/tx", line 9, in <module>
    load_entry_point('transifex-client==0.12.2', 'console_scripts', 'tx')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 563, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2651, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2305, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2311, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/txclib/cmdline.py", line 7, in <module>
    from urllib3.exceptions import SSLError
  File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 29, in <module>
    from .connection import (
  File "/usr/lib/python2.7/site-packages/urllib3/connection.py", line 39, in <module>
    from .util.ssl_ import (
ImportError: No module named util.ssl_

(Davide Principi) #6

Looks like a python symbol is missing…


(Stéphane de Labrusse) #7

I tried the upgrade of tx…but it did not fix my issue

sudo pip install --upgrade transifex-client

does transiflex client works with F26 ???


(Davide Principi) #8

I ran it a few days ago but didn’t get that message. Couldn’t that be a missing python package?

Next week I’ll send you my RPM list!


(Stéphane de Labrusse) #9

which version of python do you use ?


(Stéphane de Labrusse) #10

thank, you pointed the right way

dnf reinstall python2\*
Error unpacking rpm package python2-crypto-2.6.1-14.fc26.x86_64
Error unpacking rpm package python2-urllib3-1.20-1.fc26.noarch
Error unpacking rpm package python-backports-ssl_match_hostname-3.5.0.1-4.fc26.noarch

this is an atomic way to solve my issue

rm -rf /usr/lib64/python2.7/site-packages/pycrypto-2.6.1-py2.7.egg-info /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname /usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info

dnf install python2-urllib3 python2-crypto python-backports-ssl_match_hostname

[root@leo lsd]# tx --help
Usage: tx [options] command [cmd_options]

This is the Transifex command line client which allows you to manage your
translations locally and sync them with the master Transifex server. If you'd
like to check the available commands issue `tx help` or if you just want help
with a specific command issue `tx help command`

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -d, --debug           enable debug messages
  -q, --quiet           don't print status messages to stdout
  -r ROOT_DIR, --root=ROOT_DIR
                        change root directory (default is cwd)
  --traceback           print full traceback on exceptions
  --disable-colors      disable colors in the output of commands