Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Queston: How do I get this running on windows? #22

Open
alexlambson opened this issue Apr 10, 2017 · 11 comments
Open

Queston: How do I get this running on windows? #22

alexlambson opened this issue Apr 10, 2017 · 11 comments

Comments

@alexlambson
Copy link

Title.

Also, if you're looking for contributors. I have a CS degree and experience with distributed systems. I'll need to brush up on my python skills, but I can help if you want it.

@boramalper
Copy link
Owner

Hello Alex,

I never intended to run magnetico on Windows but I cannot see any specific reason why it shouldn't work (except requiring a few minor modifications).

We all would be glad to receive your contributions, feel free to contribute in any way you can. Although I cannot be active until 18 May (finals...) I will be happy to check and collaborate. =)

@alexlambson
Copy link
Author

@boramalper I can't figure out how to get pymodules running on windows. I'll check in once I figure it out. Good luck with class, friend! :)

@perfectdark123
Copy link

If you have Windows 10, then activate the windows-subsystem for Linux. There you can install it, just like in Linux. Just tried it out, but I get a lot of 'Belated Tick' errors, although it's running on a Intel i7-4770K @ 3.5GHz and 16GB Ram.

@ngosang
Copy link
Contributor

ngosang commented Apr 17, 2017

I opened 2 PR for Windows compatibility. #32 #33

@eliotcougar
Copy link

@nsoang Yes!.. It works!..
adding socket return value and except (ConnectionResetError, ConnectionRefusedError, OSError): continue in on_receivable did the trick, but changing imports is not needed in my case, and only breaks everything...

@eliotcougar
Copy link

eliotcougar commented Apr 17, 2017

After running for 10 minutes it crashed with ValueError: too many file descriptors in select()
Traceback (most recent call last):

File ".\__main__.py", line 140, in loop
keys_and_events = selector.select(timeout=TICK_INTERVAL)
File "c:\python3\lib\selectors.py", line 323, in select
r, w, _ = self._select(self._readers, self._writers, [], timeout)
File "c:\python3\lib\selectors.py", line 314, in _select
r, w, x = select.select(r, w, w, timeout)
ValueError: too many file descriptors in select()

@ngosang
Copy link
Contributor

ngosang commented Apr 17, 2017

After running for 10 minutes it crashed with ValueError: too many file descriptors in select()

Already reported #38

@Koveras
Copy link

Koveras commented May 2, 2017

Is this the right place to suggest a step by step guide, so that noobs like me could get it running on windows?

@boramalper
Copy link
Owner

boramalper commented May 2, 2017

@Koveras Windows is not officially supported now, but you might try contacting @ngosang. =)

@MacgyverJohnson
Copy link

Pls support windows....throws exception 👍
RuntimeError: uvloop does not support Windows at the moment
:'(

@deckar01
Copy link

deckar01 commented Aug 5, 2018

I initially tried installing it on my Ubuntu WSL for Windows 10, but sqlite3 doesn't work right do to the way disk I/O is (not) implemented.

microsoft/WSL#2395

setup.py file shows that uvloop is behind a version check, but that it executes on the author's machine at publish time, so it's always going to be required in the egg provided by pypi.

https://github.com/boramalper/magnetico/blob/57d466a/magneticod/setup.py#L18

I believe uvloop >= 0.8.0;platform_system!="Windows" would apply the platform check at install time.

https://stackoverflow.com/questions/6469508/is-it-possible-to-express-a-platform-specific-dependency-in-setup-py-without-bui

I cloned the repo, checked out the latest release tag, and ran python setup.py install to resolve the dependencies for the current architecture (windows) and it seems to work fine. I had to supply a random port number for --node-addr to get it to work, but maybe it was working and I was just impatient.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants