justincpresley / ndn-hydra

ndn-hydra: A Python-coded NDN distributed repository with five focused attributes: resiliency, scalability, usability, efficiency, and security.
Apache License 2.0
3 stars 7 forks source link

ndn-hydra-repo ModuleNotFoundError: No module named 'src' #16

Closed yoursunny closed 3 years ago

yoursunny commented 3 years ago

Environment

Steps to reproduce

root@5d8aef893a93:/# ndn-hydra-repo -rp /hydra -n $(hostname -s) -s $RANDOM
Traceback (most recent call last):
  File "/usr/local/bin/ndn-hydra-repo", line 5, in <module>
    from src.ndn.hydra.repo.main.main import main
ModuleNotFoundError: No module named 'src'

Additional Information

Content of /usr/local/bin/ndn-hydra-repo is:

#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from src.ndn.hydra.repo.main.main import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())
yoursunny commented 3 years ago

This is resolved in ndn-hydra-0.1.5