tidalcycles / Tidal

Pattern language
http://tidalcycles.org/
GNU General Public License v3.0
2.27k stars 255 forks source link

Windows installation problem. Failed to connect to tidal server. Try specifying a different port... #286

Closed bhishp closed 6 years ago

bhishp commented 6 years ago

Hi, I am having a problem getting tidal to work after following the online installation instructions listed here: https://tidalcycles.org/getting_started.html#windows.

To confirm, I have:

The error occurs when I Boot TodalCycles. The GHCi interpreter window will show and say,

GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help 
Prelude> Prelude> tidal> tidal>

Then, after a few seconds it will print out the error pasted below.

I have noticed that SuperCollider starts with the following message SuperDirt: listening to Tidal on port 57120, so I have tried setting a windows ENV variable as TIDAL_TEMPO_PORT=57120 and relaunching Atom + Tidal but the error persists.

Environment Info Windows 10 Version 1709 (OS Build 16299.302) SuperCollider 3.9.1 tidalcycles 0.12.1 Atom 1.25.0 GHC 8.2.2

Any help appreciated, thanks

(sorry, no line breaks in errors)

GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help 
Prelude> Prelude> tidal> tidal> : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT
CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT CallStack (from HasCallStack): error, called at .\Sound\Tidal\Tempo.hs:135:44 in tidal-0.9.6-1Xi91Q7rHG1vgQy4EO0vv:Sound.Tidal.Tempo : Failed to connect to tidal server. Try specifying a different port (default is 9160) settin
yaxu commented 6 years ago

Hi @bhishp. Sorry for this confusing error message. It's failing to connect to tidal's internal clock server, not supercollider. Changing TIDAL_TEMPO_PORT won't help, I think. My guess is that you have a firewall issue. Try turning off your firewall temporarily to see if it works then.

bhishp commented 6 years ago

Ah yeah, it's actually my anti-virus/malware software, EMSISOFT. I disable it and works a charm, I'll look into how I edit the setting for Atom/Tidal.

Just for note, I am just using standard windows firewall and didn't think that EMSISOFT would block connections but it seems it does.

Thanks for your quick response!

Kazuki-Tohyama commented 6 years ago

Hi. I'm using macOS. I'm having problem that is same this issue. I installed from tidal-bootstrap, but tidalcycles couldn't connect SuperCollider server. Firewall is not turned on. Atom showed error message that is same as this issue.

version 8.4.3: http://www.haskell.org/ghc/ :? for help
Prelude> Prelude> : Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT
CallStack (from HasCallStack): error, called at ./Sound/Tidal/Tempo.hs:135:44 in tidal-0.9.9-1xVqrV3wmrF4gxXeoSwv50:Sound.Tidal.Tempo ghc: writev: invalid argument (Invalid argument)
ghc: Failed to connect to tidal server. Try specifying a different port (default is 9160) setting the environment variable TIDAL_TEMPO_PORT

SuperCollider Server was booting and listening to Tidal on port 57120.

SuperDirt: listening to Tidal on port 57120

Environment: macOS High Sierra (10.13.5) SuperCollider 3.9.3 tidalcycles 0.12.1 Atom 1.28.0 ghc 8.4.3

Any help appreciated, thanks

Kazuki-Tohyama commented 6 years ago

↑This problem was resolved. According to tidalcycles installation manual (https://tidalcycles.org/getting_started.html), tidal-bootstrap can work with haskell-platform 8.2.1 version only. But I have installed v8.4.3. It can work by re-installing v8.2.1. Thanks.