Please note, I’m very new to Mojo (like, 20 minutes), so I might be doing something obviously wrong.
However, given this line:
from gpu.host import DeviceContext
With 1.0.0b1 I got a very helpful error message:
/home/daren/mojo/check_gpu/check_gpu.mojo:1:6: warning: Implicit standard library imports are deprecated and will be removed in a future release; fully qualify with 'std.' instead
from gpu.host import DeviceContext
^
std.
I updated to 1.0.0b2.dev2026061203 and the error message is less helpful.
home/daren/mojo/check_gpu/check_gpu.mojo:1:6: error: unable to locate module 'gpu'
from gpu.host import DeviceContext
^
/home/daren/mojo/check_gpu/check_gpu.mojo:1:10: error: failed to resolve parent package body
from gpu.host import DeviceContext
With the 1.0.0b1 error I understood how to fix it clearly; with the 1.0.0b2.dev2026061203 error, I would have had no clue.
I’m guessing that the issue is the implicit standard library import has been removed; but that being the case, the error is harder to understand for a newbie following example code on the website.