# TypeError: Array of type 'long' required. Array of type 'long long' given

**URL:** <https://brian.discourse.group/t/typeerror-array-of-type-long-required-array-of-type-long-long-given/218>\
**Category:** Support\
**Created:** [25 November 2020 04:53 UTC](https://brian.discourse.group/t/typeerror-array-of-type-long-required-array-of-type-long-long-given/218 "2020-11-25T04:53:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mstimberg](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/mstimberg/32/11_2.png) [@mstimberg](https://brian.discourse.group/u/mstimberg)\
**Post date:** [23 February 2023 09:21 UTC](https://brian.discourse.group/t/typeerror-array-of-type-long-required-array-of-type-long-long-given/218/5 "2023-02-23T09:21:04Z")

</div>

Hi @GEB72. Unfortunately I won’t be able to help with the specific error – from the error message I’d say it has to do with an incompatibility of the code for a 64bit Windows, but I can’t dig into this any further. Did you try using the Brian1 docker image: [Container image for Brian 1 — Brian 2 2.5.1.post0.dev88 documentation](https://brian2.readthedocs.io/en/latest/introduction/brian1_to_2/container.html)? I _think_ it should fix the issue (since in the docker container runs on Linux), but I am not 100% sure either.

All that said, several users have tried adapting that code to Brian 2, see e.g. [GitHub - sdpenguin/Brian2STDPMNIST: Brian 2 version of Paper "Unsupervised Learning of digit recognition using STDP"](https://github.com/sdpenguin/Brian2STDPMNIST) – it might be worth using that straight away. Also have a look at the discussion here: [Unsupervised learning of digit recognition using spike-timing-dependent](https://brian.discourse.group/t/unsupervised-learning-of-digit-recognition-using-spike-timing-dependent/189)

---

_[View the full topic](https://brian.discourse.group/t/typeerror-array-of-type-long-required-array-of-type-long-long-given/218)._
