oracle / graalpython

A Python 3 implementation built on GraalVM
Other
1.2k stars 103 forks source link

pandas timestamp error #348

Closed syan-cn closed 1 year ago

syan-cn commented 1 year ago

I installed GraalVM 23.0.1 on my MacOS 11.6.7, and run gu install python to install GraalPython 3.10.8. After that, I created a virtual environment and run pip install pandas==1.5.2. But when I used pandas, I found it raised error in the use of pd.Timestamp(). And I reproduced this problem using the simple code below.

Python 3.10.8 (Tue Jul 11 06:06:31 PDT 2023)
[Graal, Oracle GraalVM, Java 17.0.8] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> pd.Timestamp(2023, 1, 1)
[1]    46035 illegal hardware instruction  python
msimacek commented 1 year ago

Works for me on the current nightly snapshot build, could you please try that? Also please try to install pandas with pip install --no-cache to make sure you have the most recent patches.

syan-cn commented 1 year ago

Works for me on the current nightly snapshot build, could you please try that? Also please try to install pandas with pip install --no-cache to make sure you have the most recent patches.

Thanks, it worked well for me after I removed all about the version 23.0.1 and updated to 23.1.0.