## Forum archive 2000-2006

### luoy@m... - the use of problem library, problem set

by Arnold Pizer -
Number of replies: 0
 the use of problem library, problem set topic started 7/16/2004; 11:26:05 AMlast post 7/23/2004; 3:09:23 PM
 luoy@m... - the use of problem library, problem set  7/16/2004; 11:26:05 AM (reads: 2561, responses: 8) I have downloaded rochester problem library from CVS. The problem is how I use them, like importing, creating problem set from it. I could see those library from my test course. Do I have to import them into MySQL DB? any detail instruction on this? I also tried the instruction in http://hobbes.la.asu.edu/webwork-stuff/WW-problem-library-instructions but received following error: Converts data from tagged pgfiles into mysql. Can't connect to data source , no database driver specified and DBI_DSN env var not set at ./loadDB.pl line 52 By looking into loadDB.pl, I found the quite possibly the code is broken because of the changes in data structure. ( it looks for $dbLayouts{sql}->{problem_library_classify}->{source};. But database.conf does not provide problem_library_classify). Thanks. Frank <| Post or View Comments |>  Michael Gage - Re: the use of problem library, problem set 7/16/2004; 1:00:47 PM (reads: 2793, responses: 0) I've written a response to the FAQ at http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/ProblemLibraries This shows how to use a directory, such as the rochester problem library as a source of problems. Setting up the second kind of libary, using the SQL database, I will leave for John Jones to respond to. <| Post or View Comments |>  luoy@m... - Re: the use of problem library, problem set 7/16/2004; 1:34:47 PM (reads: 2828, responses: 1) Mike, I followed your instrcution, but still received this error, and it tried to connectted to MySQL although both global.conf and course.conf specify gdbm as backend. Error message Cannot connect to problem library database at /opt/webwork2/lib/WeBWorK/Utils/ListingDB.pm line 43. ------------------------------------------------------------ Additonal warnings DBI connect('ProblemLibrary','webworkRead',...) failed: Access denied for user: 'webworkRead@localhost' (Using password: NO) at /opt/webwork2/lib/WeBWorK/Utils/ListingDB.pm line 41 Also I could not find the section that has$courseFiles{problibs}, as indicated in your instruction. BTW, I am using webwork PR5-trial2. Thanks <| Post or View Comments |>

 John Jones - Re: the use of problem library, problem set  7/16/2004; 2:24:04 PM (reads: 2809, responses: 0) You are right that loadDB is currently incompatible with webwork. I expect the next version to not have loadDB at all, so I haven't updated it. I apologize for sending people to download it - I should have realized that it wouldn't work. When this is resolved, I will post to the discussion board with instructions. John <| Post or View Comments |>

 Michael Gage - Re: the use of problem library, problem set  7/16/2004; 4:20:47 PM (reads: 2811, responses: 0) Error messages Error detected while loading /opt/pg/macros/PGchoicemacros.pl: PG_restricted_eval detected error at line 309 of file /opt/pg/macros/PGchoicemacros.pl 'require' trapped by operation mask at /usr/lib/perl5/5.8.0/strict.pm line 19, chunk 1. Compilation failed in require at /opt/pg/lib/WeBWorK/PG/Translator.pm line 76, chunk 1. BEGIN failed--compilation aborted at (eval 1436) line 4, chunk 1. The calling package is main I believe that this problem is related to using perl 5.8.0 instead of 5.6.x and is related to the use of the "be_strict" pragma (analogous to use strict; in perl) which helps catch bad coding practices. I seem to remember something about using ww_strict to get around this, but I don't have details right at the moment. Perhaps someone else using 5.8.0 can help. (Look at the file pg/lib/ww_strict.pm for ideas. I recall that a new version of Carp had an embedded 'require' which caused trouble. In order to get something to work, you can comment out lines involving be_strict for now. <| Post or View Comments |>