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

Error Installation #129

Open
hanhandata opened this issue Aug 15, 2023 · 7 comments
Open

Error Installation #129

hanhandata opened this issue Aug 15, 2023 · 7 comments

Comments

@hanhandata
Copy link

hanhandata commented Aug 15, 2023

Hi @Secbone and All,

I have stuck about installation, do you know about error the below ?

 cdef number[:] c_sum_axis_1(number[:,:] arr):
          cdef number[:] res = np.zeros(arr.shape[0], dtype=float)
               ^
      ------------------------------------------------------------
      
      toad/c_utils.pyx:40:9: 'number' is not a type identifier
      Compiling toad/c_utils.pyx because it changed.
      Compiling toad/merge.pyx because it changed.
      [1/2] Cythonizing toad/c_utils.pyx
      Traceback (most recent call last):
        File "/Users/nbmhqa114/anaconda3/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/nbmhqa114/anaconda3/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/nbmhqa114/anaconda3/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/s_/2cqjhlf54rd53_wlvmjgvcv80000gn/T/pip-build-env-57tm1n23/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/s_/2cqjhlf54rd53_wlvmjgvcv80000gn/T/pip-build-env-57tm1n23/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/s_/2cqjhlf54rd53_wlvmjgvcv80000gn/T/pip-build-env-57tm1n23/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 59, in <module>
        File "<string>", line 27, in get_ext_modules
        File "/private/var/folders/s_/2cqjhlf54rd53_wlvmjgvcv80000gn/T/pip-build-env-57tm1n23/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
          cythonize_one(*args)
        File "/private/var/folders/s_/2cqjhlf54rd53_wlvmjgvcv80000gn/T/pip-build-env-57tm1n23/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
          raise CompileError(None, pyx_file)
      Cython.Compiler.Errors.CompileError: toad/c_utils.pyx
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

image

Han

@Secbone
Copy link
Member

Secbone commented Aug 27, 2023

@hanhandata could you try to update your cython version or install toad from whl file from pypi?

@hanhandata
Copy link
Author

Hi @Secbone I will try

@septem9908
Copy link

septem9908 commented Oct 24, 2023

python 3.10.12
cython 3.0.4 (most updated)
pip 23.3.1 (most updated)
failed to install toad 0.1.2, with the same error message above

@kulig1985
Copy link

Same happens for me.. Any solution?

@Secbone
Copy link
Member

Secbone commented Dec 10, 2023

python 3.10.12 cython 3.0.4 (most updated) pip 23.3.1 (most updated) failed to install toad 0.1.2, with the same error message above

@septem9908 what is your numpy version? could your has some error details?

@Secbone
Copy link
Member

Secbone commented Dec 10, 2023

Same happens for me.. Any solution?

@kulig1985 have some details?

@DjokerR
Copy link

DjokerR commented Feb 23, 2024

os: openeuler-arm64
python: 3.9.17

1、下载toad-0.1.3.tar.gz 并解压到/tmp 目录下
tar -zxvf toad-0.1.3.tar.gz -C /tmp/

2、 pip --version 找到python site-packages 路径
比如我的是/opt/conda/lib/python3.9/site-packages

3、将解压后的toad下所有的文件拷贝到site-packages 路径下
cp -r /tmp/toad-0.1.3/* /opt/conda/lib/python3.9/site-packages

4、到site-packages 路径下 pip install toad
cd /opt/conda/lib/python3.9/site-packages && pip install toad

5、到任意目录下执行python -c "import toad ;print(toad.version)"

6、注意: 如果不将toad 放到python site-packages目录下,是无法在任意目录import toad

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

No branches or pull requests

5 participants