Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bliss-audio 0.6.3 not available? #51

Closed
chrober opened this issue Oct 14, 2022 · 8 comments
Closed

bliss-audio 0.6.3 not available? #51

chrober opened this issue Oct 14, 2022 · 8 comments

Comments

@chrober
Copy link

chrober commented Oct 14, 2022

Hi,

I am usually building bliss-analyser (https://github.com/CDrummond/bliss-analyser) on a piCorePlayer (Raspberry Pi 4B).
A couple of days ago bliss-analyser switched to bliss-audio 0.6.3 and now building bliss-analyser fails with the following error

    Updating crates.io index
error: failed to select a version for the requirement `bliss-audio = "^0.6.3"`
candidate versions found which didn't match: 0.6.1, 0.6.0, 0.5.3, ...
location searched: crates.io index
required by package `bliss-analyser v0.2.2 (/mnt/mmcblk0p2/bliss-analyzer/src)`

Deleting and re-populating the cargo registry did not help. And anyway, when checking the cargo registry I do find entries for 0.6.3 and 0.6.4 in registry/index/github.com-1ecc6299db9ec823/.cache/bl/is/bliss-audio

Not sure if this is a problem in bliss-rs, bliss-analyser, or my build environment... does anybody have some hints? Please?

Best regards,
Christoph

@chrober chrober changed the title bliss-audio 0.6.3 not availble? bliss-audio 0.6.3 not available? Oct 14, 2022
@toofar
Copy link
Contributor

toofar commented Oct 15, 2022

What cargo version are you on? I had this issue with blissify too, not being able to find bliss-audio 0.6.4. I'm on cargo 1.56.0 (thanks debian) and I suspect it is this issue: rust-lang/cargo#11009
I ended up checking out bliss-rs and changing the Cargo.toml file to point to my local checkout. Installing cargo some non-distribution way would probably be a more robust solution.

@chrober
Copy link
Author

chrober commented Oct 16, 2022

Thank you @toofar for your reply!

What cargo version are you on?

cargo --version reports the following:

cargo 1.59.0

I will check work-around possibilities later next week.

@chrober
Copy link
Author

chrober commented Nov 24, 2022

After a while I was finally diving into this again.
As suggested by @toofar I also tried to use a local checkout of bliss-rs in Cargo.toml.
However, this gives me the following error when trying to build bliss-analyser:

error: failed to get `bliss-audio` as a dependency of package `bliss-analyser v0.2.2 (/mnt/mmcblk0p2/bliss-analyzer/src)`

Caused by:
  failed to load source for dependency `bliss-audio`

Caused by:
  Unable to update /mnt/mmcblk0p2/bliss-rs/src

Caused by:
  failed to parse manifest at `/mnt/mmcblk0p2/bliss-rs/src/Cargo.toml`

Caused by:
  namespaced features with the `dep:` prefix are only allowed on the nightly channel and requires the `-Z namespaced-features` flag on the command-line

I don't use nightly channel versions of cargo or rustc. Would this also be necessary for using bliss-rs from crates.io?

@Polochon-street
Copy link
Owner

hi!
Finally looking into this after some time - @chrober what does rustuc --version say? I suspect your rustc version is a bit too old, so it thinks some syntax we use in Cargo.toml is nightly only (but by now it's been stabilized so it's available without nightly)
If you use rustup, using rustup update and trying to build again should work :)

@chroberino
Copy link

hi! Finally looking into this after some time - @chrober what does rustuc --version say? I suspect your rustc version is a bit too old, so it thinks some syntax we use in Cargo.toml is nightly only (but by now it's been stabilized so it's available without nightly) If you use rustup, using rustup update and trying to build again should work :)

Hi and sorry for the late reply. The rust version I have at hand is 1.59.0. I will try to upgrade.

@Polochon-street
Copy link
Owner

Hi! Just as a side-note, if you're unable to update bliss-rs - I think checking out a local copy and editing these lines https://github.com/Polochon-street/bliss-rs/blob/master/Cargo.toml#L32-L37 (the "library" and "serde" features) in Cargo.toml might do the trick.
Let me know if this worked!

@chroberino
Copy link

Let me know if this worked!

Thanks for the hint, I am fine with that now!

@Polochon-street
Copy link
Owner

awesome! Closing then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants