Can't Boot Tidal on Atom. Mac OS X 10.11.6

Hi everyone!
I've been trying to install Tidal for several days without any luck. Now I would like to uninstall everything to start from scratch cause I really have no idea what might be wrong.

I already have SuperDirt library in SC running and Atom looks fine. However,I got this error when I tried to Boot TidalCycles

Choose ghcup default path: /Users/macintoshhd/.ghcup/bin
Ghci command: /Users/macintoshhd/.ghcup/bin/ghci
Ghc-pkg command: /Users/macintoshhd/.ghcup/bin/ghc-pkg
Load BootTidal.hs from /Users/macintoshhd/.atom/packages/tidalcycles/lib/BootTidal.hs
t>

: error:
Could not find module ‘Sound.Tidal.Context’
It is not a module in the current program, or in any known package.

As suggested in this post I tried running ghci on Terminal but I am getting -bash: ghci: command not found.
Since I've tried several times, I could follow the instructions described after the ghci command but when trying cabal update I got -bash: cabal: command not found

I have also tried installing Haskell from this link and even older versions.

Maybe my computer is not compatible... :sweat: I'm on a macbook Pro mid 2012 running Mac OSX 10.11.6

Anyways, Looking forward solving this issue and starting the course :slight_smile:

Hi @Amgnowhere, we’ll get you sorted!

What happens if you do

. .ghcup/env
cabal update
cabal install tidal --lib

Thank you for the fast reply!
I could run the cabal commands but I'm still unable to boot Tidal on Atom...
I tried again the troubleshooting advice and got this error after executing import Sound.Tidal.Context command on the Terminal.

Prelude> import Sound.Tidal.Context

: error:

Could not find module ‘Sound.Tidal.Context’

It is not a module in the current program, or in any known package.

Actually is the same error that appears on Atom :thinking:

Hmm! So the cabal install command completed successfully? Could you share the output of running cabal install tidal --lib again please?

Sure, here it is:

Resolving dependencies...

Build profile: -w ghc-8.8.3 -O1

In order, the following will be built (use -v for more details):

  • blaze-builder-0.4.1.0 (lib) (requires download & build)

  • base-orphans-0.8.2 (lib) (requires build)

  • cabal-doctest-1.0.8 (lib) (requires download & build)

  • clock-0.8 (lib) (requires download & build)

  • colour-2.3.5 (lib) (requires download & build)

  • data-binary-ieee754-0.4.4 (lib:data-binary-ieee754) (requires download & build)

  • data-default-class-0.1.2.0 (lib:data-default-class) (requires download & build)

  • hsc2hs-0.68.7 (exe:hsc2hs) (requires download & build)

  • primitive-0.7.0.1 (lib) (requires download & build)

  • random-1.1 (lib) (requires download & build)

  • tagged-0.8.6 (lib) (requires download & build)

  • th-abstraction-0.3.2.0 (lib) (requires download & build)

  • transformers-compat-0.6.5 (lib) (requires download & build)

  • network-3.1.1.1 (lib:network) (requires download & build)

  • vector-0.12.1.2 (lib) (requires download & build)

  • distributive-0.6.1 (lib:distributive) (requires download & build)

  • hosc-0.17 (lib) (requires download & build)

  • vector-th-unbox-0.2.1.7 (lib) (requires download & build)

  • comonad-5.0.6 (lib:comonad) (requires download & build)

  • math-functions-0.3.3.0 (lib) (requires download & build)

  • bifunctors-5.5.7 (lib) (requires download & build)

  • mwc-random-0.14.0.0 (lib) (requires download & build)

  • tidal-1.4.8 (lib) (requires download & build)

Downloading clock-0.8

dyld: lazy symbol binding failed: Symbol not found: _utimensat

Referenced from: /Users/macintoshhd/.ghcup/bin/cabal (which was built for Mac OS X 10.13)

Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat

Referenced from: /Users/macintoshhd/.ghcup/bin/cabal (which was built for Mac OS X 10.13)

Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5

I see, this is the same problem as others are having, with older versions of macos.

Have a look here for the solution - removing Haskell and then installing an older version: "Learning Tidal" course week zero - installation and exploration - #44 by yaxu

2 Likes

Yay! I have sound now! :pray: Thank you very much

Great! It’s annoying that the newer Haskell doesn’t work with older versions of MacOS though. I’ll raise this with the Haskell people…

1 Like

I have a similar problem with Atom when trying trying to boot Tidal from my packages. I don’t get the ‘t>’ prompt, but instead an error message:

Choose ghcup default path: /Users/Juan/.ghcup/bin
Ghci command: /Users/Juan/.ghcup/bin/ghci
Ghc-pkg command: /Users/Juan/.ghcup/bin/ghc-pkg
Load BootTidal.hs from /Users/Juan/.atom/packages/tidalcycles/lib/BootTidal.hs
Loaded package environment from /Users/Juan/.ghc/x86_64-darwin-8.6.5/environments/default

: error:
Ambiguous module name ‘Sound.Tidal.Context’:
it was found in multiple packages: tidal-1.4.8 tidal-1.4.8

Hi Juan,
This is an annoying haskell bug…
Remove this file: /Users/Juan/.ghc/x86_64-darwin-8.6.5/environments/default
Then run this in a terminal window: cabal install tidal --lib

1 Like

Despite having installed both the cabal executable and gchup from GHCup

I still get:
cabal: command not found

Do I need to cd into a specific environment for cabal to work?

ah, try this:

. ~/.ghcup/env
cabal install tidal --lib
1 Like

Thanks @yaxu

UPDATES:
I rm'd default from: /Users/Juan/.ghc/x86_64-darwin-8.6.5/environments/default in the terminal.

Then I tried: brew install ghc cabal-install and only then I could run cabal install tidal --lib
Now I can see the t> prompt in Atom :slight_smile:

Aha, great! Do you hear sound?

Yes, thanks! now going over the technical tour video :smile:

1 Like

hey there,
I'm trying to fix a bug very similar to the others mentioned in this topic but still can't find a solution.
This is what I have when I try to run a line in Atom

No configured ghc path
Ghci command: ghci
Ghc-pkg command: ghc-pkg
Load BootTidal.hs from /Users/Fra/.atom/packages/tidalcycles/lib/BootTidal.hs
t>

: error:
Could not find module ‘Sound.Tidal.Context’
It is not a module in the current program, or in any known package.

Variable not in scope: d1 :: t0 -> t

• Variable not in scope: sound :: [Char] -> t0
• Perhaps you meant ‘round’ (imported from Prelude)

i've reinstalled an older version of Haskell and if I run ghci in the Terminal it prompts

GHCi, version 8.6.3: Glasgow Haskell Compiler — The Glasgow Haskell Compiler :? for help
Prelude>

Not sure what I should do next...

Cheers

I've actually managed to install through cabal but I now get several instances of this:

t>Failed to send. Is the 'SuperDirt' target running? Network.Socket.sendBuf: does not exist (Connection refused)

I've reinstalled SuperDirt and if I run SuperDirt.start in SC it boots the server correctly and I can hear the kick drum :slight_smile:
Only error I get is

Loaded package environment from /Users/Fra/.ghc/x86_64-darwin-8.6.3/environments/default