wlav / cppyy

Other
391 stars 40 forks source link

WinError 1114 #131

Closed HasbersHz closed 1 year ago

HasbersHz commented 1 year ago
import cppyy

lib = cppyy.load_library("life64.dll")

print(lib)

https://log.jocat.ru/bawoyacibo.php Error output. (Too big)

'C:\Users\HasbersHz\AppData\Roaming\Python\Python310\site-packages\cppyy_backend\lib\libcppyy_backend.cp310-win_amd64.pyd' This file doesn't exist.

I have a file libcppyy_backend.dll with dependencies. изображение I don't understand anything, but it doesn't seem like it's working

wlav commented 1 year ago

This is known: Windows is not supported with the latest MSVC. Older ones work. cppyy 3.0.0 (repo master) will work with the latest MSVC again b/c LLVM will have upgraded from 9 to 13.

HasbersHz commented 1 year ago

This is known: Windows is not supported with the latest MSVC. Older ones work. cppyy 3.0.0 (repo master) will work with the latest MSVC again b/c LLVM will have upgraded from 9 to 13.

Thank you, but I still need to solve the problem for the project. Tell me what version of the MSVC should be put? And if I need another version of LLVM.

wlav commented 1 year ago

MSVC 2019 (IIRC, that's the newest version older than 2022).

The LLVM version needed is builtin, so can't be changed (b/c Cling made changes for interactivity; most of what Cling needs is being upstreamed into clang-repl, and will thus be part of the official LLVM releases, but we're not there yet).

HasbersHz commented 1 year ago

MSVC 2019 (IIRC, that's the newest version older than 2022).

The LLVM version needed is builtin, so can't be changed (b/c Cling made changes for interactivity; most of what Cling needs is being upstreamed into clang-repl, and will thus be part of the official LLVM releases, but we're not there yet).

How do I fix that? (It's with МSVC 2019 x86-64 and last version of LLVM)

https://log.jocat.ru/pamabodoco.sql

HasbersHz commented 1 year ago

MSVC 2019 (IIRC, that's the newest version older than 2022).

The LLVM version needed is builtin, so can't be changed (b/c Cling made changes for interactivity; most of what Cling needs is being upstreamed into clang-repl, and will thus be part of the official LLVM releases, but we're not there yet).

I just don't have much time to work on my project, so I just want to know what versions of the libraries and applications I need to put it to work.

wlav commented 1 year ago

As said, MSVC 2019. Hopefully, I can get cppyy 3.0.0 out in a week or so. Ironically, it's fully tested on Linux and Mac, still have to do Windows.

HasbersHz commented 1 year ago

As said, MSVC 2019. Hopefully, I can get cppyy 3.0.0 out in a week or so. Ironically, it's fully tested on Linux and Mac, still have to do Windows.

All right, I'll use your project in the future, find no projects other than your that can load c++ dll. But I'm not lucky to have a project ready in two days, sleepless nights again, and use other, stupid method

Developer-Mike commented 1 year ago

What is the current status of the release of version 3.0.0?

wlav commented 1 year ago

cppyy 3.0.0 was released yesterday and Windows should now work fine again with the latest MSVC.