How can I import sqlite3 in python mode?

edited March 2018 in Python Mode

In the shell environment we just need to declare "import sqlite3" and then work with the database without problems. But in the IDE processing this doens't work, the following error appears:

processing.app.SketchException: ImportError: No module named sqlite3 at jycessing.mode.run.SketchRunner.convertPythonSketchError(SketchRunner.java:252) at jycessing.mode.run.SketchRunner.lambda$2(SketchRunner.java:125) at java.lang.Thread.run(Thread.java:748)

Tagged:

Answers

  • edited March 2018 Answer ✓

    Is that a Java or a Python library? Python Mode (Jython) can't import native Python libraries! ~O)

Sign In or Register to comment.