You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from python import Python
fnmain() raises:
# This is equivalent to Python's `import numpy as np`letnp= Python.import_module("numpy")
# Now use numpy as if writing in Pythonletarray= np.array([1, 2, 3])
print(array)
If applicable, add screenshots to help explain the problem.
Include anything else that might help us debug the issue.
(obvs) ➜ obvs git:(main) ✗ mojo obvs/gputest.🔥
[46656:46656:20240203,185804.294909:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[46656:46656:20240203,185804.295156:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0. Program arguments: mojo obvs/gputest.\360\237\224\245
#0 0x0000564ef39101b7 (/home/user/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x6211b7) #1 0x0000564ef390dd8e (/home/user/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x61ed8e) #2 0x0000564ef391088f (/home/user/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x62188f) #3 0x00007fc6d2842520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
[1] 46654 segmentation fault (core dumped) mojo obvs/gputest.🔥
System information
- What OS did you do install Mojo on ?
Ubuntu 22.04
pyenv+virtualenv setup as https://github.com/CoefficientSystems/modern-data-cookiecutter
following something like:
https://dev.to/alysivji/ultimate-solution-to-python-virtual-environments-pyenv--virtualenvwrapper
python --version
Python 3.11.7
python -c "import numpy; print(numpy.array([1, 2, 3]))"
[1 2 3]
this isn't an issue with numpy imports within python.- Provide version information for Mojo by pasting the output of `mojo -v`mojo 0.7.0 (af002202)- Provide Modular CLI version by pasting the output of `modular -v`modular 0.4.1 (2d8afe15)
The text was updated successfully, but these errors were encountered:
Bug description
Running a code example from the docs causes a segfault.
Steps to reproduce
The code snippet here: https://docs.modular.com/mojo/manual/python/#import-a-python-module
If applicable, add screenshots to help explain the problem.
Include anything else that might help us debug the issue.
(obvs) ➜ obvs git:(main) ✗ mojo obvs/gputest.🔥
[46656:46656:20240203,185804.294909:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[46656:46656:20240203,185804.295156:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0. Program arguments: mojo obvs/gputest.\360\237\224\245
#0 0x0000564ef39101b7 (/home/user/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x6211b7)
#1 0x0000564ef390dd8e (/home/user/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x61ed8e)
#2 0x0000564ef391088f (/home/user/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x62188f)
#3 0x00007fc6d2842520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
[1] 46654 segmentation fault (core dumped) mojo obvs/gputest.🔥
System information
The text was updated successfully, but these errors were encountered: