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

I am trying to make PINCE package on NixOS #104

Closed
TheK0tYaRa opened this issue Oct 1, 2021 · 6 comments
Closed

I am trying to make PINCE package on NixOS #104

TheK0tYaRa opened this issue Oct 1, 2021 · 6 comments

Comments

@TheK0tYaRa
Copy link

The problems i am facing is that there is not a single image on the buttons and running with sudo fails. The sudo part i will figure out myself. Also it fails to work with GDB and writes that the GDB is not initialized. I may be missing some packages. Please help me make this package reach more users.

@TheK0tYaRa
Copy link
Author

The current issue is

>   File "/build/PINCE/libPINCE/GDB_Engine.py", line 202, in send_command
>     raise type_defs.GDBInitializeException
> libPINCE.type_defs.GDBInitializeException: GDB not initialized

@TheK0tYaRa
Copy link
Author

On further inspection, this is the expanded error log

running build_ext
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
/build/PINCE/libPINCE/libscanmem/misc.py:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
ScriptUtils (unittest.loader._FailedTest) ... ERROR
GDBCommandExtensions (unittest.loader._FailedTest) ... ERROR
test_split_symbol (tests.SysUtils_tests.SysUtils_tests) ... ok
test_read_registers (tests.GDB_Engine_tests.GDB_Engine_tests) ... ERROR
test_change_text_length (tests.GuiUtils_tests.GuiUtils_tests) ... ok

======================================================================
ERROR: ScriptUtils (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: ScriptUtils
Traceback (most recent call last):
  File "/nix/store/i1m8r7mv8h47wr850cdsxksy22lv6gsz-python3-3.9.6/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/build/PINCE/libPINCE/gdb_python_scripts/ScriptUtils.py", line 18, in <module>
    import gdb, sys, traceback, functools
ModuleNotFoundError: No module named 'gdb'


======================================================================
ERROR: GDBCommandExtensions (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: GDBCommandExtensions
Traceback (most recent call last):
  File "/nix/store/i1m8r7mv8h47wr850cdsxksy22lv6gsz-python3-3.9.6/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/build/PINCE/libPINCE/gdb_python_scripts/GDBCommandExtensions.py", line 18, in <module>
    import gdb, pickle, json, sys, re, struct, io, ctypes, os, shelve, distorm3
ModuleNotFoundError: No module named 'gdb'


======================================================================
ERROR: test_read_registers (tests.GDB_Engine_tests.GDB_Engine_tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/PINCE/tests/GDB_Engine_tests.py", line 23, in test_read_registers
    register_dict = GDB_Engine.read_registers()
  File "/build/PINCE/libPINCE/GDB_Engine.py", line 1185, in read_registers
    return send_command("pince-read-registers", recv_with_file=True)
  File "/build/PINCE/libPINCE/GDB_Engine.py", line 202, in send_command
    raise type_defs.GDBInitializeException
libPINCE.type_defs.GDBInitializeException: GDB not initialized

----------------------------------------------------------------------
Ran 5 tests in 0.001s

@korcankaraokcu
Copy link
Owner

if you are using the newest PINCE build, it uses system gdb. Check if your system gdb resides in /bin/gdb

@TheK0tYaRa
Copy link
Author

Does it get the executable location from the environment or does it execute it directly? Wait, why am i even asking, i can search for that.

@korcankaraokcu
Copy link
Owner

It's hardcoded as /bin/gdb because all of the supported systems use that path. Maybe the whereis utility could be used if the path should be set dynamically.

@brkzlr
Copy link
Collaborator

brkzlr commented May 12, 2024

Closing as we don't officially support NixOS neither plan to for local dev installs. We have AppImages now.

#250 This PR contains work that makes it possible to have a local dev install on NixOS if you wish so.

#250 (comment) There are also some instructions here on how to make AppImages run.

@brkzlr brkzlr closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
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

3 participants