Hi,

I'm currently experimenting with s3ql and a custom authentication. To do 
this i use the python requests module to do http requests. I know there 
most likely is a correct way to do this within s3ql but i haven't dug that 
deep into the code yet.

My problem is that when i import the requests module from my code it seems 
to clash with the local logging.py

A quick way to test this is just to fire up python3 in the src/s3ql folder 
and issue 

import requests

i  then get:
--------------8<-------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1519, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/requests/__init__.py", line 59, in 
<module>
from .models import Request, Response, PreparedRequest
File "/usr/lib/python3/dist-packages/requests/models.py", line 11, in 
<module>
import logging
File "./logging.py", line 10, in <module>
import logging.handlers
ImportError: No module named 'logging.handlers'; logging is not a package
--------------8<-------------------------------------------------------------------------------------------

Does anyone have any suggestions on how to resolve this? Or how to best 
replace requests in my code?

Best Regards,

/Tor

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to