Sublime Forum

Import sqlite3 causes an error in ST3.2

#1

Hi All …

I just experienced an error when importing sqlite3.
ST3 apparently does not “know” about sqlite3.

This happened with OS:W7 Python3.57 ST3.2 build 3200 (all newly reinstalled)
D:\1-ToSyncWithBackUp\mynewpy-project\py\testwhatever.py:1
(function (exports, require, module, __filename, __dirname) { import sqlite3
^^^^^^^

Has somebody else had the issue recently ?

(So For now I am running my python scripts ,where sqlite3 is concerned, directly from the python command line or in jupyter notebook…)

0 Likes

#2

Sublime Text’s version of Python is 3.3.

What are you doing in the editor to get the output about sqlite3? Are you invoking a build system?

0 Likes

#3

Hello wbond …from your question i figure the answer…I probably should organize to run trough nodes…I guess…

0 Likes

#4

Thanks for asking :slight_smile:

0 Likes

#5

I was gonna say, it looks more like JS code than Python…

0 Likes

#6

In Fact I re-installed ST from fresh but had no idea this would keep previous ST configuration files.
So I ran my python code associated to a node build referring a node installation that was no longer there.
Getting the proper environments (python ,Js, Sqlite ,flask and what not…) to suit a particular project entails so much back and forth that you sometimes get really “confused” and overlook heavy tiny little things

Sorry for the noise though

All the best…for a great tool.

0 Likes