acxz / pkgbuilds

PKGBUILDs for Arch Linux
25 stars 43 forks source link

[python-torch-geometric] Runtime error when importing the library #250

Closed nihil39 closed 6 months ago

nihil39 commented 1 year ago

The following code

import torch
import torch.nn as nn
import torch_geometric
import torch_scatter

gives the following error:

OSError: /home/massimo/.local/lib/python3.11/site-packages/torch_scatter/_version_cpu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs

The problem is in Pytorch Geometric because importing only Pytorch works without issues.

No build errors this time.

nihil39 commented 1 year ago

Can someone reproduce the bug?

nihil39 commented 1 year ago

This package is a mess to maintain I think, maybe it would be better to advise to use it in a separate Python virtual environment.

acxz commented 10 months ago

Based on the filepath of the library causing the error, it looks like you have a local installation of torch_scatter. Can you remove any local python libraries to prevent python from potentially using incorrect python library versions?

For reference I am not able to reproduce the error you are seeing.

acxz commented 6 months ago

Closing this issue due to inactivity.