Giter Club home page Giter Club logo

Comments (5)

wolfv avatar wolfv commented on July 24, 2024

This is actually an issue for rattler (not rattler-build) if I understand correctly :)

Although it would be interesting to test that rattler-build does not put the local version in the filename.

from rattler-build.

wolfv avatar wolfv commented on July 24, 2024

PS: can you open the issue here as well? https://github.com/mamba-org/rattler

from rattler-build.

wolfv avatar wolfv commented on July 24, 2024

@ChristopherRussell I investigated a bit more and I am not sure wether the local version is really the problem.

Can you double check if you have any packages with fewer than two dashes in them?

The code looks like the following:

let package = s.rsplitn(3, '-').nth(2).ok_or("invalid filename")?;

We expect a package filename to look like foo-1.2.3-0.tar.bz2 or foo-1.2.3-hash_0.tar.bz2 or foo-base-1.2.3-hash_0.conda (i.e. to have at least two dashes). The dashes split name, version and build string.

I'll also adjust the error message to mention missing dashes.

from rattler-build.

wolfv avatar wolfv commented on July 24, 2024

@ChristopherRussell - I opened a PR that might improve the error message here: mamba-org/rattler#757

If you find the offending package, can you let us know? We could think about making the parsing more lenient and adding a fallback if only a single - is found. Or no - is found ...

from rattler-build.

ChristopherRussell avatar ChristopherRussell commented on July 24, 2024

Thanks for investigating and opening the other issue for me!

The error message was:

invalid filename at line 38856 column 38

and the snippet below shows the entry starting at the 38856'th line (or 'line 38855' if you call the first line 'line 0'). I don't think the error refers to the previous line though as it's only a few characters long (a few spaces plus a close bracket). We also have noarch and win-64 sections in the channel, but the repodata.json files for those are shorter than 38856 lines so can't be the cause of the error.

    },
    "libxgboost-0.6+218_omp_0.tar.bz2": {     <---- Line 38856
      "build": "0",
      "build_number": 0,
      "depends": [],
      "extra": {
        "git": {
          "branch": "HEAD",
          "commit": "2715bae",
          "sha": "2715baef64c07546314977caf858d1cce1043b66"
        },
        "package": {
          "md5": "43b62a5ba9470354c6244353bfcad65d"
        },
        "system": {
          "cwd": "/some/path/to/a/dir",
          "node": "name.company.com",
          "os": "Linux",
          "prefix": "/some/path",
          "time": "2017-04-06 14:13:26.296584",
          "user": "some_user"
        },
        "versions": {
         "conda": "4.1.12",
          "conda-build": "1.21.7",
          "conda-tox": "0.6.5",
          "python": "3.5.2"
        }
      },
      "features": "omp",
      "md5": "477ec8a7faa700d27138e1cdf8fec967",
      "name": "libxgboost",
      "sha256": "4005a7034a294aa0d063aa5c4273f09e21cd04e1997e436f5bf0aada7e5c91da",
      "size": 912390,
      "subdir": "linux-64",
      "version": "0.6+218"
    },

from rattler-build.

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.