Open debby-a opened 5 years ago
You should post the exact pyuniprot.set_connection('sqlite:////some/path')
command you are using here. I had a similar issue, and it turned out that for /some/path
, you need a connection string like 'sqlite:////some/path
- note the THREE slashes before the absolute path.
I had this problem when I was not creating the database properly in my db command line window (did not place the ; at the end of my sql statements, so I never actually entered the statement).
Hi,
I'm super new to programming so I believe I'm missing something VERY obvious, so I apologize in advance for this question. In case these are relevant, I'm using a Mac and the PyCharm IDE. I downloaded the pyUniProt via the project interpreter package install. I don't want to bother downloading MySQL/MariaDB, so I plan to use SQLlite. So I've put in import pyuniprot and hoped to just proceed to update (although I have also tried with pyuniprot.set_mysql_connection and gotten the same error). When I put in pyuniprot.update(force_download=True, taxids=[9606, 10090, 10116]) or just pyuniprot.update() I get the below error. Sorry to post with such an elementary question, but there must be something I'm missing. Thanks!!