I am trying to install the Open Problem Library. I've followed the instructions in the INSTALL file which came with webwork-open-problem-library folder, but get an error message when I try to run "OPL-update":
Use of uninitialized value $WeBWorK::Constants::WEBWORK_DIRECTORY in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/Constants.pm line 38.
syntax error at /opt/webwork/webwork2/bin/OPL-update line 111, near "else"
Missing right curly or square bracket at /opt/webwork/webwork2/bin/OPL-update line 829, at end of line
Execution of /opt/webwork/webwork2/bin/OPL-update aborted due to compilation errors.
wwadmin@docralphv:/opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary$ /opt/webwork/webwork2/bin/OPL-update
Use of uninitialized value $WeBWorK::Constants::WEBWORK_DIRECTORY in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/Constants.pm line 38.
syntax error at /opt/webwork/webwork2/bin/OPL-update line 111, near "else"
Missing right curly or square bracket at /opt/webwork/webwork2/bin/OPL-update line 829, at end of line
Execution of /opt/webwork/webwork2/bin/OPL-update aborted due to compilation errors.
I checked out the open problem library last week using github.
Thanks --rac
Jason
Hi,
I tried the newer version of OPL-update and it gave me the same (or similar) error message as before. I've switched from the **-dev version to the stable version of webwork and pg. I ran this version of OPL-update with the address for the NationalProblemLibrary and it gave the errir below and then proceeded to update from the NationalProblemLibrary address. Next, I tried running OPL-update with the address for the OpenProblemLibrary in the conf files. I'm sending the error message it gave. Now, in a course, I can access problems in the library, but when I tried to do an Advanced Search, I got another error message which I've appended at the end of this note. By the way, I DID change the link in the course templates folder to the OpenProblemLibrary.
Thanks for your help --rac
-------------------Error message from running OPL-update with the address for OpenProblemLibrary in the conf files
Use of uninitialized value $WeBWorK::Constants::WEBWORK_DIRECTORY in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/Constants.pm line 38.
Undefined subroutine &main::include called at /opt/webwork/webwork2/bin/OPL-update line 102.
--------------------Error message from the Library browser doing an advanced search. After clicking on the Textbook option-----
Warning messages
Error messages
DBD::mysql::db selectall_arrayref failed: Incorrect table name '' at /opt/webwork/webwork2/lib/WeBWorK/Utils/ListingDB.pm line 381.
Call stack
The information below can help locate the source of the problem.
in WeBWorK::Utils::ListingDB::getDBListings called at line 399 of /opt/webwork/webwork2/lib/WeBWorK/Utils/ListingDB.pm
in WeBWorK::Utils::ListingDB::countDBListings called at line 614 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::browse_library_panel2adv called at line 431 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::browse_library_panel called at line 799 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::make_top_row called at line 1374 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::body called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
in WeBWorK::Template::template called at line 496 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::content called at line 200 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 371 of /opt/webwork/webwork2/lib/WeBWorK.pm
Warning messages
Error messages
DBD::mysql::st execute failed: Table 'webwork.OPL_DBsubject' doesn't exist at /opt/webwork/webwork2/lib/WeBWorK/Utils/ListingDB.pm line 243.
Call stack
The information below can help locate the source of the problem.
in WeBWorK::Utils::ListingDB::getAllDBsubjects called at line 486 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::browse_library_panel2 called at line 430 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::browse_library_panel called at line 799 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::make_top_row called at line 1374 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
in WeBWorK::ContentGenerator::Instructor::SetMaker::body called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
in WeBWorK::Template::template called at line 496 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::content called at line 200 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 371 of /opt/webwork/webwork2/lib/WeBWorK.pm
I think I had the same problem a few weeks ago until Jason Aubrey suggested adding or modifying a line in /opt/webwork/webwork2/conf/defaults.config to read:
$problemLibrary{version} = "2.5";
After making this change, run the OPL-update script in /opt/webwork/webwork2/bin .
The reason why having such a line in localOverrides.conf does not fix the problem is the order in which the files localOverrides.conf and defaults.config are read.
Let us know if this fixes the problem.
Good luck!
Paul Pearson
The idea is that no one should ever edit defaults.config.
Does putting this in site.conf work? Maybe the OPL-update script is not getting information from localOverrides.conf? As a temporary fix putting this in defaults.conf is OK, but not as a permanent fix.
Arnie