-
Notifications
You must be signed in to change notification settings - Fork 53
You are probably missing some python packages. You should install the ones listed in requirements.txt using PIP. Unfortunately some packages require additional Ubuntu packages.
sudo apt-get install python-dev libpq-dev libmysqlclient-dev
sudo pip install -r /opt/moodle-sdk/requirements.txt
When a new major version is released, MDK has to be updated to reflect the new master version. Usually a new MDK release would come close to a Moodle release. If you cannot wait, here is how to set master to Moodle 2.8:
mdk doctor --branch
Add --fix to checkout the right branches if they are incorrect.
mdk update --upgrade --all
mdk config set masterBranch <newMasterNumber>
mdk config set masterBranch 28
MDK is unaware of the name of your instances and always guesses the version you are using from version.php. To fix the problem simply checkout the stable branch for the version you want.
git checkout master
git checkout MOODLE_27_STABLE
For master, you might need to reset hard to the origin branch.
mdk update -c
git checkout master
git fetch `mdk config show upstreamRemote`
git reset --hard `mdk config show upstreamRemote`/master
Yes, you will need the python package keyring.
Using Ubuntu/Debian:
sudo apt-get install python-keyring
Using MacOS:
sudo easy_install pip
sudo pip install keyring
mdk pull --no-merge MDL-12345
It might have happened because your Firefox was automatically updated, which often means that the version of Selenium that MDK cached is outdated. Run the following command to force the download of the latest version of Selenium.
mdk behat --selenium-download
Add a file called .noupgrade in the wwwroot of your Moodle instance. Now, when running mdk upgrade --all this instance will be skipped.
Usually the reason is that you do not have a database associated with the user that attempts to connect to PostgreSQL. MDK will not write anything in this database, it is just required for the connection to work.