ts2vg icon indicating copy to clipboard operation
ts2vg copied to clipboard

error while importing "from ts2vg import NaturalVG"

Open sahaj432 opened this issue 1 year ago • 5 comments

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

sahaj432 avatar Mar 01 '23 22:03 sahaj432

I can't reproduce it.

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

CarlosBergillos avatar Mar 02 '23 09:03 CarlosBergillos

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.

nhaboudal avatar Apr 05 '23 21:04 nhaboudal

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!

CarlosBergillos avatar Apr 06 '23 13:04 CarlosBergillos

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 avatar Jul 04 '23 03:07 1004790871

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

numpy==1.21.0 ts2vg==1.2.2

1004790871 avatar Jul 04 '23 03:07 1004790871