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 while importing "from ts2vg import NaturalVG" #21

Open
sahaj432 opened this issue Mar 1, 2023 · 5 comments
Open

error while importing "from ts2vg import NaturalVG" #21

sahaj432 opened this issue Mar 1, 2023 · 5 comments

Comments

@sahaj432
Copy link

sahaj432 commented Mar 1, 2023

I also tried to downgrade numpy library


ValueError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 from ts2vg import NaturalVG

File ~/.local/lib/python3.9/site-packages/ts2vg/init.py:2, in
1 from ts2vg._version import version
----> 2 from ts2vg.graph.natural import NaturalVG
3 from ts2vg.graph.horizontal import HorizontalVG
5 all = [
6 'NaturalVG',
7 'HorizontalVG',
8 ]

File ~/.local/lib/python3.9/site-packages/ts2vg/graph/natural.py:3, in
1 from typing import Optional
----> 3 from ts2vg.graph._natural import _compute_graph as _compute_graph_dc
4 from ts2vg.graph._natural_penetrable import _compute_graph as _compute_graph_pn
5 from ts2vg.graph.base import VG

File ts2vg/graph/_natural.pyx:1, in init ts2vg.graph._natural()

ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 232 from C header, got 216 from PyObject

@CarlosBergillos
Copy link
Owner

I can't reproduce it.

What version of numpy do you have installed? And what version of ts2vg?

@nhaboudal
Copy link

hello , I am trying to install ts2vg using pip install ts2vg but I get this error.
Im using visual code studio and python 3.11

Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.

@CarlosBergillos
Copy link
Owner

Hi @nhaboudal, if your error happens during installation, and not during import, consider opening a separate issue.
Make sure to provide a complete error log, and details about what operating system you are using. Thanks!

@1004790871
Copy link

I also had the same problem, from ts2vg import NaturalVG reported an error, showing that it was not compatible with numpy, this error may indicate a binary incompatibility between different versions of numpy.I wonder which is your numpy version

@1004790871
Copy link

我也有同样的问题,从 ts2vg 导入 NaturalVG 报告了一个错误,表明它与 numpy 不兼容,此错误可能表明不同版本的 numpy 之间的二进制不兼容。我想知道哪个是你的数字版本

numpy==1.21.0 ts2vg==1.2.2

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

4 participants