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

Py3 compat / load as module #99

Closed
wants to merge 1 commit into from

Conversation

amalani
Copy link

@amalani amalani commented Mar 10, 2022

  • When executing as a module in Python3 and executing as python3 -m sqlite_web , execution fails with
    from sqlite_web import main ImportError: cannot import name 'main' from 'sqlite_web'

  • Updated readme

* When executing as a module in Python3 and executing as python3 -m sqlite_web <db>, execution fails with
from sqlite_web import main ImportError: cannot import name 'main' from 'sqlite_web'

* Updated readme
coleifer added a commit that referenced this pull request Mar 10, 2022
@coleifer
Copy link
Owner

coleifer commented Mar 10, 2022

I've merged a patch to __main__.py but am going to hold off on changing the readme for now.

Installing via pip ensures that sqlite_web is available as an "executable" so that should remain the preferred way for users to run this.

@coleifer coleifer closed this Mar 10, 2022
@amalani
Copy link
Author

amalani commented Mar 10, 2022

Sounds good, thanks Charles!

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

Successfully merging this pull request may close these issues.

None yet

2 participants