Coder Social home page Coder Social logo

ScoreDraft 模块无法导入 about scoredraft HOT 9 OPEN

fynv avatar fynv commented on July 30, 2024
ScoreDraft 模块无法导入

from scoredraft.

Comments (9)

fynv avatar fynv commented on July 30, 2024 1

确实,用Python Extension这种方式会导致只兼容固定的Python版本,我回头用Python3.7编译一份去。

from scoredraft.

fynv avatar fynv commented on July 30, 2024

In ReadMe, I said:

Run CMake to generate makefiles/project files for your system and build. You are recommanded to:

use the /build directory as you building directory i
use /python_test as your CMAKE_INSTALL_PREFIX

In Windows, you can set the variable CMAKE_INSTALL_PREFIX in the cmake GUI.
If CMAKE_INSTALL_PREFIX is already pointed to "python_test", you just need to build the "INSTALL" project in VS after "BUILD_ALL" succeeded.

from scoredraft.

ZeroAurora avatar ZeroAurora commented on July 30, 2024

也就是说现在没有预编译模块了?

from scoredraft.

fynv avatar fynv commented on July 30, 2024

啊抱歉,如果是下载后直接运行例子是不应该出现这个问题的。
请检查以下可能的问题:

  1. python_test/ScoreDraft/PyScoreDraft.pyd 是否因某种原因丢失
  2. 操作系统是否为64位Windows. 32位系统这个模块是不兼容的
  3. 系统中是否存在Python 2.x. 如果有的话,请尝试以下指令运行:
    python_test> python3 Hello.py

from scoredraft.

ZeroAurora avatar ZeroAurora commented on July 30, 2024

三问题均无

from scoredraft.

fynv avatar fynv commented on July 30, 2024

我看了一下PyScoreDraft.pyd依赖的其他DLL:

PYTHON36.DLL : 看来你的python必须是3.6版本才能直接用这个build
KERNEL32.DLL: 没什么好说
MSVCP120.DLL & MSVCR120.DLL: 需要VC2013的 Runtime (vcredist_x64)

以上我能想到的。

from scoredraft.

ZeroAurora avatar ZeroAurora commented on July 30, 2024

必须是 py3.6?我装的 py 3.7

from scoredraft.

ZeroAurora avatar ZeroAurora commented on July 30, 2024

估摸着要自己编译一份了

from scoredraft.

LovelyA72 avatar LovelyA72 commented on July 30, 2024

I tried in my python that pre-installed in my system and it does not work:
image

However, WinPython and Anaconda work flawlessly:
image
image

So, in conclusion, I think the problem can be the reason that Python 3.7 is not supported in ScoreDraft. You can try to grab a copy of WinPython (with Python 3.6) since it's portable and does not require an uninstallation to get rid of it.

from scoredraft.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.