marius-team / marius

Large scale graph learning on a single machine.
https://marius-project.org
Apache License 2.0
160 stars 45 forks source link

Cannot import marius #103

Closed qhtjrmin closed 2 years ago

qhtjrmin commented 2 years ago

Hello, I installed marius on my local server, using the command 'pip3 install .'. I successfully installed it, but I cannot import marius.

If I try to import marius or run 'marius_preprocess', then I get the error below:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/.conda/envs/marius/lib/python3.7/site-packages/marius/__init__.py", line 13, in <module>
    from . import _config as config
ImportError: /home/.conda/envs/marius/lib/python3.7/site-packages/marius/libmarius.so: undefined symbol: _ZNSt12experimental10filesystem2v16statusERKNS1_4pathE

Could I fix it and run marius??

The following is my setting:

cmake:
  version: 3.13.2
cpu_info:
  num_cpus: 64
  total_memory: 754GB
cuda:
  version: '10.2'
gpu_info:
  - memory: 24GB
    name: NVIDIA TITAN RTX
marius:
  bindings_installed: false
  install_path: N/A
  version: N/A
openmp:
  version: '201511'
operating_system:
  platform: Linux-4.15.0-162-generic-x86_64-with-debian-buster-sid
pybind:
  PYBIND11_BUILD_ABI: _cxxabi1011
  PYBIND11_COMPILER_TYPE: _gcc
  PYBIND11_STDLIB: _libstdcpp
python:
  compiler: GCC 7.5.0
  deps:
    breathe_version: 4.33.1
    numpy_version: 1.21.6
    omegaconf_version: 2.2.1
    pandas_version: 1.3.5
    pip_version: 21.2.2
    pyspark_version: 3.2.1
    pytest_version: 7.1.2
    sphinx_rtd_theme_version: 1.0.0
    torch_version: 1.8.1+cu102
    tox_version: 3.25.0
  version: 3.7.13
pytorch:
  install_path: /home/.conda/envs/marius/lib/python3.7/site-packages/torch
  version: 1.8.1+cu102

Thanks

JasonMoho commented 2 years ago

Thanks for surfacing this. I believe the issue here is that gcc-7 does not support the filesystem C++ header, which we use to help manage files for checkpointing.

I'll remove the dependency on this header. Until then you can try upgrading your compiler to gcc-8 or above, which should fix the issue.

JasonMoho commented 2 years ago

I pushed a fix so things should work with gcc-7 now. Let me know if it works.

qhtjrmin commented 2 years ago

Oh, now it works well! Thanks for it.