--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/9777a082-b329-4565-883b-2e623e3820cb%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
muthu@mac:$ cat ~/.pypirc
[distutils]
index-servers =
nexus
[nexus]
username:admin
password:admin123
repository:http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-hosted/
When i said pip install <my package>, it looks through in https://pypi.python.org/simple not in http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-hosted/ .
Here is the pip output:
Collecting my-package
1 location(s) to search for versions of concept-matcher:
* https://pypi.python.org/simple/my-package/
Getting page https://pypi.python.org/simple/my-package/
Looking up "https://pypi.python.org/simple/my-package/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/my-package/ HTTP/1.1" 404 28063
Status code 404 not in [200, 203, 300, 301]
Could not fetch URL https://pypi.python.org/simple/my-package/: 404 Client Error: Not Found for url: https://pypi.python.org/simple/my-package/ - skipping
Could not find a version that satisfies the requirement my-package (from versions: )
Cleaning up...
No matching distribution found for my-package
Exception information:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/index.py", line 514, in find_requirement
'No matching distribution found for %s' % req
DistributionNotFound: No matching distribution found for my-package
Thanks,
Kalai
Fails how?What does the pip output look like?
What does your pip configuration look like?You'll need to supply some information before anyone can help you.Regards,Rich
On Tue, Jun 20, 2017 at 6:05 PM, Kalai <kalai.m...@iacpublishinglabs.com> wrote:
We planned to move from pypi registry to nexus pypi repository. I have a pypi package hosted in Nexus-3.2.1 pypi hosted repository.I am able to host the package successfully.But when i tried to install that package through pip. It fails. Help me to figure outThanks in advance,Kalai
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/6e48c6b0-d304-4356-9934-d980dd25c8d0%40glists.sonatype.com.
http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-all/ --pypi group repo
http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-hosted/ -- pypi hosted repo
[global]
index = http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-all/
index-url = http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-hosted/
This is what i get now
HTTP error 404 while getting http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-all/
HTTPError: 404 Client Error: Not Found for url: http://nexus-test.dev.iad.oshift.iacp.io/repository/pypi-all/
am i doing something wrong?Let me know.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/f6875cfa-9d7d-4609-bb15-d182ec02bf96%40glists.sonatype.com.
pip install <package-name> --trusted-host nexus-test.dev.iad.oshift.iacp.io
Thanks,
Kalai