django-billing icon indicating copy to clipboard operation
django-billing copied to clipboard

Can't find pip distribution

Open montaro opened this issue 8 years ago • 6 comments

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

montaro avatar Feb 26 '17 21:02 montaro

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 avatar Feb 27 '17 20:02 gabrielgrant

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.

gabrielgrant avatar Feb 27 '17 20:02 gabrielgrant

Thanks! Best of luck.

montaro avatar Feb 28 '17 10:02 montaro

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 avatar Dec 14 '18 15:12 iris9112

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)

iris9112 avatar Dec 14 '18 19:12 iris9112

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

gabrielgrant avatar Dec 19 '18 22:12 gabrielgrant