ImportError _sqlite3 on Linux

107 views
Skip to first unread message

Mahendra Gangaiwar

unread,
Oct 13, 2023, 9:54:07 AM10/13/23
to gaffer-dev
Hi gaffer-dev team,

On Linux build we're getting sqlite3 import error using Gaffer-1.3.4.0, it seems to be working fine in Windows.
```
import sqlite3
ModuleNotFoundError : line 1 : No module named '_sqlite3'

  File "/rez_packages/gaffer/1.3.4.0/platform-linux/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/rez_packages/gaffer/1.3.4.0/platform-linux/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/rez_packages/gaffer/1.3.4.0/platform-linux/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
  File "/rez_packages/gaffer/1.3.4.0/platform-linux/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
  File "/rez_packages/gaffer/1.3.4.0/platform-linux/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
```


It would be amazing if its something can be fixed in upcoming release.

Thank you,
Mahendra

Murray Stevenson

unread,
Oct 18, 2023, 2:12:57 PM10/18/23
to gaffer-dev
Hi Mahendra,

This will require an update to the build container that we use to make Linux releases. Such a change likely won’t arrive until Gaffer 1.4.0.0. 

Until then, I’ve built what should be the missing file from my local development environment. If you could try extracting this attachment and copying the .so to the `lib/python3.7/lib-dynload` directory within any Gaffer 1.3.x.x Linux release, I expect it should allow you to import sqlite3...

Cheers,

Murray

_sqlite3.cpython-37m-x86_64-linux-gnu.zip

Mahendra Gangaiwar

unread,
Oct 19, 2023, 1:11:07 AM10/19/23
to gaffe...@googlegroups.com
Thanks Murray, it's working perfectly!

-Mahendra

--
You received this message because you are subscribed to a topic in the Google Groups "gaffer-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gaffer-dev/8gOMzWMWOkk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gaffer-dev/553742c1-4402-4e5f-a0c7-871643d84b89n%40googlegroups.com.

Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
Reply all
Reply to author
Forward
0 new messages