Pidgeot / python-lnp

Cross-platform re-implementation of the Lazy Newb Pack launcher.
ISC License
64 stars 10 forks source link

PyLNP not starting on Ubuntu Gnome 17.04 #160

Closed Pidgeot closed 4 years ago

Pidgeot commented 4 years ago

When running with either gnome terminal or xterm -e I get this:

#!

Running PyLNP 0.12a (OS: linux, Compiled: True)
ERROR: Unable to read current colors
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.colors", line 44, in get_colors
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.colors", line 44, in <genexpr>
TypeError: int() argument must be a string or a number, not 'NoneType'

The builtin test passes when using xterm -e, but I still cant start Dwarf Fortress from within LNP. I can however start Dwarf Fortress from the df_linux directory.

Im running Ubuntu Gnome 17.04 64 Bit

[Issue created by mcb95: 2017-04-26] [Last updated on bitbucket: 2017-06-10]

[Comment created by Pidgeot: 2017-05-06] I have figured out the color error - the Linux LNP includes a colorscheme Western_Rust.txt, but it is an incomplete file. I've improved the error message, since it's plain wrong when it reads other files.

I've set up a VM of Ubuntu 17.04 to test the main issue; I'll get back when I've figured something out.

[Comment created by mcb95: 2017-05-03] correct

[Comment created by Pidgeot: 2017-04-30] And just to be sure, DF doesn't start for you with either GNOME or XTerm selected in the Configure Terminal?

[Comment created by mcb95: 2017-04-30] stderr.txt:

#!
Running PyLNP 0.12a (OS: linux, Compiled: True)
DEBUG: dfhack_PyLNP.init not found.
DEBUG: onLoad_PyLNP.init not found.
DEBUG: onMapLoad_PyLNP.init not found.
INFO: Read installed graphics (Spacefox) from log
ERROR: Unable to read current colors
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.colors", line 44, in get_colors
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.colors", line 44, in <genexpr>
TypeError: int() argument must be a string or a number, not 'NoneType'
DEBUG: Checking for terminal KDE
DEBUG: Checking for terminal GNOME
DEBUG: Found terminal GNOME
DEBUG: Checking for terminal Xfce
DEBUG: Checking for terminal LXDE
DEBUG: Checking for terminal Mate
DEBUG: Checking for terminal i3
DEBUG: Checking for terminal (u)rxvt
DEBUG: Checking for terminal xterm
DEBUG: Found terminal xterm
DEBUG: Checking for terminal Custom command
DEBUG: Found terminal Custom command
DEBUG: Checking for terminal KDE
DEBUG: Checking for terminal GNOME
DEBUG: Found terminal GNOME
DEBUG: Checking for terminal Xfce
DEBUG: Checking for terminal LXDE
DEBUG: Checking for terminal Mate
DEBUG: Checking for terminal i3
DEBUG: Checking for terminal (u)rxvt
DEBUG: Checking for terminal xterm
DEBUG: Found terminal xterm
DEBUG: Checking for terminal Custom command
DEBUG: Found terminal Custom command
DEBUG: Checking for terminal KDE
DEBUG: Checking for terminal GNOME
DEBUG: Found terminal GNOME
DEBUG: Checking for terminal Xfce
DEBUG: Checking for terminal LXDE
DEBUG: Checking for terminal Mate
DEBUG: Checking for terminal i3
DEBUG: Checking for terminal (u)rxvt
DEBUG: Checking for terminal xterm
DEBUG: Found terminal xterm
DEBUG: Checking for terminal Custom command
DEBUG: Found terminal Custom command

stdout.txt

#!
Waiting for parent process to continue...
Waiting for parent process to terminate...
Test complete. Will terminate in 3 seconds.
inating parent process...

data/init/colors.txt:

#!

Spacefox colors

[BLACK_R:32]
[BLACK_G:39]
[BLACK_B:49]
[BLUE_R:0]
[BLUE_G:106]
[BLUE_B:255]
[GREEN_R:68]
[GREEN_G:184]
[GREEN_B:57]
[CYAN_R:114]
[CYAN_G:156]
[CYAN_B:251]
[RED_R:212]
[RED_G:54]
[RED_B:85]
[MAGENTA_R:176]
[MAGENTA_G:50]
[MAGENTA_B:255]
[BROWN_R:217]
[BROWN_G:118]
[BROWN_B:65]
[LGRAY_R:170]
[LGRAY_G:196]
[LGRAY_B:178]
[DGRAY_R:128]
[DGRAY_G:151]
[DGRAY_B:156]
[LBLUE_R:48]
[LBLUE_G:165]
[LBLUE_B:255]
[LGREEN_R:144]
[LGREEN_G:255]
[LGREEN_B:79]
[LCYAN_R:168]
[LCYAN_G:212]
[LCYAN_B:255]
[LRED_R:255]
[LRED_G:82]
[LRED_B:82]
[LMAGENTA_R:255]
[LMAGENTA_G:107]
[LMAGENTA_B:255]
[YELLOW_R:255]
[YELLOW_G:232]
[YELLOW_B:102]
[WHITE_R:255]
[WHITE_G:250]
[WHITE_B:232]

[Comment created by Pidgeot: 2017-04-30] Please do the following:

1) Run PyLNP with the command-line argument -d. 2) Open the Configure Terminal dialog. 3) Try to run DF. 4) Close PyLNP. 5) Attach stdout.txt and stderr.txt from your LNP directory.

This should make it a bit easier to figure out what's happening.

The specific error message is a separate thing, but I'd also like to know what colorscheme you're using, so if you could attach data/init/colors.txt from the DF directory, that would be helpful too.

[Comment created by Pidgeot: 2017-06-10] Remove LD_LIBRARY_PATH and PYTHONPATH from environment before launching DF (fixes #138) (fixes #140)

→ <>