Comments (6)
Can you try running .\install.bat
instead? I think I tried in windows terminal and it worked.
from shadow_gnn.
Thanks for the quick response, the issue is that I had to run through the troubleshooting section since pip couldn't install para_samplers initially. I believe I need to compile the .cpp file before I run install.bat
but the compile.sh
script doesn't run on Windows and unfortunately I am no good at working with C++ so I am not sure how to re-create it.
I did try running install.bat
again after going through all of the other steps in the troubleshooting section but it still fails. Here is the output:
Complete output (4 lines):
running bdist_wheel
running build
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Failed building wheel for ParallelSampler
from shadow_gnn.
You shouldn't need to compile .cpp
in the whole process. In my case, I can run .\install.bat
directly.
However, I did notice some issues while trying to install it from scratch. Please double check if shaDow/para_samplers/pybind11
directory is non-empty. Ideally, if you clone with --recursive
flag, it shouldn't be empty, but I found that it appears to be empty for some unknown reason.
If so, please execute the command git submodule update --init --recursive
. Then please try .\install.bat
again.
Please let me know if the issue still persists.
from shadow_gnn.
Yep I missed the recursive flag the first time and did submodule update as you have it shown previous to submitting this issue. As a test, I tried it again and received the same error as before. I then deleted the cloned repo and ran git clone <url.git> --recursive
, verified pybind11 was cloned, and ran install.bat
and I still receive that error. The detailed error with folder trees masked is below as well.
Processing c:\path\to\shadow_gnn\shadow\para_samplers
Building wheels for collected packages: ParallelSampler
Building wheel for ParallelSampler (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\path\to\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\path\\to\\AppData\\Local\\Temp\\pip-req-build-qg1s6tnq\\setup.py'"'"'; __file__='"'"'C:\\path\\to\\AppData\\Local\\Temp\\pip-req-build-qg1s6tnq\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\path\to\AppData\Local\Temp\pip-wheel-kyaucgi9'
cwd: C:\path\to\AppData\Local\Temp\pip-req-build-qg1s6tnq\
Complete output (4 lines):
running bdist_wheel
running build
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Failed building wheel for ParallelSampler
Running setup.py clean for ParallelSampler
Failed to build ParallelSampler
Installing collected packages: ParallelSampler
Running setup.py install for ParallelSampler ... error
ERROR: Command errored out with exit status 1:
command: 'c:\path\to\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\path\\to\\AppData\\Local\\Temp\\pip-req-build-qg1s6tnq\\setup.py'"'"'; __file__='"'"'C:\\path\\to\\AppData\\Local\\Temp\\pip-req-build-qg1s6tnq\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\path\to\AppData\Local\Temp\pip-record-x4ynqekn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\path\to\appdata\local\programs\python\python37\Include\ParallelSampler'
cwd: C:\path\to\AppData\Local\Temp\pip-req-build-qg1s6tnq\
Complete output (4 lines):
running install
running build
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\path\to\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\path\\to\\AppData\\Local\\Temp\\pip-req-build-qg1s6tnq\\setup.py'"'"'; __file__='"'"'C:\\path\\to\\AppData\\Local\\Temp\\pip-req-build-qg1s6tnq\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\path\to\AppData\Local\Temp\pip-record-x4ynqekn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\path\to\appdata\local\programs\python\python37\Include\ParallelSampler' Check the logs for full command output.
from shadow_gnn.
Thanks for the details. This sounds a bit strange to me -- on my machine, I can install ParallelSampler
by executing the following commands in windows terminal:
conda create --name shadow python=3.8.5
conda activate shadow
conda install -c anaconda cmake
conda install -c conda-forge ninja
pip install pybind11
.\install.bat
For sanity check, could you please verify if you can do this cmake example provided by pybind11.
Then, could you provide some more information about your environment. For example:
Did you use windows terminal (it will use "Windows Powershell" by default)?
What are your conda, python, cmake, ninja, pybind11 versions?
Also I noticed that the format of the error message seems a bit different from yours. When I encountered an error of the install
script, I didn't find any keyword of "WinError" in my error messages. So maybe we are not using the same kind of terminal?
from shadow_gnn.
Whelp, looks like the problem was that I was trying to run install.bat
outside of my environment. I just migrated away from using conda to pipenv and I needed to run pipenv shell
before running the batch file. Thanks for the help troubleshooting this one, this is definitely user error.
from shadow_gnn.
Related Issues (8)
- Windows : Building wheel for ParallelSampler (setup.py) ... error HOT 2
- Can it be run on CPU? HOT 9
- Please share the requirement file. HOT 4
- Please provide the wheel file for ParallelSampler, if possible. HOT 3
- How to disable shaDow_GNN sampling? HOT 5
- How to peform inductive inference using Shadow-GNN HOT 1
- How to solve the metric in data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadow_gnn.