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

setup.py was removed now i can't build from source #7079

Closed
puririshi98 opened this issue Mar 29, 2023 · 1 comment
Closed

setup.py was removed now i can't build from source #7079

puririshi98 opened this issue Mar 29, 2023 · 1 comment
Assignees
Labels

Comments

@puririshi98
Copy link
Contributor

puririshi98 commented Mar 29, 2023

πŸ› Describe the bug

after this commit: 80d4647daf5daac4d8d6733fdddf2eae9cd9ec7a

root@45bcb33be86c:/opt/pyg/pytorch_geometric# python3 setup.py install
python3: can’t open file β€˜setup.py’: [Errno 2] No such file or directory
root@45bcb33be86c:/opt/pyg/pytorch_geometric# pip install -e .
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Obtaining file:///opt/pyg/pytorch_geometric
 Installing build dependencies ... done
 Getting requirements to build wheel ... done
  Preparing wheel metadata ... done
Requirement already satisfied: scipy in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (1.6.3)
Requirement already satisfied: tqdm in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (4.62.3)
Requirement already satisfied: requests in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (2.28.2)
Requirement already satisfied: psutil>=5.8.0 in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (5.8.0)
Requirement already satisfied: pyparsing in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (3.0.9)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (3.1.2)
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (1.22.3)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.8/dist-packages (from torch_geometric==2.4.0) (0.24.2)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.8/dist-packages (from jinja2->torch_geometric==2.4.0) (2.1.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.8/dist-packages (from requests->torch_geometric==2.4.0) (3.4)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.8/dist-packages (from requests->torch_geometric==2.4.0) (3.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/dist-packages (from requests->torch_geometric==2.4.0) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.8/dist-packages (from requests->torch_geometric==2.4.0) (1.26.14)
Requirement already satisfied: joblib>=0.11 in /usr/local/lib/python3.8/dist-packages (from scikit-learn->torch_geometric==2.4.0) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from scikit-learn->torch_geometric==2.4.0) (3.1.0)
Installing collected packages: torch-geometric
 Running setup.py develop for torch-geometric
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -c β€˜import io, os, sys, setuptools, tokenize; sys.argv[0] = β€˜β€œβ€™β€β€˜/opt/pyg/pytorch_geometric/setup.pyβ€™β€œβ€˜β€β€™; __file__=β€˜β€œβ€™β€β€˜/opt/pyg/pytorch_geometric/setup.pyβ€™β€œβ€˜β€β€™;f = getattr(tokenize, β€˜β€œβ€™β€β€˜openβ€™β€œβ€˜β€β€™, open)(__file__) if os.path.exists(__file__) else io.StringIO(β€˜β€œβ€™β€β€˜from setuptools import setup; setup()β€˜β€œβ€™β€β€˜);code = f.read().replace(β€˜β€œβ€™β€β€˜\r\nβ€™β€œβ€˜β€β€™, β€˜β€œβ€™β€β€˜\nβ€™β€œβ€˜β€β€™);f.close();exec(compile(code, __file__, β€˜β€œβ€™β€β€˜execβ€™β€œβ€˜β€β€™))' develop --no-deps
     cwd: /opt/pyg/pytorch_geometric/
  Complete output (14 lines):
  error: Multiple top-level packages discovered in a flat-layout: [β€˜conda’, β€˜docker’, β€˜graphgym’, β€˜torch_geometric’].
   
  To avoid accidental inclusion of unwanted files or directories,
  setuptools will not proceed with this build.
   
  If you are trying to create a single distribution with multiple packages
  on purpose, you should not rely on automatic discovery.
  Instead, consider the following options:
   
  1. set up custom discovery (`find` directive with `include` or `exclude`)
  2. use a `src-layout`
  3. explicitly set `py_modules` or `packages` with a list of names
   
  To find more information, look for β€œpackage discovery” on setuptools docs.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -c β€˜import io, os, sys, setuptools, tokenize; sys.argv[0] = β€˜β€œβ€™β€β€˜/opt/pyg/pytorch_geometric/setup.pyβ€™β€œβ€˜β€β€™; __file__=β€˜β€œβ€™β€β€˜/opt/pyg/pytorch_geometric/setup.pyβ€™β€œβ€˜β€β€™;f = getattr(tokenize, β€˜β€œβ€™β€β€˜openβ€™β€œβ€˜β€β€™, open)(__file__) if os.path.exists(__file__) else io.StringIO(β€˜β€œβ€™β€β€˜from setuptools import setup; setup()β€˜β€œβ€™β€β€˜);code = f.read().replace(β€˜β€œβ€™β€β€˜\r\nβ€™β€œβ€˜β€β€™, β€˜β€œβ€™β€β€˜\nβ€™β€œβ€˜β€β€™);f.close();exec(compile(code, __file__, β€˜β€œβ€™β€β€˜execβ€™β€œβ€˜β€β€™))' develop --no-deps Check the logs for full command output.

Environment

  • PyG version: master
@rusty1s
Copy link
Member

rusty1s commented Mar 30, 2023

We no longer support the deprecated installation command python setup.py install. You have to use pip install . instead.

@rusty1s rusty1s closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants