GithubHelp home page GithubHelp logo

ERROR: Invalid requirement: 'myLibraryName>=1.0.0.*': .* suffix can only be used with == or != operators myLibraryName>=1.0.0.* about pip HOT 6 CLOSED

AlexanderRommel avatar AlexanderRommel commented on August 26, 2024
ERROR: Invalid requirement: 'myLibraryName>=1.0.0.*': .* suffix can only be used with == or != operators myLibraryName>=1.0.0.*

from pip.

Comments (6)

notatallshaw avatar notatallshaw commented on August 26, 2024

As the error says:

.* suffix can only be used with == or != operators

Remove the .*

from pip.

AlexanderRommel avatar AlexanderRommel commented on August 26, 2024

If I remove the .* from my requirement.txt (which also contains following entry: app-common-build-scripts-rof>=1.0.0.*) no library can be installed due to following error:

2024-06-27 10:33:47.580 [info] ERROR: Could not find a version that satisfies the requirement app-common-build-scripts-rof>=1.0.0 (from versions: 1.0.0.dev1245387, 1.0.0.dev1245394, 1.0.0.dev1246504, 1.0.0.dev1247852, 1.0.0.dev1247871, 1.0.0.dev1248017, 1.0.0.dev1248360, 1.0.0.dev1248390, 1.0.0.dev1248558, 1.0.0.dev1248840, 1.0.0.dev1248995, 1.0.0.dev1249001, 1.0.0.dev1249018, 1.0.0.dev1249108, 1.0.0.dev1249909, 1.0.0.dev1249915, 1.0.0.dev1249926, 1.0.0.dev1249935, 1.0.0.dev1252140, 1.0.0.dev1253905, 1.0.0.dev1254142, 1.0.0.dev1263909, 1.0.0.dev1269823, 1.0.0.dev1273561, 1.0.0.dev1274351, 1.0.0.dev1275885, 1.0.0.dev1276773, 1.0.0.dev1279151, 1.0.0.dev1279830, 1.0.0.dev1279833, 1.0.0.dev1280960, 1.0.0.dev1280981, 1.0.0.dev1281009, 1.0.0.dev1285647, 1.0.0.dev1286279, 1.0.0.dev1286293, 1.0.0.dev1286596, 1.0.0.dev1288541, 1.0.0.dev1288550, 1.0.0.dev1292646, 1.0.0.dev1292964, 1.0.0.dev1303592, 1.0.0.dev1303605, 1.0.0.dev1303658, 1.0.0.dev1303663, 1.0.0.dev1305005)
2024-06-27 10:33:47.581 [info] ERROR: No matching distribution found for app-common-build-scripts-rof>=1.0.0

It seems as if it can't choose one of the available versions (that's the reason, why I need .*)

from pip.

uranusjr avatar uranusjr commented on August 26, 2024

Because none of those versions are larger than 1.0.0 (dev versions are considered prior/smaller than a stable version). I think the correct fix for you is to change the >= to ==. Or just remove the version constraint entirely since the package doesnโ€™t need that in the first place.

from pip.

AlexanderRommel avatar AlexanderRommel commented on August 26, 2024

Unfortunately, also using of == instead of >= do not work due to following error:

2024-06-27 12:56:15.922 [info] ERROR: Could not find a version that satisfies the requirement app-common-build-scripts-rof==1.0.0.* (from versions: 1.0.0.dev1245387, 1.0.0.dev1245394, 1.0.0.dev1246504, 1.0.0.dev1247852, 1.0.0.dev1247871, 1.0.0.dev1248017, 1.0.0.dev1248360, 1.0.0.dev1248390, 1.0.0.dev1248558, 1.0.0.dev1248840, 1.0.0.dev1248995, 1.0.0.dev1249001, 1.0.0.dev1249018, 1.0.0.dev1249108, 1.0.0.dev1249909, 1.0.0.dev1249915, 1.0.0.dev1249926, 1.0.0.dev1249935, 1.0.0.dev1252140, 1.0.0.dev1253905, 1.0.0.dev1254142, 1.0.0.dev1263909, 1.0.0.dev1269823, 1.0.0.dev1273561, 1.0.0.dev1274351, 1.0.0.dev1275885, 1.0.0.dev1276773, 1.0.0.dev1279151, 1.0.0.dev1279830, 1.0.0.dev1279833, 1.0.0.dev1280960, 1.0.0.dev1280981, 1.0.0.dev1281009, 1.0.0.dev1285647, 1.0.0.dev1286279, 1.0.0.dev1286293, 1.0.0.dev1286596, 1.0.0.dev1288541, 1.0.0.dev1288550, 1.0.0.dev1292646, 1.0.0.dev1292964, 1.0.0.dev1303592, 1.0.0.dev1303605, 1.0.0.dev1303658, 1.0.0.dev1303663, 1.0.0.dev1305005)
2024-06-27 12:56:15.922 [info] ERROR: No matching distribution found for app-common-build-scripts-rof==1.0.0.*

from pip.

pfmoore avatar pfmoore commented on August 26, 2024

If you want to use dev versions, you need --pre.

Regardless, this is not a bug in pip, it's a deliberate change enforcing the long-established rules for version comparisons. Prior to this release of pip you were (without realising it) relying on a bug in pip which we've now fixed.

from pip.

AlexanderRommel avatar AlexanderRommel commented on August 26, 2024

Thanks @pfmoore!

After changing from ">=1.0.0.*" (app-common-build-scripts-rof>=1.0.0.*) to ">=1.0.dev0" (app-common-build-scripts-rof>=1.0.dev0) the corresponding latest libraries could be built again.

from pip.

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.