# Https://github.com/joskoot/hanoi

**URL:** https://racket.discourse.group/t/https-github-com-joskoot-hanoi/4306
**Category:** Questions & Answers
**Tags:** question
**Created:** [July 3, 2026, 4:33pm UTC](https://racket.discourse.group/t/https-github-com-joskoot-hanoi/4306 "2026-07-03T16:33:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![joskoot](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/joskoot/32/1964_2.png) [@joskoot](https://racket.discourse.group/u/joskoot)
#### Post date: [July 3, 2026, 4:33pm UTC](https://racket.discourse.group/t/https-github-com-joskoot-hanoi/4306/1 "2026-07-03T16:33:30Z")

</div>

I have a repository: [GitHub - joskoot/hanoi: GUI for playing the game of The Tower of Hanoi · GitHub](https://github.com/joskoot/hanoi)  
It depends on graphics/graphics.

When I try to install it with DrRackets package manager I get the following error:

 ![image](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/f/f9370198948705b38ca542776e80937d5bc6a24a.png)

What can I do about it?  
Jos Koot

---

<div class="post-metadata">

### Author: ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)
#### Post date: [July 3, 2026, 6:19pm UTC](https://racket.discourse.group/t/https-github-com-joskoot-hanoi/4306/2 "2026-07-03T18:19:42Z")

</div>

Look at Matthew's answer:

> **[Help needed with: "cannot instantiate \`racket/gui/base' a second time in the...](https://groups.google.com/g/racket-users/c/8Iz9qVA8byM)**

The `graphics/graphics` library relies on `racket/base/gui` so requiring "hanoi.rkt" in the scribble file require `racket/base/gui` twice.

As a first experiment, remove the non-for-label "hanoi.rkt" and see what happens.

```scheme
@(require
   scribble/core
   scribble/eval
   racket
   "hanoi.rkt"
   (for-label
     "hanoi.rkt"
     racket
     (only-in typed/racket Setof Natural Sequenceof Index))
   (for-syntax racket))

```

This might not be enough though - I remember running into the same issue when I wrote the documentation for `sketching` and it was a bit tricky to get around the issue.

---

<div class="post-metadata">

### Author: ![joskoot](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/joskoot/32/1964_2.png) [@joskoot](https://racket.discourse.group/u/joskoot)
#### Post date: [July 3, 2026, 6:52pm UTC](https://racket.discourse.group/t/https-github-com-joskoot-hanoi/4306/3 "2026-07-03T18:52:35Z")

</div>

I kept the for label require, but removed the plain require of hanoi.rkt. That works.  
Thanks very much.
