Skip to content

polars failed to import after install version newer than 0.20.16 #15450

@l1t1

Description

@l1t1

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

pip install jupysql duckdb-engine
pip install asqlcell
pip install polars -U

then

C:\Users\LD>python
Python 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import polars as pl
D:\Python38\lib\site-packages\polars\meta\build.py:5: UserWarning: Polars binary is missing!
  from polars._utils.polars_version import get_polars_version
>>> df = pl.read_parquet("d:/1687.zstd.parquet")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python38\lib\site-packages\polars\_utils\deprecation.py", line 134, in wrapper
    return function(*args, **kwargs)
  File "D:\Python38\lib\site-packages\polars\_utils\deprecation.py", line 134, in wrapper
    return function(*args, **kwargs)
  File "D:\Python38\lib\site-packages\polars\io\parquet\functions.py", line 171, in read_parquet
    lf = scan_parquet(
  File "D:\Python38\lib\site-packages\polars\_utils\deprecation.py", line 134, in wrapper
    return function(*args, **kwargs)
  File "D:\Python38\lib\site-packages\polars\_utils\deprecation.py", line 134, in wrapper
    return function(*args, **kwargs)
  File "D:\Python38\lib\site-packages\polars\io\parquet\functions.py", line 311, in scan_parquet
    return pl.LazyFrame._scan_parquet(
  File "D:\Python38\lib\site-packages\polars\lazyframe\frame.py", line 472, in _scan_parquet
    self._ldf = PyLazyFrame.new_from_parquet(
NameError: name 'PyLazyFrame' is not defined

Log output

No response

Issue description

all features of polars cannot be use

Expected behavior

it works as normal

Installed versions

--------Version info---------
Polars:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python38\lib\site-packages\polars\meta\versions.py", line 53, in show_versions
    print(f"{'Index type:':{keylen}s} {get_index_type()}")
  File "D:\Python38\lib\site-packages\polars\meta\index_type.py", line 27, in get_index_type
    return plr.get_index_type()
NameError: name 'plr' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageAwaiting prioritization by a maintainerpythonRelated to Python Polars

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions