Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to click any buttons in osx both with precompiled binary or running from source. #34

Open
Pidgeot opened this issue Apr 4, 2020 · 0 comments

Comments

@Pidgeot
Copy link
Owner

Pidgeot commented Apr 4, 2020

Exception:

#!python

$ python lnp.py
Note: PIL not found and Tk version too old for PNG support (8.5).Falling back to GIF images.
WARNING: LNP folder is missing!
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
    return self.func(*args)
  File "/Users/cden/Downloads/Pidgeot-python-lnp-f585d2edeb01/tkgui.py", line 495, in <lambda>
    command=lambda: self.cycle_option('temperature'))
  File "/Users/cden/Downloads/Pidgeot-python-lnp-f585d2edeb01/tkgui.py", line 1044, in cycle_option
    self.lnp.cycle_option(field)
  File "lnp.py", line 290, in cycle_option
    self.save_params()
  File "lnp.py", line 73, in save_params
    self.settings.write_settings()
  File "/Users/cden/Downloads/Pidgeot-python-lnp-f585d2edeb01/settings.py", line 231, in write_settings
    self.write_file(filename, self.in_files[files])
  File "/Users/cden/Downloads/Pidgeot-python-lnp-f585d2edeb01/settings.py", line 262, in write_file
    self.field_names[field], self.settings[field]), text)
  File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4879: ordinal not in range(128)

[Issue created by cdenyar: 2014-08-09]
[Last updated on bitbucket: 2014-08-15]

[Comment created by Pidgeot: 2014-08-10]
Judging by the log above, that would be expected - the directory structure isn't in place, so there isn't a graphics folder, or any packs to install. Please note that the binaries here do not contain any of that; you need to supply that yourself.

The folder containing the main script/binary needs to contain a folder named LNP, with a subfolder Graphics where the graphics packs are located - please see the current Windows starter pack for the details (you can use the same files for graphics on OS X, only utilities are platform-specific).

I would still like to see your previous init.txt and d_init.txt files for testing purposes (it is a bug, but I can't fix it without being able to reproduce it).

[Comment created by cdenyar: 2014-08-10]
Fresh install worked. Missing icon at the top of application and Install Graphics button and Open Graphics Folder buttons don't do anything. Let me know if oyu want any more logs, new issue submitted, etc.

(have pillow installed via homebrew.)

[Comment created by Pidgeot: 2014-08-09]
It looks like the program is complaining about the contents of one of the configuration files, but I cannot reproduce this here.

Could you please attach your init.txt and d_init.txt? Also, could you please try with a fresh copy of Dwarf Fortress?

Finally, I would also like to know the output of python --version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant