# Htm.core and Python 3.11 compatibility

**URL:** <https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307>\
**Category:** NuPIC Community Fork\
**Created:** [December 8, 2022, 9:49pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307 "2022-12-08T21:49:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![altshiftj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/altshiftj/32/5978_2.png) [@altshiftj](https://discourse.numenta.org/u/altshiftj)\
**Post date:** [December 8, 2022, 9:49pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/1 "2022-12-08T21:49:59Z")

</div>

Has anyone gotten htm.core to install in python 3.11? Is anyone actively working on compatibility?

My attempts in the past few days yielded no success.

It seems to revolve around the notion of frames

C:\htm.core-master\build\ThirdParty\pybind11\pybind11-src\include\pybind11\pybind11.h(2296,30): error C2027: use of undefined type ‘\_frame’  
(compiling source file C:\htm.core-master\bindings\py\cpp\_src\bindings\sdr\py\_SDR.cpp)  
[C:\htm.core-master\build\scripts\bindings\py\cpp\_src\sdr.vcxproj]

After two days of trying, I just reverted back to 3.10… ☹

Is htm.core in python old news?

…is htm.core old news?

---

<div class="post-metadata">

**Author:** ![DanML](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@DanML](https://discourse.numenta.org/u/DanML)\
**Post date:** [December 8, 2022, 10:39pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/2 "2022-12-08T22:39:36Z")

</div>

I haven’t used it beyond 3.9 however the community repo:

> **[GitHub - htm-community/htm.core: Actively developed Hierarchical Temporal...](https://github.com/htm-community/htm.core)**
>
> Actively developed Hierarchical Temporal Memory (HTM) community fork (continuation) of NuPIC. Implementation for C++ and Python - GitHub - htm-community/htm.core: Actively developed Hierarchical T...

has updates within a month or so, suggesting it has some maintenance still.

hth

---

<div class="post-metadata">

**Author:** ![altshiftj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/altshiftj/32/5978_2.png) [@altshiftj](https://discourse.numenta.org/u/altshiftj)\
**Post date:** [December 8, 2022, 10:49pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/3 "2022-12-08T22:49:11Z")

</div>

What do you use to program htm these days? and why if you dont mind me asking

---

<div class="post-metadata">

**Author:** ![DanML](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@DanML](https://discourse.numenta.org/u/DanML)\
**Post date:** [December 8, 2022, 11:03pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/4 "2022-12-08T23:03:00Z")

</div>

To be honest I don’t use this version these days - I use BrainBlocks implementation instead.

> **[GitHub - the-aerospace-corporation/brainblocks: Practical Tool for Building ML Applications with...](https://github.com/the-aerospace-corporation/brainblocks)**
>
> Practical Tool for Building ML Applications with HTM-Like Algorithms

However I see there’s another update to the basic HTM idea:

> [@Interesting paper of new HTM](https://discourse.numenta.org/t/interesting-paper-of-new-htm/10296):
>
> I have just found interesting paper about new HTM implementation Abstract As a human-cortex-inspired computing model, hierarchical temporal memory (HTM) has shown great promise in sequence learning and has been applied to various time-series applications. HTM uses the combination of columns and neurons to learn the temporal patterns within the sequence. However, the conventional HTM model compacts the input into two naive column states—active and nonactive, and uses a fixed learning strategy. …

which I thought about trying, but haven’t got around to it yet.  
In terms of language I rarely leave Python but will run whatever version works in its own virt-env. However tweaks to the CPP code (bugfixes) are sometimes required too.

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [December 13, 2022, 10:49pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/5 "2022-12-13T22:49:24Z")

</div>

This is being addressed with PR “python 3.11 compatibility” #992  
This will be merged into the master as soon as we have a review of the proposed changes.

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [December 19, 2022, 1:59pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/6 "2022-12-19T13:59:08Z")

</div>

Resolved in [#992](https://github.com/htm-community/htm.core/pull/992)  
It has been tested using the following:

```auto
Python 3.10.6 Linux Mint 21, which is based on Ubuntu 22
Python 3.8 Ubuntu 20.04
Python 3.11 Ubuntu 20.04
Python 3.8 Windows 11 VS 2022
Python 3.11 Windows 11 VS 2022

```

---

<div class="post-metadata">

**Author:** ![MSc.Lic\_P\_Raquel\_Fru](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/msc.lic_p_raquel_fru/32/6567_2.png) [@MSc.Lic\_P\_Raquel\_Fru](https://discourse.numenta.org/u/MSc.Lic_P_Raquel_Fru)\
**Post date:** [November 20, 2024, 11:55pm UTC](https://discourse.numenta.org/t/htm-core-and-python-3-11-compatibility/10307/7 "2024-11-20T23:55:53Z")

</div>

Buenas tardes, soy estudiante de Doctorado en Ciencias de la Computación de la Universidad Nacional de Asunción y estoy interesada en probar HTM para detección de anomalías en flujo de datos de redes, para IDS, en ese contexto sería tan amable de compartir algún código que me pueda servir para probar ese algoritmo que parece muy interesante. Cordialmente,  
Msc.Lic.Raquel Frutos
