Skip to content

Can you add support for win system? #53

@angelfish0808

Description

@angelfish0808

Although I saw a previous issue mentioning Windows support, I still tried it myself. The installation went smoothly, but the configuration file couldn't be read. I also found that pexpect is a pure Linux/macOS module and is not available by default on Windows (because it relies on UNIX PTYs). Therefore, running the MariaDB Jupyter kernel on Windows results in this error. After all these years, are there any plans to add support for Windows? The following is the error message:

python -m mariadb_kernel
NOTE: When using the ipython kernel entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process by either sending "quit" from a client or using Ctrl-\ in UNIX-like environments. To read more about this, see ipython/ipython#2049. To connect another client to this kernel, use: --existing kernel-4420.json. Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "D:\python\Lib\site-packages\mariadb_kernel_main.py", line 4, in IPKernelApp.launch_instance(kernel_class=MariaDBKernel) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\traitlets\config\application.py", line 1074, in launch_instance app.initialize(argv) ~~~~~~~~~~~~~~^^^^^^ File "D:\python\Lib\site-packages\traitlets\config\application.py", line 118, in inner return method(app, *args, **kwargs) File "D:\python\Lib\site-packages\ipykernel\kernelapp.py", line 726, in initialize self.init_kernel() ~~~~~~~~~~~~~~~^^ File "D:\python\Lib\site-packages\ipykernel\kernelapp.py", line 573, in init_kernel kernel = kernel_factory( parent=self, ...<12 lines>... user_ns=self.user_ns, ) File "D:\python\Lib\site-packages\traitlets\config\configurable.py", line 583, in instance inst = cls(*args, **kwargs) File "D:\python\Lib\site-packages\mariadb_kernel\kernel.py", line 51, in init self.mariadb_client.start() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "D:\python\Lib\site-packages\mariadb_kernel\mariadb_client.py", line 73, in start self._launch_client() ~~~~~~~~~~~~~~~~~~^^ File "D:\python\Lib\site-packages\mariadb_kernel\mariadb_client.py", line 64, in _launch_client self.maria_repl = MariaREPL( ~~~~~~~~~^ self.cmd, ^^^^^^^^^ ...<2 lines>... continuation_prompt=None, ^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\python\Lib\site-packages\mariadb_kernel\mariadb_client.py", line 15, in init replwrap.REPLWrapper.init(self, *args, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\pexpect\replwrap.py", line 38, in init self.child = pexpect.spawn(cmd_or_spawn, echo=False, encoding='utf-8') ^^^^^^^^^^^^^ AttributeError: module 'pexpect' has no attribute 'spawn'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions