Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Failed to install Synapse in Cygwin #3375

Closed
dram opened this issue Jun 9, 2018 · 3 comments
Closed

Failed to install Synapse in Cygwin #3375

dram opened this issue Jun 9, 2018 · 3 comments
Labels
z-minor (Deprecated Label) z-p3 (Deprecated Label)

Comments

@dram
Copy link

dram commented Jun 9, 2018

Description

Failed to install Synapse 0.31.1 in Cygwin, seems that psutil is not supported in Cygwin.

Steps to reproduce

% pip install https://github.com/matrix-org/synapse/tarball/master
Collecting https://github.com/matrix-org/synapse/tarball/master
  Downloading https://github.com/matrix-org/synapse/tarball/master
     / 1.2MB 996kB/s
Collecting pysaml2>=3.0.0 (from matrix-synapse==0.31.1)
  Downloading https://files.pythonhosted.org/packages/3a/27/0c1eced7dd062030a57053366584c5f3c0b0596dfcd42f515831dc22daf5/pysaml2-4.5.0.tar.gz (20.0MB)
    100% |████████████████████████████████| 20.0MB 261kB/s
Collecting six (from matrix-synapse==0.31.1)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting msgpack-python>=0.3.0 (from matrix-synapse==0.31.1)
  Downloading https://files.pythonhosted.org/packages/8a/20/6eca772d1a5830336f84aca1d8198e5a3f4715cd1c7fc36d3cc7f7185091/msgpack-python-0.5.6.tar.gz (138kB)
    100% |████████████████████████████████| 143kB 499kB/s
Collecting daemonize (from matrix-synapse==0.31.1)
  Downloading https://files.pythonhosted.org/packages/65/58/80ecb001c5892f03bd2c9266d986a070e705eb0db8e3b0fdbb10168af31b/daemonize-2.4.7-py2.py3-none-any.whl
Collecting canonicaljson>=1.1.3 (from matrix-synapse==0.31.1)
  Downloading https://files.pythonhosted.org/packages/59/8d/791b6b9a297a4ff982bb51e5d5248dbd4367215f1eeb5a97da51e70585c7/canonicaljson-1.1.4-py2.py3-none-any.whl
Collecting psutil>=2.0.0 (from matrix-synapse==0.31.1)
  Downloading https://files.pythonhosted.org/packages/51/9e/0f8f5423ce28c9109807024f7bdde776ed0b1161de20b408875de7e030c3/psutil-5.4.6.tar.gz (418kB)
    100% |████████████████████████████████| 419kB 790kB/s
    Complete output from command python setup.py egg_info:
    platform cygwin is not supported

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xlenPT/psutil/

Version information

Synapse 0.31.1
Cygwin 2.10.0

@dram
Copy link
Author

dram commented Jun 9, 2018

After I made following change, Synapse installed successfully, but matrix_angular_sdk needs to be installed manually.

diff --git a/setup.py b/setup.py
index b00c2af36..970a2eb74 100755
--- a/setup.py
+++ b/setup.py
@@ -87,7 +87,7 @@ setup(
     version=version,
     packages=find_packages(exclude=["tests", "tests.*"]),
     description="Reference Synapse Home Server",
-    install_requires=dependencies['requirements'](include_conditional=True).keys(),
+    install_requires=dependencies['requirements'](include_conditional=False).keys(),
     dependency_links=dependencies["DEPENDENCY_LINKS"].values(),
     include_package_data=True,
     zip_safe=False,

@neilisfragile
Copy link
Contributor

Sounds you have a solution to unblock - honestly we are unlikely to get to fixing this properly - but PRs welcome.

@neilisfragile neilisfragile added z-p3 (Deprecated Label) z-minor (Deprecated Label) labels Jun 22, 2018
@hawkowl
Copy link
Contributor

hawkowl commented Sep 14, 2018

Cygwin isn't a supported platform, sorry. If you use Windows 10, the Windows Subsystem for Linux would be a more reliable option for getting it going on Windows.

@hawkowl hawkowl closed this as completed Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-minor (Deprecated Label) z-p3 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

3 participants