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

Missing package #53

Closed
nlamirault opened this issue Jul 25, 2014 · 4 comments
Closed

Missing package #53

nlamirault opened this issue Jul 25, 2014 · 4 comments

Comments

@nlamirault
Copy link

i creates a debian package using your tool.
The content of this debian package is available here [1]. My entry point is well generated:

$ cat /usr/share/python/nimbus-stats/bin/nimbus-stats-monthly 
#!/usr/share/python/nimbus-stats/bin/python
# PBR Generated from u'console_scripts'

import sys

from nimbusstats.monthly import main


if __name__ == "__main__":
    sys.exit(main())

If i try the script :

$ /usr/share/python/nimbus-stats/bin/nimbus-stats-monthly 
Traceback (most recent call last):
  File "/usr/share/python/nimbus-stats/bin/nimbus-stats-monthly", line 6, in <module>
    from nimbusstats.monthly import main
  File "/usr/share/python/nimbus-stats/local/lib/python2.7/site-packages/nimbusstats/monthly.py", line 12, in <module>
    import datetime
ImportError: No module named datetime

datetime is not found in python interpreter :

$ /usr/share/python/nimbus-stats/bin/python
Python 2.7.3 (default, Mar 13 2014, 11:03:55) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named datetime
>>> 
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> 

Any idea ?

[1] : https://gist.github.com/nlamirault/32e1679c9616a30a33d4

@nlamirault nlamirault changed the title Missing package in deb file Missing package Jul 25, 2014
@nailor
Copy link
Collaborator

nailor commented Jul 25, 2014

Which version of dh-virtualenv are you using (dpkg -l dh-virtualenv should show that)? And is your build system identical to your production system?

@nlamirault
Copy link
Author

i use dh-virtualenv-0.7.tar.gz archive, and creates the debian file like this in a Docker container :

curl "https://codeload.github.com/spotify/dh-virtualenv/tar.gz/0.7" -o dh-virtualenv-0.7.tar.gz && \
    tar zxf dh-virtualenv-0.7.tar.gz && \
    cd dh-virtualenv-0.7 && \
    mk-build-deps -rit'apt-get --no-install-recommends -yq' && \
    dpkg-buildpackage -us -uc -b
dpkg -i /dh-virtualenv_0.7-1_all.deb

`̀``

@nlamirault
Copy link
Author

On a fresh Debian wheezy, it works. Thanks.
If 'requirements.txt' is under a requirements directory, debian archive does not contains the dependencies.

@nailor
Copy link
Collaborator

nailor commented Jul 25, 2014

Works? Nice. I'll close this issue in that case!

@nailor nailor closed this as completed Jul 25, 2014
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

2 participants