Value error: invalid argument with PyPy when importing pandas and plotly
Value error: invalid argument with PyPy when importing pandas and plotly
将 pandas 和 pyplot 模块导入 pypy 时出现以下错误。
Python 3.6.1 (784b254d6699, Apr 16 2019, 12:10:48)
[PyPy 7.1.1-beta0 with MSC v.1910 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``rpython: syntax and semantics of
python, speed of c, restrictions of java and compiler error messages as
penetrable as MUMPS''
>>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\pypy3.6-v7.1.1-win32\site-packages\pandas\__init__.py", line 13, in <
module>
__import__(dependency)
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\__init__.py", line 20, in <mo
dule>
from pytz.tzinfo import unpickler, BaseTzInfo
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\tzinfo.py", line 27, in <modu
le>
_epoch = datetime.utcfromtimestamp(0)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1484, in utcfrom
timestamp
return cls._fromtimestamp(t, True, None)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1459, in _fromti
mestamp
y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
ValueError: Invalid argument
>>>> import plotly
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\__init__.py", line 32, in <
module>
from plotly import (
File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\graph_objs\__init__.py", li
ne 3, in <module>
from plotly.basedatatypes import BaseLayoutType as _BaseLayoutType
File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\basedatatypes.py", line 12,
in <module>
from _plotly_utils.utils import _natural_sort_strings
File "C:\pypy3.6-v7.1.1-win32\site-packages\_plotly_utils\utils.py", line 6, i
n <module>
import pytz
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\__init__.py", line 20, in <mo
dule>
from pytz.tzinfo import unpickler, BaseTzInfo
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\tzinfo.py", line 27, in <modu
le>
_epoch = datetime.utcfromtimestamp(0)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1484, in utcfrom
timestamp
return cls._fromtimestamp(t, True, None)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1459, in _fromti
mestamp
y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
ValueError: Invalid argument
这些模块使用 pip 安装得很好,我在使用 numpy 时没有遇到同样的问题。我知道在 pypy 网站上它说它支持 pandas 那么可能是什么问题?
编辑:另外,当我进入 pypy -> help() -> modules -> pandas 被列出但是当我进入它时,它 returns:
problem in pandas - ValueError: Invalid argument
编辑 2:我尝试创建一个 virtualenv 并且发生了完全相同的事情。 Numpy 很好,其余的包抛出无效参数错误...
这已于 5 月修复,但尚未随修复一起发布新版本。您可以使用我们 nightly builds which is http://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-96765-24757bd09ed9-win32.zip
下载的最新有效(非 0MB)windows
将 pandas 和 pyplot 模块导入 pypy 时出现以下错误。
Python 3.6.1 (784b254d6699, Apr 16 2019, 12:10:48)
[PyPy 7.1.1-beta0 with MSC v.1910 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``rpython: syntax and semantics of
python, speed of c, restrictions of java and compiler error messages as
penetrable as MUMPS''
>>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\pypy3.6-v7.1.1-win32\site-packages\pandas\__init__.py", line 13, in <
module>
__import__(dependency)
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\__init__.py", line 20, in <mo
dule>
from pytz.tzinfo import unpickler, BaseTzInfo
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\tzinfo.py", line 27, in <modu
le>
_epoch = datetime.utcfromtimestamp(0)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1484, in utcfrom
timestamp
return cls._fromtimestamp(t, True, None)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1459, in _fromti
mestamp
y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
ValueError: Invalid argument
>>>> import plotly
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\__init__.py", line 32, in <
module>
from plotly import (
File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\graph_objs\__init__.py", li
ne 3, in <module>
from plotly.basedatatypes import BaseLayoutType as _BaseLayoutType
File "C:\pypy3.6-v7.1.1-win32\site-packages\plotly\basedatatypes.py", line 12,
in <module>
from _plotly_utils.utils import _natural_sort_strings
File "C:\pypy3.6-v7.1.1-win32\site-packages\_plotly_utils\utils.py", line 6, i
n <module>
import pytz
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\__init__.py", line 20, in <mo
dule>
from pytz.tzinfo import unpickler, BaseTzInfo
File "C:\pypy3.6-v7.1.1-win32\site-packages\pytz\tzinfo.py", line 27, in <modu
le>
_epoch = datetime.utcfromtimestamp(0)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1484, in utcfrom
timestamp
return cls._fromtimestamp(t, True, None)
File "C:\pypy3.6-v7.1.1-win32\lib-python\datetime.py", line 1459, in _fromti
mestamp
y, m, d, hh, mm, ss = converter(t - max_fold_seconds)[:6]
ValueError: Invalid argument
这些模块使用 pip 安装得很好,我在使用 numpy 时没有遇到同样的问题。我知道在 pypy 网站上它说它支持 pandas 那么可能是什么问题?
编辑:另外,当我进入 pypy -> help() -> modules -> pandas 被列出但是当我进入它时,它 returns:
problem in pandas - ValueError: Invalid argument
编辑 2:我尝试创建一个 virtualenv 并且发生了完全相同的事情。 Numpy 很好,其余的包抛出无效参数错误...
这已于 5 月修复,但尚未随修复一起发布新版本。您可以使用我们 nightly builds which is http://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-96765-24757bd09ed9-win32.zip
下载的最新有效(非 0MB)windows