# License activation error: \`Error: \[Errno 86\] Bad CPU type in executable: 'amplkey'\`

**URL:** <https://discuss.ampl.com/t/license-activation-error-error-errno-86-bad-cpu-type-in-executable-amplkey/2166>\
**Category:** Support\
**Tags:** general, errors-and-messages\
**Created:** [June 18, 2025, 7:41am UTC](https://discuss.ampl.com/t/license-activation-error-error-errno-86-bad-cpu-type-in-executable-amplkey/2166 "2025-06-18T07:41:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cero](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@Cero](https://discuss.ampl.com/u/Cero)\
**Post date:** [June 18, 2025, 7:41am UTC](https://discuss.ampl.com/t/license-activation-error-error-errno-86-bad-cpu-type-in-executable-amplkey/2166/1 "2025-06-18T07:41:44Z")

</div>

When I want to activate the license on my mac mini (`m4`), it gives the error:

```auto
python -m amplpy.modules activate "my_uuid"
$ amplkey activate --uuid "my_uuid"
Error: [Errno 86] Bad CPU type in executable: 'amplkey'

```

Does ampl not support `m4` cpu? Because I succeeded on my `m2` macbook pro.

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [June 18, 2025, 3:15pm UTC](https://discuss.ampl.com/t/license-activation-error-error-errno-86-bad-cpu-type-in-executable-amplkey/2166/2 "2025-06-18T15:15:32Z")

</div>

Hi @Cero,

Thank you for reporting this issue. As a workaround, could you please try installing rosetta with `softwareupdate --install-rosetta` and try again?

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [July 24, 2025, 6:03pm UTC](https://discuss.ampl.com/t/license-activation-error-error-errno-86-bad-cpu-type-in-executable-amplkey/2166/3 "2025-07-24T18:03:39Z")

</div>

Hi @Cero,

We have updated amplkey in recent versions of AMPL and rosetta is not needed anymore as it runs natively on Apple Silicon hardware. You can upgrade your AMPL module to the latest versions as follows:

```auto
$ python -m amplpy.modules install --upgrade

```
