8000 Python compatibility ? · Issue #138 · Cubitect/cubiomes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Python compatibility ? #138
Open
Open
@Rudymil

Description

@Rudymil

I compiled on Windows 64-bit :

> cd C:\cubiomes
> gcc -shared -o cubiomes.dll -O3 -march=native *.c -lm
> dir


    Répertoire : C:\cubiomes


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        13/03/2025     20:20                docs
d-----        13/03/2025     20:20                tables
-a----        13/03/2025     20:20             52 .gitattributes
-a----        13/03/2025     20:20            174 .gitignore
-a----        13/03/2025     20:20          70323 biomenoise.c
-a----        13/03/2025     20:20          10955 biomenoise.h
-a----        13/03/2025     20:20          12162 biomes.c
-a----        13/03/2025     20:20           7637 biomes.h
-a----        13/03/2025     20:20            852 CMakeLists.txt
-a----        13/03/2025     20:36         741972 cubiomes.dll
-a----        13/03/2025     20:20         188981 finders.c
-a----        13/03/2025     20:20          30571 finders.h
-a----        13/03/2025     20:20          28483 generator.c
-a----        13/03/2025     20:20           4508 generator.h
-a----        13/03/2025     20:20          62213 layers.c
-a----        13/03/2025     20:20           6851 layers.h
-a----        13/03/2025     20:20           1086 LICENSE
-a----        13/03/2025     20:20           1253 makefile
-a----        13/03/2025     20:20          17076 noise.c
-a----        13/03/2025     20:20           2542 noise.h
-a----        13/03/2025     20:20          16646 quadbase.c
-a----        13/03/2025     20:20          19809 quadbase.h
-a----        13/03/2025     20:20          13133 README.md
-a----        13/03/2025     20:20          10445 rng.h
-a----        13/03/2025     20:20          15716 tests.c
-a----        13/03/2025     20:20          24245 util.c
-a----        13/03/2025     20:20           2001 util.h


> python
Python 3.13.2 (tags/v3.13.2:4f8bb39, Feb  4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> cubiomes = ctypes.CDLL(r"C:\cubiomes\cubiomes.dll")
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    cubiomes = ctypes.CDLL(r"C:\cubiomes\cubiomes.dll")
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.13_3.13.752.0_x64__qbz5n2kfra8p0\Lib\ctypes\__init__.py", line 390, in __init__
    self._handle = _dlopen(self._name, mode)
                   ~~~~~~~^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\cubiomes\cubiomes.dll' (or one of its dependencies). Try using the full path with constructor syntax.
>>>

Did I compile the module correctly for use with python ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0