Skip to content

Fix numpy issue libstdc++.so.6 not found #3080

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

Closed
wants to merge 2 commits into from

Conversation

spcyppt
Copy link
Contributor

@spcyppt spcyppt commented Sep 4, 2024

Differential Revision: D62210034

Copy link

netlify bot commented Sep 4, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 2fb2036
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/66d91effb20ebd0008416881
😎 Deploy Preview https://deploy-preview-3080--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 4, 2024
Summary: Pull Request resolved: pytorch#3080

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 4, 2024
Summary: Pull Request resolved: pytorch#3080

Differential Revision: D62210034
Differential Revision: D62215845
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 4, 2024
Summary:
Pull Request resolved: pytorch#3080

`conda-forge` on Nova installs `numpy` version 2.0.0 which causes error
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
However, the default version installed by `conda-forge` elsewhere would be 2.0.2 which works fine.

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 5, 2024
Summary:
Pull Request resolved: pytorch#3080

`conda-forge` on Nova installs `numpy` version 2.0.0 which causes error
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
However, the default version installed by `conda-forge` elsewhere would be 2.0.2 which works fine.

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 5, 2024
Summary:
X-link: facebookresearch/FBGEMM#175

Pull Request resolved: pytorch#3080

`conda-forge` on Nova installs `numpy` version 2.0.0 which causes error
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
However, the default version installed by `conda-forge` elsewhere would be 2.0.2 which works fine.

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 5, 2024
Summary:
X-link: facebookresearch/FBGEMM#175

Pull Request resolved: pytorch#3080

`conda-forge` on Nova installs `numpy` version 2.0.0 which causes error
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
However, the default version installed by `conda-forge` elsewhere would be 2.0.2 which works fine.

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 5, 2024
Summary:
X-link: facebookresearch/FBGEMM#175

Pull Request resolved: pytorch#3080

`conda-forge` on Nova installs `numpy` version 2.0.0 which causes error
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
However, the default version installed by `conda-forge` elsewhere would be 2.0.2 which works fine.

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 5, 2024
Summary:
X-link: facebookresearch/FBGEMM#175

Pull Request resolved: pytorch#3080

`numpy` package on `conda-forge` causes error:
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
Remove installation from `conda` and let it be installed by `pip`.
https://github.com/pytorch/FBGEMM/actions/runs/10712252806/job/29702380694

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Sep 5, 2024
Summary:
X-link: facebookresearch/FBGEMM#175

Pull Request resolved: pytorch#3080

`numpy` package on `conda-forge` causes error:
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
Remove installation from `conda` and let it be installed by `pip`.
https://github.com/pytorch/FBGEMM/actions/runs/10712252806/job/29702380694

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
Summary:
X-link: facebookresearch/FBGEMM#175

Pull Request resolved: pytorch#3080

`numpy` package on `conda-forge` causes error:
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
Remove installation from `conda` and let it be installed by `pip`.
https://github.com/pytorch/FBGEMM/actions/runs/10712252806/job/29702380694

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62210034

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 75ac3c0.

q10 pushed a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
Summary:
Pull Request resolved: facebookresearch/FBGEMM#175

X-link: pytorch#3080

`numpy` package on `conda-forge` causes error:
```
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
```
Remove installation from `conda` and let it be installed by `pip`.
https://github.com/pytorch/FBGEMM/actions/runs/10712252806/job/29702380694

Full error below:
```
Please note and check the following:

  * The Python version is: Python3.9 from "/__w/_temp/conda_environment_10708405243/bin/python"
  * The NumPy version is: "2.0.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/_core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/__w/FBGEMM/FBGEMM/pytorch/FBGEMM/fbgemm_gpu/setup.py", line 21, in <module>
    import torch
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/__init__.py", line 1707, in <module>
    from torch import storage as storage  # usort: skip
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/torch/storage.py", line 23, in <module>
    import numpy as np
  File "/__w/_temp/conda_environment_10708405243/lib/python3.9/site-packages/numpy/__init__.py", line 119, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
```

https://github.com/pytorch/FBGEMM/actions/runs/10708405243/job/29690649284

Reviewed By: q10, sryap

Differential Revision: D62210034

fbshipit-source-id: 447fe0b53843bb01779a335b8c13cca7eb42d0ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants