Sqlite 3 ImportError #46526

Closed
opened 2015-10-18 12:09:00 +02:00 by laurenz steiner · 22 comments

System Information
Operating system and graphics card
Windows 10
Blender Version
Broken: 2.75a from 2015-07-07

With some files the DLL load failed error appears.
Short description of error

Exact steps for others to reproduce the error
Start the bug_test.blend and read the console text.bug.zip

**System Information** Operating system and graphics card Windows 10 **Blender Version** Broken: 2.75a from 2015-07-07 With some files the DLL load failed error appears. **Short description of error** **Exact steps for others to reproduce the error** Start the bug_test.blend and read the console text.[bug.zip](https://archive.blender.org/developer/F245740/bug.zip)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @laurenz

Added subscriber: @laurenz

Added subscriber: @mont29

Added subscriber: @mont29

First of all, please check against latest release (2.76). ;)

Also, please attach here the log text of the error in the console.

First of all, please check against latest release (2.76). ;) Also, please attach here the log text of the error in the console.

Hi, sry I didnt even notice the new release, but, i just tried it and it didnt work either.
and here is the console log:
bug.jpg

Hi, sry I didnt even notice the new release, but, i just tried it and it didnt work either. and here is the console log: ![bug.jpg](https://archive.blender.org/developer/F245806/bug.jpg)

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger

Find those .../2.76/2.76/... very suspicious… Does importing any other py module (os, sys, etc.) works?

@MartijnBerger I think that kind of path is not expected for embedded python?

Find those `.../2.76/2.76/...` very suspicious… Does importing any other py module (`os`, `sys`, etc.) works? @MartijnBerger I think that kind of path is not expected for embedded python?

Yeah, I dont have any problems with os or bge or pickle...just sqlite3 doesnt work always, but in a repeateable way. I have some files where it works without a problem, and then there are others where it doesnt work at all. like the one in the bug zip.

Yeah, I dont have any problems with os or bge or pickle...just sqlite3 doesnt work always, but in a repeateable way. I have some files where it works without a problem, and then there are others where it doesnt work at all. like the one in the bug zip.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Likely Blender is installed in C:\Blender\2.76,

Could you attach the system-info output?
https://www.blender.org/manual/troubleshooting/general_help.html#system-info

Likely Blender is installed in `C:\Blender\2.76`, Could you attach the system-info output? https://www.blender.org/manual/troubleshooting/general_help.html#system-info

system-info.txt
Here is the system-info.txt
and no, blender is installed on D: in the matching release-directory

[system-info.txt](https://archive.blender.org/developer/F245920/system-info.txt) Here is the system-info.txt and no, blender is installed on D: in the matching release-directory

I now found out that the problem doesn't appear when I open the blend file with the open command instead of the shortcut or the file. Also the os command chdir(Blenderdirectory) solves the problem, but i still think that this is a bug, which should be fixed ;)

I now found out that the problem doesn't appear when I open the blend file with the open command instead of the shortcut or the file. Also the os command chdir(Blenderdirectory) solves the problem, but i still think that this is a bug, which should be fixed ;)

Added subscriber: @Sergey

Added subscriber: @Sergey

Does it still happen with 2.76? And does this happen with other modules (os, sys, etc)?

Does it still happen with 2.76? And does this happen with other modules (os, sys, etc)?

Yes it still happens with 2.76 and no, at least I didnt notice any problems with other modules.

Yes it still happens with 2.76 and no, at least I didnt notice any problems with other modules.
Martijn Berger was assigned by Sergey Sharybin 2016-01-26 16:56:56 +01:00

Either sqlite3.dll should either become static (_sqlite could stay dynamic, python knows how to deal with it) or we have add path with sqlite3 to the PATH variable from blender-app.exe.

@MartijnBerger, mind investigating if it's doable to make sqlite3.dll static now?

Either `sqlite3.dll` should either become static (_sqlite could stay dynamic, python knows how to deal with it) or we have add path with sqlite3 to the PATH variable from `blender-app.exe`. @MartijnBerger, mind investigating if it's doable to make sqlite3.dll static now?

Added subscriber: @ShadowHunterRUS

Added subscriber: @ShadowHunterRUS

Added subscriber: @snuq

Added subscriber: @snuq

This started happening on my computer, my script using sqlite3 would not work, and typing 'import sqlite3' in the python console would not work.
This was happening in any .blend file (even when I loaded the factory defaults), running blender from various locations, and in several different versions of blender.

If anyone else comes across this in a search before it is fixed, I managed to get it to import properly by adding the folder that contains the sqlite3.dll file (the blender main directory) to the windows 'Path' variable.

This started happening on my computer, my script using sqlite3 would not work, and typing 'import sqlite3' in the python console would not work. This was happening in any .blend file (even when I loaded the factory defaults), running blender from various locations, and in several different versions of blender. If anyone else comes across this in a search before it is fixed, I managed to get it to import properly by adding the folder that contains the sqlite3.dll file (the blender main directory) to the windows 'Path' variable.
Member

Fixed in 2.77 and buildbots as of tomorrow

Fixed in 2.77 and buildbots as of tomorrow
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Sign in to join this conversation.
No Milestone
No project
No Assignees
8 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#46526
No description provided.