Ask Your Question
0

Python Utils module is missing

asked 2016-01-04 08:57:58 -0500

Maxim Kolchin gravatar image

I use docker-compose to run a set of Docker containers. This app requires a Python module which I can't find in Fedora's repositories. See the error message from the app:

File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>    
    from . import utils 
ImportError: cannot import name utils

To make it work, I have to use pip to install the module, but it's not desirable, because then I can't use the Fedora's update mechanism.

Question: Does the package exists with a different name? This there a way to vote for this package to be inclided in the Fedora repositories?

edit retag flag offensive close merge delete

Comments

The syntax "from . means from here - the requests module is attempting to load resources it provides from a relative path. docker-compose is only attempting to use the requests module. I see this too:

requests]$ grep -r "from . import utils" ./
./__init__.py:from . import utils

And I do have that file:

requests]$ rpm -qf /usr/lib/python2.7/site-packages/requests/utils.py
python-requests-2.9.0-1.fc23.noarch

It would appear that your installation of python-requests is broken, try reinstalling the package.

randomuser gravatar imagerandomuser ( 2016-01-05 08:41:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-12 15:46:18 -0500

Robb gravatar image

Seem you are missing python util package

$ sudo pip install utils

should work for you

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-01-04 08:57:58 -0500

Seen: 1,118 times

Last updated: Aug 12 '17