Cannot find reference 'UPS Connection' in __init__.py
Closed this issue · 4 comments
This is my first attempt at importing a library from GitHub and actually my first program in Python, so I apologize if I am overlooking something very simple. Any advice would be appreciated.
I am using python-3.7.3-amd64 and the latest version of PyCharm.
I believe I did the steps correctly when I imported ClassicUPS into PyCharm by creating a project -> File -> Settings -> (project name) -> Project Interpreter -> (+ symbol) -> Search for ClassicUPS -> Install.
When I attempt to run the first segment of code, I get the following error:
Cannot find reference 'UPS Connection' in init.py
Code segment:
from ClassicUPS import UPSConnection
# Credentials obtained from the UPS website
ups = UPSConnection(license_number,
user_id,
password,
shipper_number, # Optional if you are not creating a shipment
debug=True) # Use the UPS sandbox API rather than prod
This project is not adjusted to python3. I've got the same error with python 3.6
Python 2.7 is ok.
Project needs to be adjusted to work with python3
@Helix31522 I've created python3 version. MR: #16
You can install this package from sources based on my fork:
pip uninstall ClassicUPS
pip install -e git://github.com/akolpakov/ClassicUPS.git#egg=ClassicUPS