Comments (5)
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.
PS: can you open the issue here as well? https://github.com/mamba-org/rattler
from rattler-build.
@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.
@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.
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)
- Failed to extract archive on windows HOT 10
- Set `PIP_PREFIX` on noarch?
- Display packages alphabetically
- Invalid versions only error when testing
- Do we need to take care of `@executable_path`
- Upper bound wrong?
- Should `/usr/lib/libresolv.9.dylib` be on allow-list for overlinking checks on macOS
- How do I tell rattler-build to use a different location for scratch? HOT 4
- Test scripts expressions are wrong evaluated
- Better error message when parsing invalid variant_config
- Crashreporting issues and code signing around tooling to make binaries relocatable
- Either allow context vars to be lists or throw better errors
- package_content test use `.js` as exe extension for wasm
- Parse `variants.yaml` per recipe when using `--recipe-dir` HOT 1
- Support requirements specification in the Python tests section of multi-output recipes HOT 2
- Cache run exports are propagating to outputs HOT 1
- rattler-build could potentially cache execution of inner build command
- rattler-build incorrectly includes some files from libarrow when it is a host dependency HOT 3
- rattler_build creates conda packages that are ~10^6 times bigger than they should be HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rattler-build.