Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Issue after building tag 0.38.0 #1004

Description

@sakshamkumar-byt

Hi I am facing the following error after building 0.38.0

(test_new) saksham.kumar@n248-157-240:~/sdc$ python
Python 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import pandas as pd
from numba import njit
@njit
def dataframe_copy():
df = pd.DataFrame({'A': [1.0, 2.0, 3.0, 1.0], 'B': [4, 5, 6, 7]})
new_df = df.copy(deep=True)
return new_df
print(dataframe_copy())
/home/saksham.kumar/miniconda3/envs/test_new/lib/python3.7/site-packages/numba/core/dispatcher.py:237: UserWarning: Numba extension module 'sdc' failed to load due to 'ImportError(cannot import name 'hstr_ext' from 'sdc' (/data00/home/saksham.kumar/sdc/sdc/__init__.py))'.
entrypoints.init_all()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/saksham.kumar/miniconda3/envs/test_new/lib/python3.7/site-packages/numba/core/dispatcher.py", line 414, in _compile_for_args
error_rewrite(e, 'typing')
File "/home/saksham.kumar/miniconda3/envs/test_new/lib/python3.7/site-packages/numba/core/dispatcher.py", line 357, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Unknown attribute 'DataFrame' of type Module(<module 'pandas' from '/home/saksham.kumar/miniconda3/envs/test_new/lib/python3.7/site-packages/pandas/__init__.py'>)

I am at tag 0.38.0

conda list output:

conda list
# packages in environment at /home/saksham.kumar/miniconda3/envs/test_new:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main _openmp_mutex 4.5 1_gnu arrow-cpp 2.0.0 py37hced866c_0 blas 1.0 mkl boost-cpp 1.73.0 h27cfd23_11 brotli 1.0.9 he6710b0_2 bzip2 1.0.8 h7b6447c_0 c-ares 1.18.1 h7f8727e_0 ca-certificates 2022.2.1 h06a4308_0 certifi 2021.10.8 py37h06a4308_2 double-conversion 3.1.5 he6710b0_1 gflags 2.2.2 he6710b0_0 glog 0.5.0 h2531618_0 grpc-cpp 1.26.0 hf8bcb03_0 icu 58.2 he6710b0_3 intel-openmp 2021.4.0 h06a4308_3561 ld_impl_linux-64 2.35.1 h7274673_9 libboost 1.73.0 h3ff78a5_11 libevent 2.1.12 h8f2d780_0 libffi 3.3 he6710b0_2 libgcc-ng 9.3.0 h5101ec6_17 libgomp 9.3.0 h5101ec6_17 libllvm10 10.0.1 hbcb73fb_5 libprotobuf 3.11.2 hd408876_0 libstdcxx-ng 9.3.0 hd4cf53a_17 libthrift 0.13.0 hfb8234f_6 llvmlite 0.35.0 py37h612dafd_4 lz4-c 1.9.3 h295c915_1 mkl 2021.4.0 h06a4308_640 mkl-service 2.4.0 py37h7f8727e_0 mkl_fft 1.3.1 py37hd3c417c_0 mkl_random 1.2.2 py37h51133e4_0 ncurses 6.3 h7f8727e_2 numba 0.52.0 py37ha9443f7_0 numpy 1.21.2 py37h20f2e39_0 numpy-base 1.21.2 py37h79a1101_0 openssl 1.1.1m h7f8727e_0 orc 1.6.5 h973521d_1 pandas 1.2.0 py37ha9443f7_0 pip 21.2.2 py37h06a4308_0 pyarrow 2.0.0 py37he0739d4_0 python 3.7.11 h12debd9_0 python-dateutil 2.8.2 pyhd3eb1b0_0 pytz 2021.3 pyhd3eb1b0_0 re2 2020.11.01 h2531618_1 readline 8.1.2 h7f8727e_1 sdc 0.38.0 py37h628d7e0_0 file:///data00/home/saksham.kumar/sdc/output
setuptools 58.0.4 py37h06a4308_0 six 1.16.0 pyhd3eb1b0_1 snappy 1.1.8 he6710b0_0 sqlite 3.37.2 hc218d9a_0 tbb 2020.3 hfd86e86_0 tbb4py 2020.3 py37hfd86e86_0 tk 8.6.11 h1ccaba5_0 uriparser 0.9.3 he6710b0_1 utf8proc 2.6.1 h27cfd23_0 wheel 0.37.1 pyhd3eb1b0_0 xz 5.2.5 h7b6447c_0 zlib 1.2.11 h7f8727e_4 zstd 1.4.9 haebb681_0 

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