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

Installation Problem with pip #6

Closed
npmontgomery opened this issue Aug 5, 2018 · 6 comments
Closed

Installation Problem with pip #6

npmontgomery opened this issue Aug 5, 2018 · 6 comments

Comments

@npmontgomery
Copy link

npmontgomery commented Aug 5, 2018

I get the following message when I try to install with pip. Any ideas for troubleshooting?

bash-3.2$ pip install cogdb
Collecting cogdb
Could not find a version that satisfies the requirement cogdb (from versions: )
No matching distribution found for cogdb
@arun1729
Copy link
Owner

arun1729 commented Aug 7, 2018

@npmontgomery what version of python are you running?

@arun1729
Copy link
Owner

arun1729 commented Aug 7, 2018

could you please run pip install -vvv cogdb and paste the output here?

@npmontgomery
Copy link
Author

@arun1729 As you'll see in the output below, I've included the output from Python 3.7 and 3.6 (below)
Thank you for your help!

3.7

(bbn_nlp-L83aNOe_) bash-3.2$ pip install -vvv cogdb
Created temporary directory: /private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-ephem-wheel-cache-_wo8eimc
Created temporary directory: /private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-req-tracker-qom6pc9x
Created requirements tracker '/private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-req-tracker-qom6pc9x'
Created temporary directory: /private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-install-cgao6xey
Collecting cogdb
  1 location(s) to search for versions of cogdb:
  * https://pypi.org/simple/cogdb/
  Getting page https://pypi.org/simple/cogdb/
  Looking up "https://pypi.org/simple/cogdb/" in the cache
  Current age based on date: 161848
  Freshness lifetime from max-age: 600
  Freshness lifetime from request max-age: 600
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/cogdb/ HTTP/1.1" 304 0
  Analyzing links from page https://pypi.org/simple/cogdb/
    Skipping link https://files.pythonhosted.org/packages/9c/c5/576e4c22b0d359e30665c7961eadaf24abc2e9116fea7b0bc284bc32bf51/cogdb-0.0.3-py2-none-any.whl#sha256=55f15d451a7c2ff1ad79574ba664911a97ed1efad3b0c7d9fba71117b58f6d68 (from https://pypi.org/simple/cogdb/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/13/e2/3d5e77e40e6500f317bd8333a3074100c4488082e73e41570fc0dff069c8/cogdb-0.0.4-py2-none-any.whl#sha256=9e2d098c9efec4c55d875262f7ac2bcef9643e0b25ceff966683d998d477f983 (from https://pypi.org/simple/cogdb/); it is not compatible with this Python
  Could not find a version that satisfies the requirement cogdb (from versions: )
Cleaning up...
Removed build tracker '/private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-req-tracker-qom6pc9x'
No matching distribution found for cogdb
Exception information:
Traceback (most recent call last):
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/basecommand.py", line 141, in main
    status = self.run(options, args)
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 299, in run
    resolver.resolve(requirement_set)
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/resolve.py", line 102, in resolve
    self._resolve_one(requirement_set, req)
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/resolve.py", line 256, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
    self.require_hashes
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 218, in prepare_linked_requirement
    req.populate_link(finder, upgrade_allowed, require_hashes)
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 308, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/Users/mm/.local/share/virtualenvs/bbn_nlp-L83aNOe_/lib/python3.7/site-packages/pip/_internal/index.py", line 543, in find_requirement
    'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for cogdb
(bbn_nlp-L83aNOe_) bash-3.2$

3.6

ns-MacBook-Pro:~ mm$ source activate graph_36
(graph_36) ns-MacBook-Pro:~ mm$ pip install -vvv cogdb
Created temporary directory: /private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-ephem-wheel-cache-xp20u_6x
Created temporary directory: /private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-req-tracker-ps1fl_zh
Created requirements tracker '/private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-req-tracker-ps1fl_zh'
Created temporary directory: /private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-install-35r40bit
Collecting cogdb
  1 location(s) to search for versions of cogdb:
  * https://pypi.org/simple/cogdb/
  Getting page https://pypi.org/simple/cogdb/
  Looking up "https://pypi.org/simple/cogdb/" in the cache
  Current age based on date: 311
  Freshness lifetime from max-age: 600
  Freshness lifetime from request max-age: 600
  The response is "fresh", returning cached response
  600 > 311
  Analyzing links from page https://pypi.org/simple/cogdb/
    Skipping link https://files.pythonhosted.org/packages/9c/c5/576e4c22b0d359e30665c7961eadaf24abc2e9116fea7b0bc284bc32bf51/cogdb-0.0.3-py2-none-any.whl#sha256=55f15d451a7c2ff1ad79574ba664911a97ed1efad3b0c7d9fba71117b58f6d68 (from https://pypi.org/simple/cogdb/); it is not compatible with this Python
    Skipping link https://files.pythonhosted.org/packages/13/e2/3d5e77e40e6500f317bd8333a3074100c4488082e73e41570fc0dff069c8/cogdb-0.0.4-py2-none-any.whl#sha256=9e2d098c9efec4c55d875262f7ac2bcef9643e0b25ceff966683d998d477f983 (from https://pypi.org/simple/cogdb/); it is not compatible with this Python
  Could not find a version that satisfies the requirement cogdb (from versions: )
Cleaning up...
Removed build tracker '/private/var/folders/x5/nd6zqwks10dcd83sjz085bpw0000gn/T/pip-req-tracker-ps1fl_zh'
No matching distribution found for cogdb
Exception information:
Traceback (most recent call last):
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/basecommand.py", line 141, in main
    status = self.run(options, args)
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 299, in run
    resolver.resolve(requirement_set)
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/resolve.py", line 102, in resolve
    self._resolve_one(requirement_set, req)
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/resolve.py", line 256, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
    self.require_hashes
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 218, in prepare_linked_requirement
    req.populate_link(finder, upgrade_allowed, require_hashes)
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 308, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/anaconda2/envs/graph_36/lib/python3.6/site-packages/pip/_internal/index.py", line 543, in find_requirement
    'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for cogdb
(graph_36) ns-MacBook-Pro:~ mm$ 

@arun1729
Copy link
Owner

arun1729 commented Aug 7, 2018

the current version of cog only runs on python >= 2.7. It may work on slightly older version but not tested for that. Python 3 is currently not supported, but this will be addressed in the near future. Are you be able to use python 2.x?

@npmontgomery
Copy link
Author

I can try on 2.7. Thank you for helping with this!
Friendly suggestion: Perhaps adding the Python version support information to the page would help others from encountering the same problem.

@arun1729
Copy link
Owner

arun1729 commented Aug 9, 2018

thanks for the suggestion! I have added python 2.7 badge to the project.

@arun1729 arun1729 closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants