Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pushing to nexus, I get "Repository path must have another '/' after initial '/'"

When running python setup.py bdist_wheel upload -r ournexus I get "Repository path must have another '/' after initial '/'".

I'm trying to push to a private PyPi repository on a company nexus.

like image 453
Johannes Bauer Avatar asked Nov 16 '17 17:11

Johannes Bauer


People also ask

How do I connect to Nexus repository?

To start with repository management, you will have to sign in. The default username is admin. You will find the default password in the path mentioned on the sign-in page. Nexus has a few repositories by default.

How do I change my Nexus repository?

You can change this port, by changing the value in the $NEXUS_HOME/conf/nexus. properties file shown in "Contents of conf/nexus. properties". To change the port, stop the repository manager, change the value of application-port in this file, and then restart it.

What is repository in Nexus?

Nexus Repository OSS is an open source repository that supports many artifact formats, including Docker, Java™, and npm. With the Nexus tool integration, pipelines in your toolchain can publish and retrieve versioned apps and their dependencies by using central repositories that are accessible from other environments.


1 Answers

The problem was that, in my .pypirc, it said:

[ournexus]
repository=[my URL]/repository/[repositoryname]
username=[username]
password=[password]

where it should have said

[ournexus]
repository=[my URL]/repository/[repositoryname]/
username=[username]
password=[password]

(note the forward slash after [repositoryname])

Which, judging from the documentation and tutorials online seems to be fine for the public pypi, but doesn't seem to be accepted by nexus.

like image 193
Johannes Bauer Avatar answered Sep 21 '22 22:09

Johannes Bauer