Skip to main content

How to generate a new private key (.pepk)

How to generate a new private key and submit it to Google Play for signing your Android app, you can follow these steps:

Generate a New Keystore (Private Key)

You can generate a new keystore file (which includes the private key) using the keytool utility that comes with the Java Development Kit (JDK). Open a command prompt or terminal and run the following command to generate a new keystore:

Solving the errors in running Open AI on Ubuntu

While the default version on Ubuntu 20.04 for Python is 3.8, I've added Python 3.11.5 (latest version).

Errors

GPTSimpleVectorIndex is deprecated

Attempting to run python3.11 model-ai.py and I'm seeing the following response

npm package management

A summary of Node package commands

Short cut commands

npm install <package>

npm i <package>

npm install --save <package>

npm i -S <package>

npm install --save-dev <package>

npm i -D <package>

npm install --global <package>

Adding PIP packages to the Python 3.11.x

Changes to the Python3 package list post installing packages each of the packages list in the column headers

Update Python on Ubuntu

Ubuntu 20.04 comes with Python 3.8 installed.  If you run the update script, you'll be informed that the latest version of Python is running.  But here is the kicker, the actual latest version is currently 3.11.6... see https://www.python.org/downloads/source/

Use the following commands to download the Python 3.11.6 source code

None of PyTorch, TensorFlow >= 2.0, or Flax have been found

Python3 error 

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

You need one of them PyTorch or Tensorflow.  You can check if tensorflow is installed or you can reinstall it

RequestsDependencyWarning: urllib3 (1.25.8) or chardet (5.2.0) doesn't match a supported version!

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.

Could not get lock /var/lib/apt/lists/lock

Logging into the server, and there are packages to be updated.  You know the standard Ubuntu / Linux response

5 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

3 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

Followed by the action

ImportError: cannot import name 'soft_unicode' from 'markupsafe'

Python3

Error

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/{project}/.local/lib/python3.8/site-packages/markupsafe/__init__.py)

 

Update all PIP packages

pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U

However, this failed due to 

Subscribe to