Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with pysqlite2 import #24

Closed
xoriole opened this issue Jan 18, 2018 · 0 comments
Closed

Problem with pysqlite2 import #24

xoriole opened this issue Jan 18, 2018 · 0 comments

Comments

@xoriole
Copy link
Contributor

xoriole commented Jan 18, 2018

IPv8 fails to run on MacOS with following stacktrace:

  File "ipv8.py", line 5, in <module>
    from twisted.plugins.ipv8_plugin import Options, service_maker
  File "/Users/sandippandey/tudelft/personal/py-ipv8/twisted/plugins/ipv8_plugin.py", line 18, in <module>
    from ipv8.attestation.identity.community import IdentityCommunity
  File "/Users/sandippandey/tudelft/personal/py-ipv8/ipv8/attestation/identity/community.py", line 6, in <module>
    from ..trustchain.community import TrustChainCommunity
  File "/Users/sandippandey/tudelft/personal/py-ipv8/ipv8/attestation/trustchain/community.py", line 11, in <module>
    from .database import TrustChainDB
  File "/Users/sandippandey/tudelft/personal/py-ipv8/ipv8/attestation/trustchain/database.py", line 6, in <module>
    from ...database import Database
  File "/Users/sandippandey/tudelft/personal/py-ipv8/ipv8/database.py", line 18, in <module>
    import pysqlite2.dbapi2 as sqlite3
  File "/Users/sandippandey/tudelft/viro/lib/python2.7/site-packages/pysqlite2/dbapi2.py", line 28, in <module>
    from pysqlite2._sqlite import *
ImportError: dlopen(/Users/sandippandey/tudelft/viro/lib/python2.7/site-packages/pysqlite2/_sqlite.so, 2): Symbol not found: _sqlite3_enable_load_extension
  Referenced from: /Users/sandippandey/tudelft/viro/lib/python2.7/site-packages/pysqlite2/_sqlite.so
  Expected in: flat namespace
 in /Users/sandippandey/tudelft/viro/lib/python2.7/site-packages/pysqlite2/_sqlite.so

The problem is with pysqlite2 import
import pysqlite2.dbapi2 as sqlite3

For my case, using sqlite3 resolves the issue
from sqlite3 import dbapi2 as sqlite3

egbertbouman pushed a commit to egbertbouman/py-ipv8 that referenced this issue Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant