developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
475
results
Andrew Fletcher
•
When running python openai command, I was greeted with
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (5.2.0) doesn't match a supported version!This is because of different requests module installed by the OS and the python dependencies for your local installation.
Package Version
----------------------- --------------------
chardet 5.2.0
urllib3 1.25.8Usually this issue can be solved...
Andrew Fletcher
•
Set up your server
Begin by cleaning up your server environment. Do...
Andrew Fletcher
•
Python3
Error
ImportError: cannot import name 'soft_unicode' from 'markupsafe'...
Andrew Fletcher
•
Logging into the server, and there are packages to be updated. You know...
Andrew Fletcher
•
Update Ubuntu 20.04
To begin update the server using the command
sudo apt update...
Andrew Fletcher
•
Install the CKAN package
Begin by cleaning up your server environment. Do this by updating Ubuntu’s package index:
sudo apt updateNow you can install the packages that CKAN requires (including ‘git’, which will allow you to install CKAN extensions):
sudo apt install -y libpq5 redis-server nginx supervisorResponse
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
fontconfig-config...
Andrew Fletcher
•
If you're planning to create extensions, generating CKAN from source is the...
Andrew Fletcher
•
git clone git@bitbucket.org:{username}/{repo}.git
And I was unceremoniously...
Andrew Fletcher
•
Recently a client handed me code that runs an app through iOS and Android....
Andrew Fletcher
•
Resources - changing Drush
Type
Version
Drush (current)
11.6.0
Drush...
Andrew Fletcher
•
CKAN extensions - adding to your installation
Following the information on the CKAN site
Use the CKAN create command to create an empty extension:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activateThen check your location is
cd /usr/lib/ckan/default/srcSo you can execute the create command
ckan -c /etc/ckan/default/ckan.ini create -t ckanext ckanext-example_theme
Error – dev-requirements.txt
However, when running this command the response...
Andrew Fletcher
•
Each time a release is prepared for Google Play, the steps I work through are as...
Andrew Fletcher
•
Something I haven't had to do in a while is to change the name of a Git branch...
Andrew Fletcher
•
Post a NetSkope update, composer would fail when running any command that...
Andrew Fletcher
•
By default the maximum file upload size is set to 2MB. It is not a...