throttle icon indicating copy to clipboard operation
throttle copied to clipboard

pip install throttle does not work

Open stromnet opened this issue 10 years ago • 4 comments

$ pip install throttle Downloading/unpacking throttle Could not find any downloads that satisfy the requirement throttle Cleaning up... No distributions at all found for throttle Storing debug log for failure in /Users/johan/.pip/pip.log

Debug log as follows:

/Users/johan/.pyenv/versions/wcj2/bin/pip run on Thu Sep 18 14:19:02 2014 Downloading/unpacking throttle Getting page https://pypi.python.org/simple/throttle/ URLs to search for versions for throttle:

  • https://pypi.python.org/simple/throttle/ Analyzing links from page https://pypi.python.org/simple/throttle/ Could not find any downloads that satisfy the requirement throttle Cleaning up... Removing temporary dir /Users/johan/.pyenv/versions/wcj2/build... No distributions at all found for throttle Exception information: Traceback (most recent call last): File "/Users/johan/.pyenv/versions/wcj2/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/Users/johan/.pyenv/versions/wcj2/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/Users/johan/.pyenv/versions/wcj2/lib/python2.7/site-packages/pip/req.py", line 1177, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "/Users/johan/.pyenv/versions/wcj2/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement raise DistributionNotFound('No distributions at all found for %s' % req) DistributionNotFound: No distributions at all found for throttle

stromnet avatar Sep 18 '14 12:09 stromnet

Yes

$ pip install throttle
Downloading/unpacking throttle
  Could not find any downloads that satisfy the requirement throttle
Cleaning up...
No distributions at all found for throttle

Looks like the library is unmaintained.

Also, https://github.com/rbarrois/throttle/blob/master/throttle/api.py:

    def get_bucket(self, key, rate=None, capacity=None, **kwargs):
        """Fetch a Bucket for the given key.
        rate and capacity might be overridden from the Throttler defaults.
        Args:
            rate (float): Units regenerated by second, or None to keep
                Throttler defaults
            capacity (int): Maximum units available, or None to keep Throttler
                defaults
        """
        return buckets.Bucket(
            key=key,
            rate=rate or self.rate,
            capacity=capacity or self.capacity,
            storate=self.storate,
            **kwargs)

There is not self.storate attribute in the class. Is this code even working?

warvariuc avatar Oct 30 '14 05:10 warvariuc

Don't think I ever got it working, no. Ended up throwing it out and using an adapted version of http://code.activestate.com/recipes/578659-python-3-token-bucket/ instead

stromnet avatar Oct 30 '14 07:10 stromnet

Sorry, I'm no longer maintaining this project which was just a "proof of concept" in the beginning :/

rbarrois avatar Oct 30 '14 09:10 rbarrois

how about you delete the throttle package in pypi, so someone can upload a relevant package that offers similar or identical functionality?

advance512 avatar Jul 25 '17 16:07 advance512