Giter Site home page Giter Site logo

2048.py doesn't find 2048.dll about 2048-ai HOT 6 CLOSED

Neryu avatar Neryu commented on June 15, 2024
2048.py doesn't find 2048.dll

from 2048-ai.

Comments (6)

nneonneo avatar nneonneo commented on June 15, 2024

How are you running it? By using the command line?
On Apr 16, 2014 7:58 AM, "Neryu" [email protected] wrote:

Hi.
I built the project on Windows using VS2012, then I have my folder bin
with 2048.dll inside, but when I run 2048.py, it tells me this :
Couldn't load 2048 library bin/2048.{so,dll,dylib}! Make sure to build it
first.
I'm running 2048.py in his directory, using python 2.7


Reply to this email directly or view it on GitHubhttps://github.com//issues/22
.

from 2048-ai.

Neryu avatar Neryu commented on June 15, 2024

Yes, I'm using the command line.

from 2048-ai.

nneonneo avatar nneonneo commented on June 15, 2024

Which directory did you say you ran 2048.py from? It should be run from the 2048-ai/ root directory, not any subdirectory.

from 2048-ai.

Neryu avatar Neryu commented on June 15, 2024

I run it from this directory, of course.
I'm going in the directory "2048-ai" and run the program by typing "python 2048.py"

from 2048-ai.

nneonneo avatar nneonneo commented on June 15, 2024

I think I figured it out. Your python is 64-bit and the DLL you built is 32-bit, or vice-versa. Basically the DLL has the wrong "bit-ness" so python doesn't load it, and the message incorrectly claims the library can't be found.

To fix, make sure to use the MSVC command prompt corresponding to the bitness of your Python: x86 for 32-bit, and x64 for 64-bit.

from 2048-ai.

Neryu avatar Neryu commented on June 15, 2024

It was this, thank you. I built the dll in 32-bit.
It is working well, thank you for your work and your support !

from 2048-ai.

Related Issues (20)

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.