# Ambiguous module name

**URL:** <https://uzu.lurk.org/t/ambiguous-module-name/2839>\
**Category:** TidalCycles\
**Tags:** installation\
**Created:** [4 February 2021 12:20 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839 "2021-02-04T12:20:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyrrhic](https://uzu.lurk.org/user_avatar/uzu.lurk.org/pyrrhic/32/1563_2.png) [@pyrrhic](https://uzu.lurk.org/u/pyrrhic)\
**Post date:** [4 February 2021 12:20 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839/1 "2021-02-04T12:20:23Z")

</div>

Ouch ... I somehow completely messed up my Tidal install and cannot run anything anymore #(

I'm sorry being such a n00b with two left arms and 15 thumbs, but this is the error:

> t\> Loaded package environment from /Users/A/.ghc/x86\_64-darwin-8.8.4/environments/default
> 
> t\> : error:  
> Ambiguous module name ‘Sound.Tidal.Context’:  
> it was found in multiple packages: tidal-1.6.1 tidal-1.6.1
> 
> ```
> Variable not in scope: tidal_version :: [Char]
> 
> ```

I have been trying to reinstall everything but no cigar.

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [4 February 2021 12:49 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839/2 "2021-02-04T12:49:36Z")

</div>

Don't worry this is a very common problem, due to a bug in cabal. Just delete that ` /Users/A/.ghc/x86_64-darwin-8.8.4/environments/default` it mentions and install the tidal library again. Or edit that file to remove the duplicated entries for tidal.

You can avoid this bug by always using `cabal v1-install tidal` to install the tidal library, instead of the more modern (and more broken) `cabal install tidal --lib`.

---

<div class="post-metadata">

**Author:** ![pyrrhic](https://uzu.lurk.org/user_avatar/uzu.lurk.org/pyrrhic/32/1563_2.png) [@pyrrhic](https://uzu.lurk.org/u/pyrrhic)\
**Post date:** [4 February 2021 13:18 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839/3 "2021-02-04T13:18:21Z")

</div>

Alright! Thank you!

I deleted all I could and reinstalled everything once again. Now it works and I can get sound out despite that it still gives the following errors (when code is executed the first time) in red colour in the atom editor terminal:

> t\> Loaded package environment from /Users/A/.ghc/x86\_64-darwin-8.8.4/environments/default
> 
> t\>
> 
> t\> Listening for controls on 127.0.0.1:6010

Perhaps they are not critical (fingers crossed) ...

---

<div class="post-metadata">

**Author:** ![ndr\_brt](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ndr_brt/32/396_2.png) [@ndr\_brt](https://uzu.lurk.org/u/ndr_brt)\
**Post date:** [4 February 2021 14:46 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839/4 "2021-02-04T14:46:57Z")

</div>

They're not errors, the `Loaded...` has been removed in ghc 8.10, and `Listening...` will be removed in the next tidal version I think 😉

---

<div class="post-metadata">

**Author:** ![pyrrhic](https://uzu.lurk.org/user_avatar/uzu.lurk.org/pyrrhic/32/1563_2.png) [@pyrrhic](https://uzu.lurk.org/u/pyrrhic)\
**Post date:** [4 February 2021 17:34 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839/5 "2021-02-04T17:34:42Z")

</div>

Oh, ok thanks for clarifying, the red text threw me off!

---

<div class="post-metadata">

**Author:** ![RTylerMclaughlin](https://uzu.lurk.org/user_avatar/uzu.lurk.org/rtylermclaughlin/32/2649_2.png) [@RTylerMclaughlin](https://uzu.lurk.org/u/RTylerMclaughlin)\
**Post date:** [2 March 2021 05:31 UTC](https://uzu.lurk.org/t/ambiguous-module-name/2839/6 "2021-03-02T05:31:29Z")

</div>

Had the same bug while upgrading but this thread saved the day. Thanks all! 😃
