I am new to git, and deployed my first python-django app via github:
https://github.com/staticdev/django-crud-utils
The problem is that, when I try to install it, I get the error:
$ pip install -e git://github.com/staticdev/django-crud-utils.git#egg=django-crud-utils
Obtaining django-crud-utils from git+git://github.com/staticdev/django-crud-utils.git#egg=django-crud-utils
Updating /home/static/virtualenvs/prp2/src/django-crud-utils clone
Running setup.py egg_info for package django-crud-utils
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/static/virtualenvs/prp2/src/django-crud-utils/setup.py", line 15, in <module>
DESC = " ".join(__import__('crud_utils').__doc__.splitlines()).strip()
AttributeError: 'NoneType' object has no attribute 'splitlines'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/static/virtualenvs/prp2/src/django-crud-utils/setup.py", line 15, in <module>
DESC = " ".join(__import__('crud_utils').__doc__.splitlines()).strip()
AttributeError: 'NoneType' object has no attribute 'splitlines'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/static/virtualenvs/prp2/src/django-crud-utils
Storing complete log in /home/static/.pip/pip.log
Any help?
Tks in advance.
You don’t have a docstring on the
crud_utilspackage, thus installation fails.You can get the same error by just running the
setup.pymodule locally:Add a docstring to your
crud_utils/__init__.pymodule:P.S. You also checked in the
.pycbyte-compiled cache files into GitHub, you may want to remove those.