Giter VIP home page Giter VIP logo

Comments (9)

dimbleby avatar dimbleby commented on June 27, 2024

does not reproduce - as expected I see an error about connecting to "my_repo" but no sign of the error that you are reporting

$ poetry publish --build -r my_repo
Building Foo (0)
  - Building sdist
  - Built foo-0.tar.gz
  - Building wheel
  - Built foo-0-py3-none-any.whl

Publishing Foo (0) to my_repo
 - Uploading foo-0-py3-none-any.whl FAILED

Connection Error: We were unable to connect to the repository, ensure the url is correct and can be reached.

please provide a way to reproduce

from poetry.

Jakobhenningjensen avatar Jakobhenningjensen commented on June 27, 2024

I don't know how else I should reproduce apart from the code above, since it's the one causing the error.

If I remove the torch-gpu-linux source (and just have torch="2.3.0") it works fine

from poetry.

dimbleby avatar dimbleby commented on June 27, 2024

maybe provide a dockerfile in which the error happens, then we should get past any "works on my computer" differences

(still works on my computer, though!)

from poetry.

Jakobhenningjensen avatar Jakobhenningjensen commented on June 27, 2024

Just being curious; if you use the "-vvv" flag for publish, is "pytorch-gpu" only being added once?

from poetry.

Jakobhenningjensen avatar Jakobhenningjensen commented on June 27, 2024

For some odd reason, changing the version from "0" to "1" in my .toml file seemed to work. I also added "PyPI" as source for the "darwin" source, thus I don't know which of them did the trick but .. 🤷

from poetry.

dimbleby avatar dimbleby commented on June 27, 2024

perhaps you had previously made changes but forgot to hit "save"...

well anyway: I guess either provide a repro or close this out, please

from poetry.

bmarroquin avatar bmarroquin commented on June 27, 2024

It looks like it is adding torch-gpu-linux twice because it is configured in the poetry config as a repository and the pyproject.toml as a source. Poetry merges these 2 at run time and that is probably why you are running into this specific issue. Remove it from the poetry config and try again.

from poetry.

Jakobhenningjensen avatar Jakobhenningjensen commented on June 27, 2024

It looks like it is adding torch-gpu-linux twice because it is configured in the poetry config as a repository and the pyproject.toml as a source. Poetry merges these 2 at run time and that is probably why you are running into this specific issue. Remove it from the poetry config and try again.

Where is the poetry config? I have only modified the pyproject.toml

from poetry.

bmarroquin avatar bmarroquin commented on June 27, 2024

I always forget where it is but it doesn't matter, you can modify and see the contents using the 'poetry config' command.

'poetry config --unset repositories.' should do it I think.

from poetry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.