Package Installation
Dependencies
The Python connectors require that Python 3.10 or newer be installed.
Installation
The CData Python Connector for ShipStation is available as a WHL file for Windows, Linux, and Mac. Each connector is built using the Python 3.10 Stable ABI (indicated by the abi3 tag in the filename), so a single wheel supports any Python 3.10 or newer installation — there is no need to match your exact Python minor version. Use the "pip install" command with the appropriate WHL file for your platform.Windows:
pip install cdata_shipstation_connector-26.0.9655-cp310-abi3-win_amd64.whl
Linux:
pip install cdata_shipstation_connector-26.0.9655-cp310-abi3-linux_x86_64.whl
macOS:
pip install cdata_shipstation_connector-26.0.9655-cp310-abi3-macosx_12_0_arm64.whl
The macOS wheel supports arm64 (Apple Silicon) architectures only on macOS 12 and newer.
Regardless of the environment, certain distributions might require that the "pip3 install" command be used instead, to differentiate from a Python 2 distribution that might exist already. After installation, confirm whether the connector is successfully installed by running the "pip list" command. If "cdata_shipstation_connector" is present in the list output by the command, then the installation was successful.
Upgrading
When upgrading, "pip install" does not automatically clean up old JRE files. To avoid leftover files that could cause JVM errors, uninstall the previous version before installing the new one.
Licensing
After the installation is complete, a separate step is needed to activate a license for the connector. Among the CData assets in the distribution's site packages, there is an install-license tool that activates this license. From within the distribution's site-packages folder, after navigating to the "cdata/installlic_shipstation" folder, simply use a command like the below to activate the license. Omitting the <key> argument activates a trial license:
- Windows:
./install-license.exe <key>
- Linux / Mac:
./install-license.sh <key>
Sometimes, file access issues may cause pip to install the connector in a fallback file path that is not the python distribution's main or primary site-packages location. This can make it difficult to find where the connector was installed, and from there, the license activator. In that event, this python script below will print out the full file path of the connector's native file. This file will be stored in the mentioned cdata folder, from which the installlic_shipstation folder is trivial to find:
import os import cdata.shipstation path = os.path.abspath(cdata.shipstation.__file__) print(path)
Uninstallation
If the connector needs to be uninstalled for any reason, do so by running the pip uninstall command, as in the example below:
pip uninstall cdata-shipstation-connector