Kiraid
Kiraid
Explore posts from servers
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
Opened up an issue for this here: https://github.com/modularml/mojo/issues/3429
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
Using ipython magic-action %%script to call modular's magic shell, while offline, running a no-op comment line of #, I get the following error:
Error starting shell: Not a tty (os error 25)

---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
Cell In[2], line 1
----> 1 get_ipython().run_cell_magic('mojo', '', '#\n')

File /opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py:2517, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
2515 with self.builtin_trap:
2516 args = (magic_arg_s, cell)
-> 2517 result = fn(*args, **kwargs)
2519 # The code below prevents the output from being displayed
2520 # when using magics with decorator @output_can_be_silenced
2521 # when the last Python token in the expression is a ';'.
2522 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File /opt/conda/lib/python3.10/site-packages/IPython/core/magic.py:755, in MagicAlias.__call__(self, *args, **kwargs)
753 args_list[0] = self.magic_params + " " + args[0]
754 args = tuple(args_list)
--> 755 return fn(*args, **kwargs)
756 finally:
757 self._in_call = False

File /opt/conda/lib/python3.10/site-packages/IPython/core/magics/script.py:314, in ScriptMagics.shebang(self, line, cell)
309 if args.raise_error and p.returncode != 0:
310 # If we get here and p.returncode is still None, we must have
311 # killed it but not yet seen its return code. We don't wait for it,
312 # in case it's stuck in uninterruptible sleep. -9 = SIGKILL
313 rc = p.returncode or -9
--> 314 raise CalledProcessError(rc, cell)

CalledProcessError: Command 'b'#\n'' returned non-zero exit status 1.
Error starting shell: Not a tty (os error 25)

---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
Cell In[2], line 1
----> 1 get_ipython().run_cell_magic('mojo', '', '#\n')

File /opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py:2517, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
2515 with self.builtin_trap:
2516 args = (magic_arg_s, cell)
-> 2517 result = fn(*args, **kwargs)
2519 # The code below prevents the output from being displayed
2520 # when using magics with decorator @output_can_be_silenced
2521 # when the last Python token in the expression is a ';'.
2522 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File /opt/conda/lib/python3.10/site-packages/IPython/core/magic.py:755, in MagicAlias.__call__(self, *args, **kwargs)
753 args_list[0] = self.magic_params + " " + args[0]
754 args = tuple(args_list)
--> 755 return fn(*args, **kwargs)
756 finally:
757 self._in_call = False

File /opt/conda/lib/python3.10/site-packages/IPython/core/magics/script.py:314, in ScriptMagics.shebang(self, line, cell)
309 if args.raise_error and p.returncode != 0:
310 # If we get here and p.returncode is still None, we must have
311 # killed it but not yet seen its return code. We don't wait for it,
312 # in case it's stuck in uninterruptible sleep. -9 = SIGKILL
313 rc = p.returncode or -9
--> 314 raise CalledProcessError(rc, cell)

CalledProcessError: Command 'b'#\n'' returned non-zero exit status 1.
%%script calling bash or python works just fine.
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
Or is this the correct one to site:
Licensed under https://www.modular.com/legal/terms
Licensed under https://www.modular.com/legal/terms
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
Or is this the correct one to use:
https://www.modular.com/legal/max-mojo-license
https://www.modular.com/legal/max-mojo-license
12 replies
MModular
Created by Kiraid on 8/23/2024 in #questions
Offline Kaggle Install
caroline_frasca:
Sorry for the delay on this – I've confirmed that uploading the .whl file to Kaggle doesn't violate our terms & conditions. Let us know if you run into any issues along the way so we can help out 🙂
@Caroline Is Apache License v2.0 the correct license to tag? Then put this in the description?
Copyright (c) 2024, Modular Inc. All rights reserved.

Licensed under the Apache License v2.0 with LLVM Exceptions:
https://llvm.org/LICENSE.txt

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Copyright (c) 2024, Modular Inc. All rights reserved.

Licensed under the Apache License v2.0 with LLVM Exceptions:
https://llvm.org/LICENSE.txt

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
12 replies