Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Installation from conda-forge yields No module named 'lib2to3' #670

Open
WillAyd opened this issue Dec 19, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@WillAyd
Copy link

WillAyd commented Dec 19, 2024

Describe the bug
When installing pygwalker via conda, the actual installation works, but subsequent import yields:

----> 1 import pygwalker as pyg

File ~/miniforge3/envs/scratchpad/lib/python3.13/site-packages/pygwalker/__init__.py:16
     13 __version__ = "0.3.17"
     14 __hash__ = __rand_str()
---> 16 from pygwalker.api.walker import walk
     17 from pygwalker.api.gwalker import GWalker
     18 from pygwalker.api.html import to_html

File ~/miniforge3/envs/scratchpad/lib/python3.13/site-packages/pygwalker/api/walker.py:10
      8 from pygwalker.data_parsers.database_parser import Connector
      9 from pygwalker._typing import DataFrame
---> 10 from pygwalker.services.format_invoke_walk_code import get_formated_spec_params_code_from_frame
     11 from pygwalker.services.kaggle import auto_set_kanaries_api_key_on_kaggle, adjust_kaggle_default_font_size
     12 from pygwalker.utils.execute_env_check import check_convert, get_kaggle_run_type, check_kaggle

File ~/miniforge3/envs/scratchpad/lib/python3.13/site-packages/pygwalker/services/format_invoke_walk_code.py:3
      1 from typing import Optional, List, Any
      2 from types import FrameType
----> 3 from lib2to3 import fixer_base, refactor
      4 import logging
      5 import inspect

ModuleNotFoundError: No module named 'lib2to3'

To Reproduce

$ conda install pygwalker
... # open REPL
>>> import pygwalker

Expected behavior
Import should work

Versions

  • pygwalker version: 0.3.17
  • python version: 3.13.1
  • browser

Additional context
A pip install seems to be successful, and installs a newer version (0.4.9.13) so I'm guessing the conda-forge recipe is just outdated?

@WillAyd WillAyd added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant