# prodigy not starting in AWS Sagemaker Jupyter Lab

**URL:** <https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481>\
**Category:** Getting Started\
**Tags:** install, solved, aws\
**Created:** [March 25, 2022, 3:41pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481 "2022-03-25T15:41:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxgraze](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maxgraze](https://support.prodi.gy/u/maxgraze)\
**Post date:** [March 25, 2022, 3:41pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/1 "2022-03-25T15:41:33Z")

</div>

After following the instructions for installation in a JupyterLab terminal, I checked to make sure the extension was installed, which it was, then I searched the command tab for prodigy and nothing came up. Following the site instructions, I tried prefacing  
`prodigy ner.correct example_dataset en_core_web_md ./news_headlines.jsonl --label ORG,PERSON,PRODUCT` with `!python -m` in the notebook cell, but got this same error.

`/usr/bin/python: No module named prodigy`

I tried out the example jupyter notebook, but that doesn't seem to be working either, for different reasons.

 ![Capture d’écran 2022-03-25 à 11.40.57 AM](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/1/1cf55b71fa265b3dc8892ff67dc8ba479b1279c2.png)

This was when trying to run the example code. I tried copying code from the installation guide as well and it didn't work.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [March 28, 2022, 2:47am UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/2 "2022-03-28T02:47:12Z")

</div>

Hi @maxgraze ,

Based from your screenshot, I think that you should prefix all your terminal commands with `!`, that's why you're having a syntax error.

For the "no module named" error, I suspect that the python environment where prodigy was installed is different from what Jupyter sees. Ideally we'd want them to be the same. Perhaps you can try using `python3` instead of `python`? I'm not sure if Sagemaker delineates between the two.

---

<div class="post-metadata">

**Author:** ![maxgraze](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maxgraze](https://support.prodi.gy/u/maxgraze)\
**Post date:** [March 28, 2022, 9:32pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/3 "2022-03-28T21:32:13Z")

</div>

Thanks for your response! I tried using an exclamation point as well, but get this error:  
`/bin/bash: prodigy: command not found`

Sagemaker doesn't differentiate between the two I believe.

---

<div class="post-metadata">

**Author:** ![ljvmiranda921](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ljvmiranda921/32/3197_2.png) [@ljvmiranda921](https://support.prodi.gy/u/ljvmiranda921)\
**Post date:** [March 29, 2022, 1:03am UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/4 "2022-03-29T01:03:24Z")

</div>

I see, to be clear, have you already tried the following?

```python
# Run this in a Jupyter notebook cell
!python3 -m prodigy
!python -m prodigy

```

For completeness sake, you might also try installing prodigy within the Jupyter notebook. Something like

```python
# Run this in a Jupyter notebook cell
!pip install prodigy ...

```

---

<div class="post-metadata">

**Author:** ![maxgraze](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maxgraze](https://support.prodi.gy/u/maxgraze)\
**Post date:** [March 30, 2022, 5:19pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/5 "2022-03-30T17:19:23Z")

</div>

Yes for the first too I get the same error, and in the second one I getL

```python
  ERROR: Cannot unpack file /tmp/pip-unpack-url7yk9w/download.prodi.gy (downloaded from /tmp/pip-req-build-b_85obx0, content-type: application/json); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-b_85obx0

```

when I put in my password using this

```python
!pip install prodigy -f https://XXXXXXXXXXXXXXXX@download.prodi.gy

```

I'm not sure why this post got tagged as "solved" either.

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [March 30, 2022, 5:48pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/6 "2022-03-30T17:48:50Z")

</div>

> [@maxgraze](#):
>
> when I put in my password using this

The `XXX` here should be the license key that you received after purchasing Prodigy. Maybe double-check that this is correct?

(Btw, I also recognised your name and if I'm not mistaken, you're currently on a VM trial? In that case, you can test Prodigy on the VM we provide, not install it on an external server. For this, you will need your own Prodigy license.)

---

<div class="post-metadata">

**Author:** ![maxgraze](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maxgraze](https://support.prodi.gy/u/maxgraze)\
**Post date:** [March 30, 2022, 10:41pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/7 "2022-03-30T22:41:33Z")

</div>

Yes I am on a VM trial. I have been trying to use the jupyter notebook example I got, but I'm getting these same errors.

In terms of the annotation server that was set up, I get "Bad Gateway" when I try to access it.

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [April 2, 2022, 8:51am UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/8 "2022-04-02T08:51:56Z")

</div>

If you're on a trial VM, you can access Prodigy pre-installed on the VM, but you can't install it on your own machine yet because you don't yet have a license.

> [@maxgraze](#):
>
> In terms of the annotation server that was set up, I get "Bad Gateway" when I try to access it.

Are you running the annotation server before accessing the UI? The server needs to run and then you should be able to access the app via the link provided in the instructions.

---

<div class="post-metadata">

**Author:** ![maxgraze](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@maxgraze](https://support.prodi.gy/u/maxgraze)\
**Post date:** [April 7, 2022, 6:45pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/9 "2022-04-07T18:45:56Z")

</div>

Sorry I meant installing prodigy - maybe I am confused about how to use the trial. I thought using the jupyter notebook link would be the fastest, but as I mentioned, I haven't been able to get it to run. In terms of getting the VM to work, I t

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [April 7, 2022, 7:02pm UTC](https://support.prodi.gy/t/prodigy-not-starting-in-aws-sagemaker-jupyter-lab/5481/10 "2022-04-07T19:02:04Z")

</div>

Hi! I just saw your email and it looks like there might be a problem with JupyterLab detecting the virtual environment. It should work if you're using the "Terminal" in JupyterLab and type in the command 🙂

Alternatively, you can also use `!/home/prodigy/pgy-env/bin/python -m prodigy` in the Jupyter notebook. Sorry for the inconvenience, I don't know what went wrong in JupterLab here!
