OpenToontownTools / OpenRTM

An open sourced modernized version of Disney's in-house Robot Toon Manager used to create promotional material.
15 stars 5 forks source link

libotp not imported despite self-built libotp.pyd being present within the OpenRTM folder #3

Closed Rinfinity1 closed 8 months ago

Rinfinity1 commented 8 months ago
Traceback (most recent call last):
  File "D:\Panda3D-1.10.14-x64\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\Panda3D-1.10.14-x64\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "F:\OpenRTM\rtm.py", line 78, in <module>
    RTMBase().run()
  File "F:\OpenRTM\rtm.py", line 68, in __init__
    builtins.__dict__.update(__import__('libotp', fromlist=['*']).__dict__)
ImportError: DLL load failed: The specified procedure could not be found.
drewc5131 commented 8 months ago

sounds like you didn't build the pyd file yourself against the version of panda you're using and instead just dropped a pre built one into the folder. This is a user error, this issue is closed.

Rinfinity1 commented 8 months ago

sounds like you didn't build the pyd file yourself against the version of panda you're using and instead just dropped a pre built one into the folder. This is a user error, this issue is closed.

I did build it myself, I tried building it using different versions of panda Panda3D-1.10.14-x64 and 1.11.0-x64 It keeps resulting in that error. image image I've never done this before, I'm not sure what I'm doing wrong. I would greatly appreciate your help.

Rinfinity1 commented 8 months ago

Rebuilding it doesn't appear to solve the error, not sure what I'm doing wrong.

Traceback (most recent call last):
  File "C:\Panda3D-TTRMDev-1.11.0-x64\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Panda3D-TTRMDev-1.11.0-x64\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "F:\OpenRTM\rtm.py", line 78, in <module>
    RTMBase().run()
  File "F:\OpenRTM\rtm.py", line 72, in __init__
    from toontown.toon import RobotToonManager
  File "F:\OpenRTM\toontown\toon\RobotToonManager.py", line 7, in <module>
    from .RobotToon import *
  File "F:\OpenRTM\toontown\toon\RobotToon.py", line 1, in <module>
    from . import Toon
  File "F:\OpenRTM\toontown\toon\Toon.py", line 8, in <module>
    from .ToonHead import *
  File "F:\OpenRTM\toontown\toon\ToonHead.py", line 13, in <module>
    from toontown.toonbase import ToontownGlobals
  File "F:\OpenRTM\toontown\toonbase\ToontownGlobals.py", line 8, in <module>
    from direct.showbase.PythonUtil import Enum, invertDict
ImportError: cannot import name 'Enum'

got a different error this time. This error is earlier in the script so I probably just broke it more xD.

drewc5131 commented 7 months ago

This program has not been updated in 4 years, you're using a build of panda from just a few months ago, you will need a build of panda that was built around this time. You will have to clone the panda3d repo from a commit around this time

I'd also like to mention this program is barely functional so i dont even see why you'd use it right now.

Rinfinity1 commented 7 months ago

This program has not been updated in 4 years, you're using a build of panda from just a few months ago, you will need a build of panda that was built around this time. You will have to clone the panda3d repo from a commit around this time

I'd also like to mention this program is barely functional so i dont even see why you'd use it right now.

I didn't know any of this apart from the 4 years ago part.