Darin Simmons
Darin Simmons
MModular
Created by f.geraci on 11/12/2024 in #questions
Install Mojo/Magic
I do my best to avoid all things Docker so I'm not a good resource for this. I suggest starting your own #questions regarding Docker install.
19 replies
MModular
Created by f.geraci on 11/12/2024 in #questions
Install Mojo/Magic
It appears - which is to say that I am not 100% sure - that the issue is with Docker /bin/sh. not using source like bash would. https://docs.docker.com/reference/dockerfile/#shell-form
19 replies
MModular
Created by f.geraci on 11/12/2024 in #questions
Install Mojo/Magic
What operating system are you using? What command did you use to refresh your profile aka "source command" aka "source the terminal"
19 replies
MModular
Created by f.geraci on 11/12/2024 in #questions
Install Mojo/Magic
Two things. One, I hope that smarter heads prevail. conda is no longer owned by Anaconda, has a BSD-license, and banning it would in practicality, force everything to PyPi. My personal opinion: Gimping the entire toolchain because someone wasn't willing to read the docs is more about stupidity and ignorance than risk-aversion. Two, magic is based on pixi and adapted for mojo+MAX use. (magic is currently version 0.4.0 based on pixi version 0.33.0). While conda channels can be skipped, pixi uses conda to manage the environments. magic cannot - as far as my imagination could come up with - be used without the project environment created by conda. Hope that clarifies.
19 replies
MModular
Created by f.geraci on 11/12/2024 in #questions
Install Mojo/Magic
Good day. You can install mojo+MAX using either magic or conda.
The point behind magic is to both attend to environments as well as package management as well as it's specifically designed to use mojo , max, as well as other languages. Here's the instuctions for magic To use conda to install mojo+MAX,
cd my-conda-project
conda activate my-conda-project
conda config --env --add channels https://conda.modular.com/max conda-forge
conda install max
cd my-conda-project
conda activate my-conda-project
conda config --env --add channels https://conda.modular.com/max conda-forge
conda install max
19 replies
MModular
Created by Nagaraj Hegde on 11/11/2024 in #questions
Will Mojo ever become fully free and open source?
Good to hear that you are loving mojo. Do you have any reservations about building a project? There's always the #licensing channel to get clarification and share concerns. Mojo is already in the TIOBE index top50 and that's for a language that isn't even complete let alone GPU capable. What I think I hear is that you would like everyone to come and love the language as much as you do. That's one of the reasons I'm here too. In order for the entire adventure i.e Modular, MAX, and mojo to deliver quicker and reach a state that more people are willing to even consider, the Modular team integrated the two. Will they separate later when everything is feature complete? I cannot tell the future and I doubt the Modular team would be programming if they could either. There exists near infinite possibilities between now and the 1-2+ years to realize mojo and MAX. In the meantime, let's share the love. if there's something between a project and success, Discord is a good start.
4 replies
MModular
Created by suri on 11/7/2024 in #questions
Error running https://builds.modular.com/builds/llama3/python example
Ehsan, these Build posts (llama2, llama3, replit) all have instructions based on old (global) instructions. Currently, they say to install max, git clone, then run python. No mention of project creation, no mention of entering changing directory into the project, no mention of adding pytorch or any other requirements. Then, they ask the user to run python3 pipelines.py llama3 --prompt "I believe the meaning of life is" Imo, they all need to be rewritten. The replit example has pip install numpy transformers as one of the needed commands. The llama2 leads with the punchline magic run llama2 --prompt "I believe the meaning of life is" yet no amount of following the installation instructions before or after will result in that working. Whereas the llama3 example puts the punchline at the end, unfortunately the punchline is python3 pipelines.py llama3 --prompt "I believe the meaning of life is" resulting in the OP's error. This is only because a project was created and shell invoked by me - both instructions not on the page. You have seen the gh issue though additional issue are the incorrect instructions.
5 replies
MModular
Created by Wouks on 10/26/2024 in #questions
Error when running Mojo when path contains # (hash)
the upstream devs did put a sanitizer for environment creation names and agreed that the error message could be better. If you do find anything that Pixi does not do well, the prefix.dev team is incredibly responsive and both in their discord and on github. The fix will flow down.
13 replies
MModular
Created by Wouks on 10/26/2024 in #questions
Error when running Mojo when path contains # (hash)
Pixi, the software that magic is based on, would like us to "please use only lowercase letters, numbers and dashes" in environment names. My theory is that the # is being caught in the name parsing. In my case I used an underscore and it would let me create the environment, but would not let invoke the shell without throwing an error. .
13 replies
MModular
Created by tohmly on 10/15/2024 in #questions
Magic/Mojo on MacOS 12 not supported?
When you say the docs. Are you referring to the getting-started ? When you magic --version are you getting 0.3.1 ? There was an issue - and I'm wondering if it's related - about magic, SSL certificates, mac0S, and the way some upstream developers were doing things. The fix for that was to revert the magic version command . I tried searching Discord for the details but got a bunch of noisy results. You can try to version 0.3.0 and see if that works. Also, there's an issue template for magic in the mojo repo
13 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
gotcha
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
The hope/goal is that the community and the people and things in the orbit can share and connect and then ideally to bring back to the core.
84 replies
MModular
Created by Khaled M' on 4/1/2024 in #questions
Does anyone think Mojo could be great for Game Development?
@Ghostfire @sora the moderators just had a conversation about this and we've taken a "Other people in the community will probably find this interesting/useful/helpful" approach. As long as its in the correct place and its not a solicitation. So #community-showcase is totally fine to promote a mojo game dev server. Things that are unrelated solicitations, like "hey my rando game server" a bit too far. Community being the mojo community and things related and surrounding it, not community as the entire internet.
84 replies
MModular
Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
Last we talked, I thought you were still waiting on some of the unfinished design bits to finish. I could be totally wrong but I thought this was among them. Admittedly, I hadn't give back to check.
23 replies
MModular
Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
@ivellapillil I think @rd4com did a nice job , food for thought for the book.
23 replies
MModular
Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
@jmky Chris Lattner has posted a new discussion
23 replies
MModular
Created by jmky on 10/7/2024 in #questions
Is there a disdain for Rust from the Mojo team?
Skipping the entire Rust-Mojo thing, names are contracts. If it's called thing over there and then you call it thing over here, thing has already been established. If, for any reason, you want to do something different with thing, you have broken the contract. If you call it new_word, you can adopt as much, as little of it. Put another way, using the same word is equivalency and a new word is similarity.
23 replies
MModular
Created by maicmi on 9/26/2024 in #questions
How to solve failed to solve the pypi requirements?
I was unable to find fastapi[standard]. You can add the pypi channel with magic project channel add pypi. (I understand if that's not what you want to do, just reporting what did work) Interestingly/oddly I did try magic add --pypi fastapi - that is all depending of course, if you are looking for fastapi instead of fastapi[standard - I got the same certificate failed to validate error...
(two) darin@home:/media/darin/M2/magic/two$ magic add --pypi fastapi
⠒ default:linux-64 [00:00:06] resolving pypi dependencies × failed to solve the pypi requirements of 'default' 'linux-64'
├─▶ failed to resolve pypi dependencies
├─▶ Request failed after 3 retries
├─▶ error sending request for url (https://pypi.org/simple/fastapi/)
├─▶ client error (Connect)
├─▶ error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2091: (unable to get local issuer certificate)
╰─▶ error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2091:
(two) darin@home:/media/darin/M2/magic/two$ magic add --pypi fastapi
⠒ default:linux-64 [00:00:06] resolving pypi dependencies × failed to solve the pypi requirements of 'default' 'linux-64'
├─▶ failed to resolve pypi dependencies
├─▶ Request failed after 3 retries
├─▶ error sending request for url (https://pypi.org/simple/fastapi/)
├─▶ client error (Connect)
├─▶ error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2091: (unable to get local issuer certificate)
╰─▶ error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2091:
7 replies
MModular
Created by maicmi on 9/26/2024 in #questions
How to solve failed to solve the pypi requirements?
Hey, running the same commands from within a project and shell I got very similar results (mine were a bit more verbose). I did an update (on Linux) and got a different error message. 😐 It appears to be two issues, one with the dependencies and one with the certificate. So I poked at the dependency resolution problem
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic project channel add pypi
✔ Added pypi (https://conda.anaconda.org/pypi/)
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic search max
Using channels: conda-forge, https://conda.modular.com/max/, pypi

max release
-----------

Name max
Version 24.5.0
Build release
[snipped for Discord]
...
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic search fastapi
Using channels: conda-forge, https://conda.modular.com/max/, pypi

fastapi pyhd8ed1ab_0
--------------------

Name fastapi
Version 0.115.0
Build pyhd8ed1ab_0
[snipped for Discord]
...
Dependencies:
- email_validator >=2.0.0
- fastapi-cli >=0.0.5
- httpx >=0.23.0
- jinja2 >=2.11.2
- pydantic >=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0
- python >=3.8
- python-multipart >=0.0.7
- starlette >=0.37.2,<0.39.0
- typing-extensions >=4.8.0
- uvicorn >=0.12.0
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic search fastapi[standard]
Using channels: conda-forge, https://conda.modular.com/max/, pypi
× 'fastapi[standard]' is not a valid package name. Package names can only contain 0-9, a-z, A-Z, -, _, or .

(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic add fastapi
✔ Added fastapi >=0.115.0,<0.116
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic project channel add pypi
✔ Added pypi (https://conda.anaconda.org/pypi/)
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic search max
Using channels: conda-forge, https://conda.modular.com/max/, pypi

max release
-----------

Name max
Version 24.5.0
Build release
[snipped for Discord]
...
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic search fastapi
Using channels: conda-forge, https://conda.modular.com/max/, pypi

fastapi pyhd8ed1ab_0
--------------------

Name fastapi
Version 0.115.0
Build pyhd8ed1ab_0
[snipped for Discord]
...
Dependencies:
- email_validator >=2.0.0
- fastapi-cli >=0.0.5
- httpx >=0.23.0
- jinja2 >=2.11.2
- pydantic >=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0
- python >=3.8
- python-multipart >=0.0.7
- starlette >=0.37.2,<0.39.0
- typing-extensions >=4.8.0
- uvicorn >=0.12.0
(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic search fastapi[standard]
Using channels: conda-forge, https://conda.modular.com/max/, pypi
× 'fastapi[standard]' is not a valid package name. Package names can only contain 0-9, a-z, A-Z, -, _, or .

(manifest_test) darin@home:/media/darin/M2/magic/manifest_test$ magic add fastapi
✔ Added fastapi >=0.115.0,<0.116
7 replies
MModular
Created by Martin Dudek on 9/16/2024 in #questions
to_numpy with Mojo 24.5
Just to be clear, you updated DTypePointer to UnsafePointer (due to deprecation) and got the above error? @Shashank P
9 replies