Hello,
When pymongo is installed on debian stretch or jessie, no problem. Installed files are python3 files. Example with docker:
1. Start a container with: docker run -it debian:stretch /bin/bash
2. Install pymongo for python 3 with: apt-get update && apt-get install -y python3-pip && pip3 install pymongo==2.9.5
3. Check file a pymongo file: cat /usr/local/lib/python3.5/dist-packages/pymongo/__init__.py | grep basestring
--> output is empty
But in "hand make" docker image:
1. Start teh container (i will detail how container is built)
2. Install pymongo for python 3 with: apt-get update && apt-get install -y python3-pip && pip3 install pymongo==2.9.5
3. Check file a pymongo file (this test is positive in second case): cat /usr/lib/python3.5/site-packages/pymongo/__init__.py | grep basestring
---> output is: "if isinstance(version_tuple[-1], basestring):"
- python3 == 3.5.2
- python3-pip == 9.0.1
- git == 2.11.1
- gcc == 6.3.0
- binutils == 2.28
Do you have an idea why pymongo package is installed with python2 files in second case ? Thank you,
Bastien.
Note: i don't know with but in debian stretch example, pymongo files are in /usr/local/lib/python3.5/dist-packages dir and in my "hand make" docker image pymongo files are in /usr/lib/python3.5/site-packages.