V
V
Vadim Ushakov2021-10-31 17:21:42
Python
Vadim Ushakov, 2021-10-31 17:21:42

What could be the reason for this error?

PS D:\workspace\cpp.machinarium\bin\Release> python310
Python 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 18:46:30) [MSC v.1929 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import dynamic
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing dynamic: The specified module could not be found.
>>>

>>> import Machinarium
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Machinarium'
>>>


Does anyone have any thoughts? The library includes such a group of calls

#include <boost/python.hpp>

namespace bp = boost::python;

BOOST_PYTHON_MODULE(Machinarium)
{
  boost::python::class_<SmsActivate>("SmsActivate", bp::init< const std::string & >())
    .def("getNumbersStatus", &SmsActivate::getNumbersStatus)
    .def("getServiceList", &SmsActivate::getServiceList)
    .def("getServiceShortCodeByServiceName", &SmsActivate::getServiceShortCodeByServiceName)
    .def("getSericeAvailableNumberCount", &SmsActivate::getSericeAvailableNumberCount)
    .def("getBalance", &SmsActivate::getBalance)
    .def("setStatus", &SmsActivate::setStatus)
    .def("setMessageSendedOnActiveNumber", &SmsActivate::setMessageSendedOnActiveNumber)
    .def("getStatus",& SmsActivate::getStatus)
    .def("getActivationMessage", &SmsActivate::getActivationMessage)
    .def("getPrices", &SmsActivate::getPrices)
    .def("getLowestPriceCountryCode", &SmsActivate::getLowestPriceCountryCode)
    .def("getCountries", &SmsActivate::getCountries)
    .def("getCountryNameFromCountryCode", &SmsActivate::getCountryNameFromCountryCode);

}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question