Trinotate / Trinotate.github.io

web documentation for Trinotate
47 stars 17 forks source link

DBD::SQLite problem running Build_Trinotate_Boilerplate_SQLite_db.pl #56

Open Brent-Saylor-Canopy opened 3 years ago

Brent-Saylor-Canopy commented 3 years ago

Hi,

I am trying to install Trinotate on my system and I'm having a problem running the Build_Trinotate_Boilerplate_SQLite_db.pl script.

I get the following error: `/Build_Trinotate_Boilerplate_SQLite_db.pl Trinotate -- Skipping CMD: wget "ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.dat.gz", checkpoint exists. -- Skipping CMD: /opt/Trinotate-Trinotate-v3.2.2/admin/util/EMBL_swissprot_parser.pl uniprot_sprot.dat.gz Trinotate, checkpoint exists. -- Skipping CMD: mv uniprot_sprot.dat.gz.pep uniprot_sprot.pep, checkpoint exists.

Can you provide any assistance?

Thanks, Brent

brianjohnhaas commented 3 years ago

hi,

I've sometimes come across this sort of thing when I've had different versions of perl available on my system, and the module installation was done for one and not the other.

Try

which perl

and then run that version of perl like so:

/path/to/this/perl -MCPAN -e shell install DBD::SQLite exit

if that goes well, then try running Trinotate again and hopefully it's fine.

best,

~b

On Fri, Apr 23, 2021 at 11:47 AM Brent-Saylor-Canopy < @.***> wrote:

Hi,

I am trying to install Trinotate on my system and I'm having a problem running the Build_Trinotate_Boilerplate_SQLite_db.pl script.

I get the following error: `/Build_Trinotate_Boilerplate_SQLite_db.pl Trinotate -- Skipping CMD: wget " ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.dat.gz", checkpoint exists. -- Skipping CMD: /opt/Trinotate-Trinotate-v3.2.2/admin/util/EMBL_swissprot_parser.pl uniprot_sprot.dat.gz Trinotate, checkpoint exists. -- Skipping CMD: mv uniprot_sprot.dat.gz.pep uniprot_sprot.pep, checkpoint exists.

  • Running CMD: /opt/Trinotate-Trinotate-v3.2.2/admin/util/EMBL_dat_to_Trinotate_sqlite_resourceDB.pl --sqlite Trinotate.sqlite --create CMD: /opt/Trinotate-Trinotate-v3.2.2/admin/util/init_Trinotate_sqlite_db.pl --sqlite Trinotate.sqlite install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @inc https://github.com/inc (you may need to install the DBD::SQLite module) @.*** https://github.com/inc contains: /opt/Trinotate-Trinotate-v3.2.2/admin/util/../../PerlLib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 6) line 3. Perhaps the DBD::SQLite perl module hasn't been fully installed, or perhaps the capitalisation of 'SQLite' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Mem, Proxy, Sponge, mysql. at /opt/Trinotate-Trinotate-v3.2.2/admin/util/init_Trinotate_sqlite_db.pl line 53. Error, cmd: /opt/Trinotate-Trinotate-v3.2.2/admin/util/init_Trinotate_sqlite_db.pl --sqlite Trinotate.sqlite died with ret 512 at /opt/Trinotate-Trinotate-v3.2.2/admin/util/EMBL_dat_to_Trinotate_sqlite_resourceDB.pl line 145. Error, cmd: /opt/Trinotate-Trinotate-v3.2.2/admin/util/EMBL_dat_to_Trinotate_sqlite_resourceDB.pl --sqlite Trinotate.sqlite --create died with ret 512 at /opt/Trinotate-Trinotate-v3.2.2/admin/../PerlLib/Pipeliner.pm line 102. Pipeliner::run(Pipeliner=HASH(0x557e1bc87b88)) called at ./Build_Trinotate_Boilerplate_SQLite_db.pl line 120 ` I have tried reinstalling both SQLite and DBD:SQLite (via both cpan and conda) and it doesn't seem to help. I also tried aliasing my sqlite command (sqlite3) to sqlite and SQLite to see if the capatilization was the issue, but that did't work either.

Can you provide any assistance?

Thanks, Brent

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Trinotate/Trinotate.github.io/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRKXZFWWVTOLGYSUZH7KTTKGJALANCNFSM43O4K7NQ .

--

Brian J. Haas The Broad Institute http://broadinstitute.org/~bhaas http://broad.mit.edu/~bhaas

Brent-Saylor-Canopy commented 3 years ago

Thanks for the suggestion. I tried the which and it looks like only the one version of perl is in my environment. I tried installing DBD::SQLite using the absolute path to that perl executable, but I got the same error message after the install.

brianjohnhaas commented 3 years ago

Sorry, I'm not sure. If you have access to tech support through a local university or company, IT folks can usually figure these things out.

On Fri, Apr 30, 2021 at 11:58 AM Brent-Saylor-Canopy < @.***> wrote:

Thanks for the suggestion. I tried the which and it looks like only the one version of perl is in my environment. I tried installing DBD::SQLite using the absolute path to that perl executable, but I got the same error message after the install.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Trinotate/Trinotate.github.io/issues/56#issuecomment-830193818, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZRKXYDEMSOWE3RXZFTHYLTLLHR3ANCNFSM43O4K7NQ .

--

Brian J. Haas The Broad Institute http://broadinstitute.org/~bhaas http://broad.mit.edu/~bhaas

matevzl533 commented 1 year ago

Hi, if anyone gets a similar error - got the same error with v4.0.0. and solved it with the answer above answer from brianjohnhaas. Best, Matevz