-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: 4.12
-
Component/s: pymongoexplain
-
None
-
Python Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
Hi guys,
apologize in advance - this question might have been already answered. I'm new new to this community. But..Was working on our software the other day, and noticed one thing. We used to work with pymongo.uri_parser module (one of our drivers called for methods from there), specifically in pymongo-3.10.1 version. Then I had to install (for fixing other things) the latest available pymongo-4.12.0 and started getting something like:
parsed = pymongo.uri_parser.parse_uri(self.mongo_url) AttributeError: module 'pymongo' has no attribute 'uri_parser'
Well, I started looking for it and noticed that the python interpreter can only "see" uri_parser_shared in pymongo-4.12.0.
Though there are two versions of the module installed on the disk:
ls -lah /home/dmitry.zhidkov/.local/lib/python3.9/site-packages
-rw-r--r-- 1 dmitry.zhidkov dmitry.zhidkov 1.3K Apr 11 22:03 uri_parser.py -rw-r--r-- 1 dmitry.zhidkov dmitry.zhidkov 21K Apr 11 22:03 uri_parser_shared.py
I haven't found any mentions about that in neither Release Notes nor somewhere like this Jira portal.
Question:
Is it expected? What did I possibly miss?
I checked every version in between 3.10.2 and 4.12.0. Only the latest one is lacking that method when running python. I guess I could workaround that somehow but probably it would be great to add it alongside with other modules (as it was before)...
Just in case:
Operating System:
NAME="Oracle Linux Server"
VERSION="9.5"
Pip:
pip 25.0.1 from /home/dmitry.zhidkov/.local/lib/python3.9/site-packages/pip (python 3.9)
pymongo:
pymongo 4.12.0
Thanks in advance!
Regards, DZ
- split to
-
PYTHON-5314 Fix public pymongo submodule AttributeErrors
-
- Closed
-