On 11/16/20 12:43 AM, Dale wrote:
n952162 wrote:
On 11/16/20 12:00 AM, n952162 wrote:
I'm trying to convert python2 scripts to python3.  A script which
works under python2 gives me this under python3:

     ModuleNotFoundError: No module named 'sqlite3'

Any ideas?

Just by way of comparison:


$ python -m pdb ~/p/it/bookmarks/brep -A add-on -p '*default'
.../brep(10)<module>()
-> import sys
(Pdb) n
.../brep(11)<module>()
-> import getopt
(Pdb) n
.../brep(12)<module>()
-> import json
(Pdb) n
.../brep(13)<module>()
-> import re
(Pdb) n
.../brep(14)<module>()
-> import glob
(Pdb) n
.../brep(15)<module>()
-> import os
(Pdb) n
.../brep(16)<module>()
-> import sqlite3
(Pdb) n
ModuleNotFoundError: No module named 'sqlite3'
.../brep(16)<module>()
-> import sqlite3


Just some additional info.  I monitor -dev and I think python 3.6 and
3.7 is going away soon.  I'm not sure about 3.8.  I recall seeing a few
mentions about updating to one of the latest versions instead of just
going up one and then having to repeat in the not so distant future to
the next higher slot.  I say that because of this.  If you are updating
your scripts, may as well go to the highest version you can so that you
can be done with this for a much longer time period than just going up
one step.

Someone else, a dev maybe, may be able to shed more details on this.
Just thought it might be something you would want to look into and
perhaps save yourself some time and effort.

Dale

:-)  :-)


Good to think ahead.  Thank you.


Reply via email to