Skip to content

Cant import Modin.Spreadsheet after installation #52

Description

@Algaliareptile

Environment

  • Operating System: win 11
  • Python Version: $Python 3.11.9
  • How did you install modin-spreadsheet: (`pip``)
  • Python packages: $ aiofiles==22.1.0 aiosignal==1.3.1 aiosqlite==0.20.0 analytics-python==1.4.post1 anyio==4.3.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==2.4.1 async-lru==2.0.4 attrs==23.2.0 Babel==2.15.0 backoff==1.10.0 beautifulsoup4==4.12.3 bleach==6.1.0 certifi==2024.2.2 cffi==1.16.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cloudpickle==3.0.0 cloup==3.0.5 colorama==0.4.6 comm==0.2.2 dask==2024.5.1 dataframe_api_compat==0.2.7 debugpy==1.8.1 decorator==5.1.1 defusedxml==0.7.1 distributed==2024.5.1 entrypoints==0.4 et-xmlfile==1.1.0 executing==2.0.1 fastjsonschema==2.19.1 filelock==3.14.0 fqdn==1.5.1 frozenlist==1.4.1 fsspec==2024.5.0 glcontext==2.5.0 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 idna==3.7 importlib_metadata==7.1.0 ipykernel==6.29.4 ipysheet==0.7.0 ipython==8.24.0 ipython-genutils==0.2.0 ipywidgets==8.1.2 isoduration==20.11.0 isosurfaces==0.1.2 jedi==0.19.1 Jinja2==3.1.4 json5==0.9.25 jsonpointer==2.4 jsonschema==4.22.0 jsonschema-specifications==2023.12.1 jupyter==1.0.0 jupyter-console==6.6.3 jupyter-events==0.10.0 jupyter-lsp==2.2.5 jupyter-ydoc==0.2.5 jupyter_client==7.4.9 jupyter_core==5.7.2 jupyter_server==2.14.0 jupyter_server_fileid==0.9.2 jupyter_server_terminals==0.5.3 jupyter_server_ydoc==0.8.0 jupyterlab==3.6.7 jupyterlab_pygments==0.3.0 jupyterlab_server==2.27.2 jupyterlab_widgets==3.0.10 locket==1.0.0 manim==0.18.1 ManimPango==0.5.0 mapbox-earcut==1.0.1 markdown-it-py==3.0.0 MarkupSafe==2.1.5 matplotlib-inline==0.1.7 mdurl==0.1.2 mistune==3.0.2 mitoinstaller==0.0.310 mitosheet==0.1.575 moderngl==5.10.0 moderngl-window==2.4.6 modin==0.30.0 modin-spreadsheet==0.1.2 monotonic==1.6 msgpack==1.0.8 multipledispatch==1.0.0 nbclassic==1.1.0 nbclient==0.10.0 nbconvert==7.16.4 nbformat==5.10.4 nest-asyncio==1.6.0 networkx==3.3 notebook==6.5.7 notebook_shim==0.2.4 numpy==1.26.4 openpyxl==3.1.2 overrides==7.7.0 packaging==24.0 pandas==2.2.2 pandocfilters==1.5.1 parso==0.8.4 partd==1.4.2 pillow==10.3.0 platformdirs==4.2.2 plotly==5.22.0 prometheus_client==0.20.0 prompt-toolkit==3.0.43 protobuf==5.27.0 psutil==5.9.8 pure-eval==0.2.2 pyarrow==16.1.0 pycairo==1.26.0 pycparser==2.22 pydub==0.25.1 pyglet==2.0.15 Pygments==2.18.0 pyrr==0.10.3 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 pytz==2024.1 pywin32==306 pywinpty==2.0.13 PyYAML==6.0.1 pyzmq==26.0.3 qtconsole==5.5.2 QtPy==2.4.1 ray==2.20.0 referencing==0.35.1 requests==2.32.2 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rpds-py==0.18.1 scipy==1.13.0 screeninfo==0.8.1 Send2Trash==1.8.3 six==1.16.0 skia-pathops==0.8.0.post1 sniffio==1.3.1 sortedcontainers==2.4.0 soupsieve==2.5 srt==3.5.3 stack-data==0.6.3 svgelements==1.9.6 tblib==3.0.0 tenacity==8.3.0 termcolor==2.4.0 terminado==0.18.1 tinycss2==1.3.0 toolz==0.12.1 tornado==6.4 tqdm==4.66.4 traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 typing_extensions==4.11.0 tzdata==2024.1 uri-template==1.3.0 urllib3==2.2.1 watchdog==4.0.0 wcwidth==0.2.13 webcolors==1.13 webencodings==0.5.1 websocket-client==1.8.0 widgetsnbextension==4.0.10 y-py==0.6.2 ypy-websocket==0.8.4 zict==3.0.0 zipp==3.19.0

Description of Issue

cant import modin.spreedsheat after pip install modin[all]
modin.spreedsheat doesnt even exist then

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[11], line 1
----> 1 import modin.spreadsheet

ModuleNotFoundError: No module named 'modin.spreadsheet'

this also doesnt work:

# This notebook expects that Modin and Ray are installed, e.g. by `pip install modin[ray]`.
# For all ways to install Modin see official documentation at:
# https://modin.readthedocs.io/en/latest/installation.html
​
​
# modin-spreadsheet is the pip distribution name, modin_spreadsheet is the import name
import modin_spreadsheet
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[8], line 7
      1 # This notebook expects that Modin and Ray are installed, e.g. by `pip install modin[ray]`.
      2 # For all ways to install Modin see official documentation at:
      3 # https://modin.readthedocs.io/en/latest/installation.html
      4 
      5 
      6 # modin-spreadsheet is the pip distribution name, modin_spreadsheet is the import name
----> 7 import modin_spreadsheet

File C:\Python311\Lib\site-packages\modin_spreadsheet\__init__.py:6
      3 except ImportError:
      4     raise ImportError("Please run `pip install modin`")
----> 6 from .grid import (
      7     enable,
      8     disable,
      9     set_defaults,
     10     on,
     11     off,
     12     set_grid_option,
     13     show_grid,
     14     SpreadsheetWidget,
     15 )
     16 from ._version import get_versions
     19 def _jupyter_nbextension_paths():

File C:\Python311\Lib\site-packages\modin_spreadsheet\grid.py:558
    554     else:
    555         return str(x)
--> 558 @widgets.register()
    559 class SpreadsheetWidget(widgets.DOMWidget):
    560     """
    561     The widget class which is instantiated by the ``show_grid`` method. This
    562     class can be constructed directly but that's not recommended because
   (...)
    598 
    599     """
    601     _view_name = Unicode("ModinSpreadsheetView").tag(sync=True)

TypeError: register() missing 1 required positional argument: 'widget' 

Question

have I done my setup wrong? hasthe documentation changed or are the examples outdated?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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