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
Note: This is three different issues in one. I'm reporting it this way because I don't know if the three issues are connected or not.
First I install polars_talib by doing a %pip install --no-deps polars_talib. Note that I have to do --no-deps because polars_talib puts polars as a prerequisite package, but I'm using the polars-lts-cpu package.
Issue #1: polars_talib installs the polars package, but there are multiple polars packages. pip install polars_talib should not install the polars package.
I figured issue #2 was caused by an old version of Polars, so I updated from version polars-lts-cpu~=1.9.0 to polars-lts-cpu~=1.17.1. (Also note I'm running Python version 3.12.7 right now.)
Here's the new kernel panic output:
22:29:05.246 [info] Kernel successfully started
22:29:05.297 [info] Process Execution: /mnt/hunk/projects/orchestrator/.venv/bin/python /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.11.0-universal/pythonFiles/printJupyterDataDir.py
22:29:20.340 [error] Disposing session as kernel process died ExitCode: undefined, Reason: [IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 395, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'b8499a13f07e28c5a835d747d9e66cabc088a33fdfa3438a4d31ab038eef8a2d'
[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 395, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'84e92308f5beaf5b6f5749e2c7b6b2f0ec42a0c76029316a5c8c919c7b68bb16'
[IPKernelApp] ERROR | Invalid Control Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 341, in process_control
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'c5df9861b9bbb613a5b8e100bda616f90a4a09970be6725dc7ee0a5c13a1bea4'
[IPKernelApp] ERROR | Invalid Control Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 341, in process_control
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'b7028d79a298c7c7fa9ef6084a41bbd56978eeec0dce83d207582003a038ce81'
[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 395, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'4d31bc38269acc178c23f8efb4a33183a66893ea2a578a43917c74ef4f8d549d'
[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 395, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'f115224a7636452891dd168b4b53e1b926e353175fcff9bd20f7a1f2523caf69'
[IPKernelApp] ERROR | Invalid Control Message
Traceback (most recent call last):
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/ipykernel/kernelbase.py", line 341, in process_control
msg = self.session.deserialize(msg, content=True, copy=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/hunk/projects/orchestrator/.venv/lib64/python3.12/site-packages/jupyter_client/session.py", line 1074, in deserialize
raise ValueError(msg)
ValueError: Invalid Signature: b'17549cb2cc7d718794092782eec4fd8f9adc4969e32c9afa256917bb3d2cebeb'
thread caused non-unwinding panic. aborting.
Note these kernel panics might overlap with the lack of ARM support. Ironically I prefer to use ARM too. I fell back to an older machine which is why I'm using polars-lts-cpu to try it on an Intel x86_64 machine. My Sandy Bridge i5 CPU does not support AVX2 which polars uses. polars-lts-cpu disables AVX2 instructions.
The text was updated successfully, but these errors were encountered:
Note: This is three different issues in one. I'm reporting it this way because I don't know if the three issues are connected or not.
First I install polars_talib by doing a
%pip install --no-deps polars_talib
. Note that I have to do--no-deps
because polars_talib puts polars as a prerequisite package, but I'm using the polars-lts-cpu package.Issue #1: polars_talib installs the polars package, but there are multiple polars packages.
pip install polars_talib
should not install the polars package.Issue #2: "'Expr' object has no attribute 'ta'",
This is my first attempt to run
.ta.ema(...)
. Upon running it here is the output I get:Issue #3: Kernel panics and crashes.
I figured issue #2 was caused by an old version of Polars, so I updated from version
polars-lts-cpu~=1.9.0
topolars-lts-cpu~=1.17.1
. (Also note I'm running Python version 3.12.7 right now.)Here's the new kernel panic output:
Note these kernel panics might overlap with the lack of ARM support. Ironically I prefer to use ARM too. I fell back to an older machine which is why I'm using
polars-lts-cpu
to try it on an Intel x86_64 machine. My Sandy Bridge i5 CPU does not support AVX2 which polars uses.polars-lts-cpu
disables AVX2 instructions.The text was updated successfully, but these errors were encountered: