Skip to content
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

Fix namespace collision on newer setuptools #9

Closed
wants to merge 1 commit into from
Closed

Fix namespace collision on newer setuptools #9

wants to merge 1 commit into from

Conversation

clarkf
Copy link

@clarkf clarkf commented Feb 3, 2016

setuptools >= 19.3 updated the way that paths are handled, causing a collision between chargebee.http and http.client (within the context of the chargebee package). I believe
7de983b7 was the breaking commit.

This came about because Heroku's Python buildpack recently updated to setuptools==19.6, causing all installations to fail on all (new) Heroku apps (see heroku/heroku-buildpack-python@b1d1a7c).

The solution here is to rename charegbee.http. In this PR, I've renamed it to chargebee.http_request, which is a little more verbose, but prevents installation failures (confirmed on Python 3.4.x with setuptools 19.3, 19.4, 19.5 and 19.6). I'd be happy to change it to something else if desired.

Thanks!

On setuptools >= 19.3 installation failed due to relative imports being
handled differently.  Importing `http.client` was supposed to import
the standard library HTTP client, but was instead importing this
package's `http` module.
vaiporwal added a commit that referenced this pull request Mar 16, 2016
Namespace collision for 'http' with Python dependency setuptools is fixed. See pull request: #9
@vaiporwal
Copy link
Contributor

We have fixed this issue in latest release.

@vaiporwal vaiporwal closed this Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants