jlfwong / flask_debugtoolbar_lineprofilerpanel

Line Profiler Panel for Flask Debug Toolbar
67 stars 12 forks source link

Can no longer install from pip #4

Closed ohlookemus closed 11 years ago

ohlookemus commented 11 years ago
pip install flask-debugtoolbar-lineprofilerpanel
Downloading/unpacking flask-debugtoolbar-lineprofilerpanel
  Downloading Flask-DebugToolbar-LineProfilerPanel-0.0.6.tar.gz
  Running setup.py egg_info for package flask-debugtoolbar-lineprofilerpanel

Requirement already satisfied (use --upgrade to upgrade): Flask-DebugToolbar in /Users/congqin/PythonVEs/fantex-global/lib/python2.7/site-packages (from flask-debugtoolbar-lineprofilerpanel)
Downloading/unpacking line-profiler (from flask-debugtoolbar-lineprofilerpanel)
  Could not find a version that satisfies the requirement line-profiler (from flask-debugtoolbar-lineprofilerpanel) (from versions: 1.0b1, 1.0b2, 1.0b3)
Cleaning up...
No distributions matching the version for line-profiler (from flask-debugtoolbar-lineprofilerpanel)
Storing complete log in /Users/congqin/.pip/pip.log
divad12 commented 11 years ago

This is due to the following change in behavior in newer versions of pip:

Pre-release Versions

Starting with v1.4, pip will only install stable versions as specified by PEP426 by default. If a version cannot be parsed as a compliant PEP426 version then it is assumed to be a pre-release.

If a Requirement specifier includes a pre-release or development version (e.g. >=0.0.dev0) then pip will allow pre-release and development versions for that requirement. This does not include the != flag.

The pip install command also supports a –pre flag that will enable installing pre-releases and development releases.

Since there are no stable versions of this package yet, you can use the --pre flag as a temporary workaround:

pip install --pre flask-debugtoolbar-lineprofilerpanel

See this StackOverflow answer for more information.

jlfwong commented 11 years ago

So I'm guessing the right solution is just to push a stable version.

I'm on a cruddy internet connection at the moment, so I'll have to get back to this.

jlfwong commented 11 years ago

Ah, the problem was at least partially from one of the dependencies, not this package itself.

Shouldn't noticed from the line

  Could not find a version that satisfies the requirement line-profiler (from flask-debugtoolbar-lineprofilerpanel) (from versions: 1.0b1, 1.0b2, 1.0b3)

In any case, I just pushed 1.0.1 with a dependency specified and tried installing it locally. Should be good to go now.