Open montaro opened 7 years ago
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
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.
Thanks! Best of luck.
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.)
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)
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
pip fails to find
django-billing
, is it a dead project?