Log in

Troubles installing spirit

  • 14 Mar

Hello, my goal is to install spirit and adapt it to my existing django project.

I followed all the instructions in https://github.com/nitely/Spirit/tree/master/example
except I had to run the "activate.bat" file instead of using the "source" command as I'm on Windows 8.
Everything went well until I entered the "python manage.py spiritinstall" command.
The following error occured:
spiritinstall error.jpg

My guess was that I needed to install pysqlite2 so I tried "pip install pysqlite" and got the following error:
pysqlite error.jpg

I'm not sure how to interpret that...
By the way, my DB is PostreSQL.

nitelyEsteban Castro Borsani
  • 14 Mar

Ah, Windows

Is this windows 10? I think there is a way to run a sort of ubuntu command line [1] without running a VM. You may wanna try that. If that doesn't work it's usually best to install packages from the unofficial Christoph Gohlke's repo[2]. Just make sure you are installing a binary compatible with your python version (i.e: cp27 means python 2.7, cp36 means python 3.6).

Otherwise I have no idea. I'm not a Windows user . However, since the error is related to sqlite and Django in general you may have better luck asking in the django user's mailing list or may be on stackoverflow.

[1] https://blogs.windows.com/buildingapps/2016/07/22/fun-with-the-windows-subsystem-for-linux/
[2] http://www.lfd.uci.edu/~gohlke/pythonlibs/

nitelyEsteban Castro Borsani
  • 14 Mar

By the way, my DB is PostreSQL.

Why would you need pysqlite then? My guess is the settings.py is configured to use sqlite. Just change it to postgresql.

Hello, my goal is to install spirit and adapt it to my existing django project.

If you have a running django project, then use the same DATABASES setting.

rag
This comment was deleted.
Reply