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

can't install DAT on Windows #677

Closed
protw opened this issue Mar 9, 2017 · 12 comments
Closed

can't install DAT on Windows #677

protw opened this issue Mar 9, 2017 · 12 comments

Comments

@protw
Copy link

protw commented Mar 9, 2017

OS: Windows 10 64bit

I've got preliminary installed:

  • node v.6.9.4
  • npm v.4.3.0
  • node-gyp -v.3.5.0
  • python v.3.6.0 (env variables PATH and PYTHON are set to an appropriate directory)

Then I run CMD in admin mode and put the following command npm install -g dat.

Eventually the installation scenario displays in two places the following stack of messages:

C:\Users\Admin\AppData\Roaming\npm\node_modules\dat\node_modules\utp-native>if not defined npm_config_node_gyp (node "C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\Admin\AppData\Local\Programs\Python\Python36", you can set the PYTHON env variable.
gyp ERR! stack     at Object.failNoPython (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19)
gyp ERR! stack     at Object.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16)
gyp ERR! stack     at C:\Users\Admin\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Admin\AppData\Roaming\npm\node_modules\dat\node_modules\utp-native
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok

What's wrong?

@joehand
Copy link
Collaborator

joehand commented Mar 9, 2017

What's wrong?

Hello! Sorry about your trouble. We still don't quite fully support Windows. We have some native modules that need to be compiled. You should be able to compile them but it looks like node-gyp can't execute python.

Check out the installation guide on node-gyp - you may need to make sure to set the python path using those methods.

We are working on prebuilding those modules, #581 which will allow easier installation on windows (without the python requirement).

Thanks for letting us know, we'll try to get this working soon.

@mafintosh
Copy link
Contributor

utp is actually an optional dependency right now so dat should still work even though npm prints out that error message (npm's ux isn't great around optional deps)

@ShadowRZ
Copy link

But why utp can't build on Windows?

@joehand
Copy link
Collaborator

joehand commented Mar 17, 2017

But why utp can't build on Windows?

It can build on Windows with the correct dependencies. I think you need python and Visual C++ Build Tools. See the installation guide of node-gyp linked above for more details.

@ShadowRZ
Copy link

ShadowRZ commented Mar 17, 2017 via email

@ShadowRZ
Copy link

@joehand No, I tested.

@joehand
Copy link
Collaborator

joehand commented Mar 18, 2017

@joehand No, I tested.

What was the error you received?

@ShadowRZ
Copy link

ShadowRZ commented Mar 18, 2017 via email

@ShadowRZ
Copy link

ShadowRZ commented May 6, 2017

What about a Windows installer?

@okdistribute
Copy link
Collaborator

Have you tried wth Python 2 installed? You can use virtualenv or anaconda to change your Python version in windows.

@ShadowRZ
Copy link

ShadowRZ commented May 6, 2017

I'll start a fresh VM to test this.
It takes a long time since this VM is deleted shortly.

@joehand
Copy link
Collaborator

joehand commented Oct 19, 2017

This should be fixed with a new installation, UTP now works on windows!

@joehand joehand closed this as completed Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants