Gigoteur / UnicornConsole

Unicorn Console: create quick fantasy game in Rust/Python/Lua/Rhai/Wasm !
MIT License
905 stars 47 forks source link

Support Python 3.6 on macOS #19

Closed nikolay closed 7 years ago

nikolay commented 7 years ago
$ ./px8
dyld: Library not loaded: libpython3.5m.dylib
  Referenced from: /Users/username/Downloads/PX8-0.0.1-OSX/./px8
  Reason: image not found
Abort trap: 6
hallucino commented 7 years ago

Hi,

thank you for the report.

I noticed this bug too and right now you could install python 3 on OSX and export the following env variable DYLD_FALLBACK_LIBRARY_PATH, e.g: export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib

I will try to understand how to do it automatically

hallucino commented 7 years ago

Does it work ?

hallucino commented 7 years ago

?

nikolay commented 7 years ago

@hallucino Yeah, this made it pass beyond the initial crash, but it still doesn't work (due to Rust issues now).

hallucino commented 7 years ago

what is the output ?

nikolay commented 7 years ago

@hallucino For sure, it does not work in the itch.io desktop client. When I go to ~/Library/Application Support/itch/apps/PX8/PX8 and run it, then some games (with .px8 file) work, others (like flappy) and fill up the console with:

[2017-04-29][14:36:32][WARN] DRAW = PyErr { ptype: <class 'OverflowError'>, pvalue: None, ptraceback: Some(<traceback object at 0x117962c48>) }

Is it possibly to somehow remove the annoying FPS header?

Anyway, it looks like only flappy does not work at this time with the latest release.

hallucino commented 7 years ago

ok so it seems ok, Flappy was more a test so I will take a look

hallucino commented 7 years ago

@nikolay for the FPS, use F2 to disable it