Nightmare1
@Nightmare1
Программист

По какой причине может возникнуть эта ошибка?

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'
>>>


Есть у кого какие ни будь соображения ? Библиотека включает в себя такую группу вызовов

#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);

}
  • Вопрос задан
  • 110 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы