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

Could not find: Requirement.parse ... #34

Open
bmalum opened this issue Apr 4, 2014 · 1 comment
Open

Could not find: Requirement.parse ... #34

bmalum opened this issue Apr 4, 2014 · 1 comment

Comments

@bmalum
Copy link

bmalum commented Apr 4, 2014

Sry Guys i tried to install it like mentioned in the Wiki ... but i got this problem...

[bmalum@pyxis itota-trac-subtickets-plugin-a0fc153]$ cp dist/_.egg ~/SEPM/plugins
[bmalum@pyxis itota-trac-subtickets-plugin-a0fc153]$ easy_instal dist/_egg
-bash: easy_instal: command not found
[bmalum@pyxis itota-trac-subtickets-plugin-a0fc153]$ easy_install dist/*egg
Processing TracSubTicketsPlugin-0.2.0.dev_20140404-py2.7.egg
Copying TracSubTicketsPlugin-0.2.0.dev_20140404-py2.7.egg to /home/bmalum/lib/python2.4
Removing TracSubTicketsPlugin 0.2.0.dev-20140316 from easy-install.pth file
Adding TracSubTicketsPlugin 0.2.0.dev-20140404 to easy-install.pth file
Installing check-trac-subtickets script to /home/bmalum/bin

Installed /home/bmalum/lib/python2.4/TracSubTicketsPlugin-0.2.0.dev_20140404-py2.7.egg
Processing dependencies for TracSubTicketsPlugin==0.2.0.dev-20140404
Searching for TracSubTicketsPlugin==0.2.0.dev-20140404
Reading http://cheeseshop.python.org/pypi/TracSubTicketsPlugin/
Couldn't find index page for 'TracSubTicketsPlugin' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
No local packages or download links found for TracSubTicketsPlugin==0.2.0.dev-20140404
error: Could not find suitable distribution for Requirement.parse('TracSubTicketsPlugin==0.2.0.dev-20140404')
[bmalum@pyxis itota-trac-subtickets-plugin-a0fc153]$

@rjollos
Copy link
Contributor

rjollos commented Apr 7, 2014

I can reproduce when installing in an environment in which Trac is not already installed. It seems to be due to the install_requires. Putting Trac in install_requires is not recommended. See #9800 for details.

diff --git a/setup.py b/setup.py
index e538b43..21153a7 100755
--- a/setup.py
+++ b/setup.py
@@ -48,8 +48,6 @@ setup(
     """,
     license = 'BSD',

-    install_requires = ['Trac >= 0.12dev'],
-
     packages = find_packages(exclude=['*.tests*']),
     package_data = {
         'tracsubtickets': [

So I guess the most logical resolution is to make sure Trac is installed in your environment. You should be able to:

$ python
Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import trac
>>> trac.__version__
'1.0.2dev-r0'

thenor57 added a commit to trac-hacks/trac-subtickets-plugin that referenced this issue Nov 7, 2016
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

2 participants