somoclu: NameError: name 'wrap_train' is not defined : somoclu Version: 1.7.5 in windows

Hi, I am getting the error which I can see the different issues for the same in discussions dating back from 2016,

som_clu.train()
Traceback (most recent call last):

  File "<ipython-input-196-fe94f553b2c4>", line 1, in <module>
    som_clu.train()

  File "C:\ProgramData\Anaconda3\lib\site-packages\somoclu\train.py", line 222, in train
    wrap_train(np.ravel(self._data), epochs, self._n_columns, self._n_rows,

NameError: name 'wrap_train' is not defined
import somoclu
Warning: the binary library cannot be imported. You cannot train maps, but you can load and analyze ones that you have already saved.
If you installed Somoclu with pip on Windows, this typically means missing DLLs. Please refer to the documentation.

may i know the correct solutions please? I am using windows, in Anaconda spyder IDE Thanks

About this issue

Commits related to this issue

Most upvoted comments

Hey, I’m having the same problem here, NameError: name 'wrap_train' is not defined.

  • I’m using the somoclu version 1.7.5.1 (already tried 1.7.4 and 1.7.5);
  • Already ran python setup.py install successfuly;
  • Already installed libiomp5md, msvcp90, msvcr90 and vcomp90;
  • Also, I have visual studio with visual c++ compilers.
Warning: passing the data in the constructor is deprecated.
Warning: data was not float32. A 32-bit copy was made
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<timed eval> in <module>

~\Anaconda3\lib\site-packages\somoclu\train.py in train(self, data, epochs, radius0, radiusN, radiuscooling, scale0, scaleN, scalecooling)
    220         self.umatrix.shape = (self._n_rows * self._n_columns, )
    221         self.bmus.shape = (self.n_vectors * 2, )
--> 222         wrap_train(np.ravel(self._data), epochs, self._n_columns, self._n_rows,
    223                    self.n_dim, self.n_vectors, radius0, radiusN,
    224                    radiuscooling, scale0, scaleN, scalecooling,

NameError: name 'wrap_train' is not defined

Any ideia? Thank you

Python 3.7.4 or 3.7.0 with Somoclu 1.7.4 didnt work for me, neither Python 3.6 with Somoclu 1.7.5 😦