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

Can't find pip distribution #5

Open
montaro opened this issue Feb 26, 2017 · 6 comments
Open

Can't find pip distribution #5

montaro opened this issue Feb 26, 2017 · 6 comments

Comments

@montaro
Copy link

montaro commented Feb 26, 2017

pip fails to find django-billing, is it a dead project?

@gabrielgrant
Copy link
Owner

Hey, thanks for the interest. I haven't had any projects using this for the past few years, and so haven't been actively maintaining it. It should still be install-able directly from the github repo:

pip install git+git://github.com/gabrielgrant/python-pricing.git
pip install git+git://github.com/gabrielgrant/django-billing.git

But no guarantees on how well it's working with current Django :P

@gabrielgrant
Copy link
Owner

I actually have a project coming up in the next few months that's going to require this type of somewhat-complex billing-and-quotas functionality, though, so there's a reasonable chance I'll either be resurrecting this project again, or looking for other solutions and officially deprecating it if there's something better out there.

@montaro
Copy link
Author

montaro commented Feb 28, 2017

Thanks! Best of luck.

@iris9112
Copy link

Hello Gabriel. I tried install django billing, but I have this error.
I upgrade setuptools. I do not know if it's a beginner's mistake, if it's something obvious, please excuse me.
Do you have any idea about the solution?

Complete output from command python setup.py egg_info:
   running egg_info
   creating pip-egg-info\django_billing.egg-info
   writing pip-egg-info\django_billing.egg-info\PKG-INFO
   writing dependency_links to pip-egg-info\django_billing.egg-info\dependency_links.txt
   writing namespace_packages to pip-egg-info\django_billing.egg-info\namespace_packages.txt
   writing requirements to pip-egg-info\django_billing.egg-info\requires.txt
   writing top-level names to pip-egg-info\django_billing.egg-info\top_level.txt
   writing manifest file 'pip-egg-info\django_billing.egg-info\SOURCES.txt'
   error: Namespace package problem: billing is a namespace package, but its
   __init__.py does not call declare_namespace()! Please fix it.
   (See the setuptools manual under "Namespace Packages" for details.)

@iris9112
Copy link

The solution was change in file init.py this lines:

# import pkgutil
# __path__ = pkgutil.extend_path(__path__, __name__)

For this line:
import('pkg_resources').declare_namespace(name)

@gabrielgrant
Copy link
Owner

Cool, thanks for the updated solution. Seems like this must have been a recent(ish) change in setuptools. Taking a look at the PR (#6) now

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

No branches or pull requests

3 participants