Git Product home page Git Product logo

Comments (9)

HexDecimal avatar HexDecimal commented on May 29, 2024 1

I guess you might need the Visual C++ Redistributables, I thought they were included in Python, but I must have been wrong.

from python-tcod.

HexDecimal avatar HexDecimal commented on May 29, 2024

ImportError: DLL load failed: The specified module could not be found.

This error usually means that the SDL2.dll file bundled with tdl wasn't found (should be at site-packages\tcod\x86\SDL2.dll on your install.)

I wasn't able to reproduce your issue even while replicating your exact environment (fresh install of Python3.6.4-32 for all users, installing tdl via elevated pip prompt.)

from python-tcod.

nightblade9 avatar nightblade9 commented on May 29, 2024

There seems to be something strange about that particular machine. I can't reproduce it on other Windows VMs.

I'll close this for now and re-open it if it reoccurs on another machine. Sorry about that.

from python-tcod.

nightblade9 avatar nightblade9 commented on May 29, 2024

I checked that the file is there (it is). I tried granting All Users full access, but the same error repeated. I uninstalled and reinstalled it (granting full access to all users to the Python root installation directory), but I get the same error.

If you have any other ideas, I would like to hear them. I fear this is something generic to my Python installation on Windows 10, rather than a TDL issue (sorry). To be sure, I tried importing the other packages (numpy, pip, setuptools, cffi, and pycparser) and I can import them just fine.

I'm going to try uninstalling and installing the 64-bit version of Python instead.

from python-tcod.

nightblade9 avatar nightblade9 commented on May 29, 2024

Reinstalling the 64-bit version of Python, with the same caveats, resulted in the same behaviour.

Any ideas?

from python-tcod.

HexDecimal avatar HexDecimal commented on May 29, 2024

I just tested tdl on a real Windows 10 computer and it loaded without issues.

Dependency Walker might give you more specific information on what modules are missing if you run it on tcod\_libtcod.pyd

from python-tcod.

nightblade9 avatar nightblade9 commented on May 29, 2024

@HexDecimal maybe you can help me validate my installation; how did you install Python, and how did you install TDL?

  • From [here], I downloaded the web installer (32-bit and 64-bit both)
  • I installed for all users (so it went in C:\Program Files or (x86)
  • I granted all users full access to the Python install directory
  • I ran python -m pip install tdl from a non-admin/sudo/elevated prompt to install TDL

from python-tcod.

nightblade9 avatar nightblade9 commented on May 29, 2024

Looks like a lot of API-MS-WIN-* transitive dependencies are missing. Here's a very small subset sample from one dependency in Dependency Walker.

image

from python-tcod.

nightblade9 avatar nightblade9 commented on May 29, 2024

I installed the 2017 64-bit distributable from here (found via Google) and it works now.

Thanks so much for your help with this!

from python-tcod.

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.