Ask Your Question

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/", 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


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" ./
./ . import utils

And I do have that file:

requests]$ rpm -qf /usr/lib/python2.7/site-packages/requests/

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

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

Question Tools

1 follower


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

Seen: 2,516 times

Last updated: Aug 12 '17