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

[Feature Request]能不能将第三方模块版本号详细说明一下? #209

Open
komorebich opened this issue Sep 9, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@komorebich
Copy link

Welcome to request a new feature! To help us better understand your request, please provide the following information:

  1. A clear and concise description of the requested feature.
  2. Tell us why the feature will be useful.
  3. If possible, please show related codes.

numpy和skimage报错ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
欢迎提出一个新的功能需求。为了帮助我们更好理解您的需求,辛苦您提供以下信息:

  1. 请使用清晰简洁的语言描述该项功能需求。
  2. 请分析这个功能的必要性。
  3. 如果可能的话,请提供相关代码实现效果。
@komorebich komorebich added the enhancement New feature or request label Sep 9, 2024
@github-actions github-actions bot added the triage new issue/PR waiting to be dealed label Sep 9, 2024
@github-actions github-actions bot removed the triage new issue/PR waiting to be dealed label Sep 9, 2024
@Bobholamovic
Copy link
Member

我们限制了部分依赖的最低版本,而没有固定具体的依赖版本,以使paddlers可以在不同的环境工作。请问可以提供一下你使用的操作系统以及python、pip、setuptools的版本吗?

@komorebich
Copy link
Author

python3.8
setuptools 68.2.0
我的部分环境如下
GDAL 3.4.3
numpy 1.18.5
packaging 24.1
paddlepaddle 2.6.1
paddleslim 2.3.4
partd 1.4.1
pillow 10.4.0
pip 23.2.1
scikit-image 0.14.0
scikit-learn 0.23.2
scipy 1.10.1
setuptools 68.2.0
zipp 3.20.1
现在报错是这样的
from . import framework
File "D:\2024\workspace\Mywork\py38enve\lib\site-packages\paddle\base\framework.py", line 33, in
import numpy as np
File "D:\2024\workspace\Mywork\py38enve\lib\site-packages\numpy_init_.py", line 142, in
from . import core
File "D:\2024\workspace\Mywork\py38enve\lib\site-packages\numpy\core_init_.py", line 24, in
from . import multiarray
File "D:\2024\workspace\Mywork\py38enve\lib\site-packages\numpy\core\multiarray.py", line 14, in
from . import overrides
File "D:\2024\workspace\Mywork\py38enve\lib\site-packages\numpy\core\overrides.py", line 16, in
add_docstring(
RuntimeError: implement_array_function method already has a docstring
好像还是版本不兼容

@komorebich
Copy link
Author

我们限制了部分依赖的最低版本,而没有固定具体的依赖版本,以使paddlers可以在不同的环境工作。请问可以提供一下你使用的操作系统以及python、pip、setuptools的版本吗?

我们限制了部分依赖的最低版本,而没有固定具体的依赖版本,以使paddlers可以在不同的环境工作。请问可以提供一下你使用的操作系统以及python、pip、setuptools的版本吗?

当numpy是1.19.x(1.18.0)时,报错ImportError: cannot import name '_validate_lengths' from 'numpy.lib.arraypad'
当numpy是1.18.5时,报错RuntimeError: implement_array_function method already has a docstring
当numpy是1.20.0时,报错AttributeError: module 'numpy.typing' has no attribute 'NDArray'

@Bobholamovic
Copy link
Member

考虑可能是新版本pip的build-isolation行为的影响,建议先卸载numpy,然后降级pip和setuptools版本(pip 20.3、setuptools 65.5)尝试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants