Closed simojo closed 11 months ago
Hi @simojo, thanks for bringing this problem to our attention!
It may be possible for us to not use the pysqlite3
dependency and still get the main features of chasten
to work correctly. This could potentially resolve this issue and ensure that it is easier for others to quickly and easily install the tool.
With that said, more testing would need to be done to ensure that the features of pysqlite3
are not absolutely needed. My recollection is that the package was added so that we could use some SQLite 3 extensions that were used by one or more of the datasette plugins!
Ultimately, we need to task someone on on team with investigating this issue on three platforms and ensuring that we can either (a) write installation instructions for every platform to ensure a smooth install or (b) remove this dependency and make installation easier by default.
Finally, it is worth noting that we cannot remove some of the dependencies for the chasten
tool! For instance, we need to keep the dependency on Datasette because that it what we use to create the web-based dashboard of the data that we collect.
I ran into a similar issue. After running "pipx install chasten", I received the following error:
Fatal error from pip prevented installation. Full pip output in file:
/home/chhetri01/.local/pipx/logs/cmd_2023-08-30_12.33.49_pip_errors.log
pip failed to build package:
pysqlite3
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
src/blob.h:4:10: fatal error: sqlite3.h: No such file or directory
error: command '/usr/bin/gcc' failed with exit code 1
Error installing chasten.
I solved the issue by running the following command:
sudo apt-get install -y libsqlite3-dev
After installing that dependency, I ran pipx install chasten
to install chasten, then I cloned the chasten repo, and finally ran poetry install
.
I did not run into the same issue presented by @simojo after running the poetry install
command using this approach.
Hi, if you have experienced a similar issue with MacOS or Windows, can you please share more details here?
What is the status on this issue? Can we either resolve it, document a fix, link it to another issue or close it forthwith?
If PR #47 is agreed to pass, it will close this issue and no documentation is needed. However, if we decide PR #47 cannot be merged, then this issue will need to be looked at to create documentation during the install steps. I will trigger PR #47 to automatically close this issue if passed.
PR #47 was merged. Can this issue be closed?
@hayleepierce yes, this can be closed.
After running
poetry install
in the root directory of this project, I encoutered the following error:The same error is repeated numerous times in the output, because it propagates to many parts of the project. I'm leaving out the other repeated error messages. The last blurb would indicate to me that the problem is because poetry can't find the development headers for
sqlite3
:This was solved by the following:
Solution (NixOS)
Install
pkgs.sqlite.dev
to add the directory holdingsqlite3.h
to$CMAKE_INCLUDE_DIRS
.Solution (Ubuntu)
Install
libsqlite3-dev
to add the directory holdingsqlite3.h
to$CMAKE_INCLUDE_DIRS
.Proposed solution
Either include in documentation that
sqlite3
dev files are required, or automate this.