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

Unable to install lightbug_http using magic following the latest documentation #243

Open
nowex35 opened this issue Feb 11, 2025 · 2 comments

Comments

@nowex35
Copy link

nowex35 commented Feb 11, 2025

(Sorry, but I'm new to the Mojo community.)

I followed the official Mojo manual for the setup and attempted to install lightbug_http using magic, but it didn't work.

Steps to reproduce the behavior:

  1. Start mojo project
magic init LB --format mojoproject
  1. Add mojo-community channel to mojoproject.toml
[project]
channels = ["https://conda.modular.com/max-nightly", "https://conda.modular.com/max", "https://repo.prefix.dev/modular-community", "conda-forge", "https://repo.prefix.dev/mojo-community"]
  1. Add lightbug_http
[dependencies]
max = ">=25.1.0.dev2025021016,<26"
lightbug_http = ">=0.1.11"
  1. Run "magic install" in LB directory
magic install
  1. Then, I got the following error:
  × failed to solve the conda requirements of 'default' 'linux-64'
  ╰─▶ Cannot solve the request because of: The following packages are incompatible
      └─ lightbug_http >=0.1.11 cannot be installed because there are no viable options:
         └─ lightbug_http 0.1.11 would require
            └─ small_time ==0.1.6, which cannot be installed because there are no viable options:
               └─ small_time 0.1.6 is excluded because due to strict channel priority not using this option from: 'https://repo.prefix.dev/
      mojo-community/'
      

  1. When I changed mojoproject.toml as follows, It worked.
[project]
channels = ["conda-forge", "https://conda.modular.com/max", "https://repo.prefix.dev/mojo-community"]
name = "LB"
platforms = ["linux-64"]
version = "0.1.0"

[tasks]

[dependencies]
max = "24.6.0.*"
lightbug_http = ">=0.1.11"

For comparison, I'll include this (unable version) as well.
<This is simply an edit based on the 'Getting Started' sections of Mojo and lightbug_http.>

[project]
channels = ["https://conda.modular.com/max-nightly", "https://conda.modular.com/max", "https://repo.prefix.dev/modular-community", "conda-forge", "https://repo.prefix.dev/mojo-community"]
name = "LB"
platforms = ["linux-64"]
version = "0.1.0"

[tasks]

[dependencies]
max = ">=25.1.0.dev2025021016,<26"
lightbug_http = ">=0.1.11"

It also failed.

[project]
channels = ["https://conda.modular.com/max-nightly", "https://conda.modular.com/max", "https://repo.prefix.dev/modular-community", "conda-forge"]
name = "LB"
platforms = ["linux-64"]
version = "0.1.0"

[tasks]

[dependencies]
max = "24.6.0.*"
lightbug_http = ">=0.1.11"

Could this be an issue caused by the latest dependencies or wrong channels? If I’m mistaken, I apologize.

Desktop

  • OS: Ubuntu
  • Version 24.04 on WSL
@saviorand
Copy link
Collaborator

Thank you for the thorough bug report!
The issue here is that Lightbug hasn't been yet uploaded to the official modular-community channel, only to the unofficial mojo-community one.

Not sure what happens here exactly, but most likely when both channels are included in the channel list there's a clash, and magic can't get some of the dependencies.
For now the way to go is still to use the mojo-community channel.

I hope in a couple days we can resolve the latest issues with CI in the Modular repo and get Lightbug added to the modular-community channel. Once that works, we'll transition to this as the main one.

@nowex35
Copy link
Author

nowex35 commented Feb 13, 2025

Thank you for your reply.
I understand the situation.

I am a university student in Japan, and I hope to contribute to the community as much as I can.

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

2 participants