Skip to content

Fixes for building on python 3 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ otp_client_py
Python client for OTP

Install and run example app:
0. install python 2.7, along with zc.buildout and easy_install, git
1. git clone https://github.com/OpenTransitTools/otp_client_py.git
2. cd otp_client_py
3. buildout
4. bin/trip_planner "from=pdx&to=zoo" trimet p
1. install python 3.x, along with zc.buildout and git
2. git clone https://github.com/OpenTransitTools/otp_client_py.git
3. cd otp_client_py
4. buildout
5. buildout (workaround for issue during build)
6. bin/trip_planner "from=pdx&to=zoo" trimet p

This code has been tested to run TriMet's instance of OTP and SOLR geocoder. To get another OTP instance and/or SOLR geocoder up and running, see opentripplanner.org (v *.10.x) and geocoder project.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import sys

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -10,7 +10,7 @@
# 6/4/2020: 3 pins needed to make this build
'requests==2.21.0',
'decorator<5.0',
'SQLAlchemy<1.4',
'SQLAlchemy>=1.4',

'ott.utils',
'ott.geocoder',
Expand All @@ -25,7 +25,7 @@
'waitress==1.4.3',

'venusian==1.2.0',
'protobuf<3.0' # 3.x requires 'six>=1.9' ... but some other lib wants six=1.4
'protobuf<3.0' # 3.x requires 'six>=1.9' ... but some other lib wants six=1.4
]

extras_require = dict(
Expand Down