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

dh_strip gets error no dynamic section in dynamic segment #361

Open
dinhthihuyen opened this issue Nov 13, 2023 · 2 comments
Open

dh_strip gets error no dynamic section in dynamic segment #361

dinhthihuyen opened this issue Nov 13, 2023 · 2 comments

Comments

@dinhthihuyen
Copy link

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
Copy link
Author

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
Copy link
Author

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!!!

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

No branches or pull requests

1 participant