dh-virtualenv icon indicating copy to clipboard operation
dh-virtualenv copied to clipboard

dh_strip gets error no dynamic section in dynamic segment

Open dinhthihuyen opened this issue 9 months ago • 2 comments

I use dh_virtualenv to package my project. when I run command 'dpkg-buildpackage -b', I got this error "No .dynamic section in dynamic segment" when running to dh_strip. Does anyone else get the same problem? Thanks so much for your support!!!

dinhthihuyen avatar Nov 13 '23 03:11 dinhthihuyen

I did try to solve this problem by override_dh_strip, override_dh_shlibdeps; using this link: https://dh-virtualenv.readthedocs.io/en/latest/howtos.html: override_dh_strip: dh_strip --exclude=/site-packages/

override_dh_shlibdeps: dh_shlibdeps --exclude=/site-packages/

Packaging process is done without errors, however, when I finished packaging my package, I installed it using this command: sudo dpkg -i myscript_0.0.1_all.deb. But when I call entry point of setup.py, it returned: command not found. I have searched for some websites, forums but still cannot handle it.

dinhthihuyen avatar Nov 13 '23 03:11 dinhthihuyen

I realise that, when installed successfully package using sudo dpkg -i myscript_0.0.1_all.deb, I can activate debian environment and import package installed. However, I cannot get call command as entry_point in setup.py. So my question is, when I installed successfully debian package, how could I use this .deb file to activate virtual environment and call entry_point in setup.py? Thanks so much for your support!!!

dinhthihuyen avatar Nov 13 '23 04:11 dinhthihuyen