-
Notifications
You must be signed in to change notification settings - Fork 12
Common Errors
stderr.txt in the root of the pack should show the following errors:
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/Tkinter", line 1532, in __call__
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 52, in run_df
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 93, in run_program
File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.terminal", line 38, in get_terminal_command
TypeError: coercing to Unicode: need string or buffer, list found
Make sure you have correctly configured your terminal for launching DF.
- Go to File -> Configure Terminal
- Double-check the drop down menu to ensure you have specified a terminal installed on your system
- Double-check the text field below the drop down menu to ensure that if a custom command is specified, that "custom command" is also specified in the drop down menu.
- If a custom command is specified, click on the Test custom terminal button to ensure PyLNP is able to launch DF/DFHack properly.
Download the latest distro_fixes.sh and replace the copy in your DF folder with it.
If libstdc++ errors persist, try deleting or renaming libs/libstdc++.dylib
.
- Install vanilla Dwarf Fortress, check that it starts up.
- Open a terminal and create a symlink to the vanilla DF copy of libgraphics.so in the LNP libs directory - first remove the LNP version:
$ rm /path/to/lnp/df_linux/libs/libgraphics.so
- Then create the symlink:
$ ln -s /opt/dwarffortress/libs/libgraphics.so /path/to/lnp/df_linux/libs/libgraphics.so
or if the above doesn't work, try:
$ ln -s ~/.dwarffortress/libs/libgraphics.so /path/to/lnp/df_linux/libs/libgraphics.so
- Try to restart LNP DF, if you get an error about libstdc++.so.6 then you'll need to create a symlink to that too. Find where libstdc++.so.6 is on your system:
$ whereis libstdc++.so.6
libstdc.so: ... /usr/lib/libstdc++.so.6
- First remove the LNP version:
$ rm /path/to/lnp/df_linux/libs/libstdc++.so.6
- Then create the symlink to the path that
whereis
gave you:
$ ln -s /usr/lib/libstdc++.so.6 /path/to/lnp/df_linux/libs/libstdc++.so.6
- Start DF!
-- Working on Arch Linux, 3rd July 2016 - russ0r
On Arch there are also a couple of broken symlinks in the LNP DF libs folder:
libopenal.so -> /usr/lib/i386-linux-gnu/libopenal.so.1
libsndfile.so -> /usr/lib/i386-linux-gnu/libsndfile.so.1
They didn't cause any problems for me, but you can symlink these to /usr/lib/* using the same method above if you're still having issues (e.g. no audio, as they look related to sound)
- Install vanilla dwarf fortress, verify that it works.
- Find the file called "libgraphics.so" in the normal dwarf fortress install location.
- Copy that file into "lnp install folder/df_linux/libs" and overwrite the existing file.
- Try "sudo ./startlnp" again and click start. If dwarf fortress does not open, or you get some error, delete the file named something like "libstdc++.so" in "lnp install folder/df_linux/libs". -- DwarfMonad
- install libcanberra-gtk3-dev