i wrote simple python interface working pushwoosh notification service while back, @ https://github.com/astutech/pushwoosh-python-library , i've gotten around publishing can installed using pip. first time i've published python library pypi , i'm in bit of muddle.
trying install brings following error:
collecting pushwoosh using cached pushwoosh-1.0.0.tar.gz complete output command python setup.py egg_info: traceback (most recent call last): file "<string>", line 20, in <module> file "/tmp/pip-build-5m3jj7uu/pushwoosh/setup.py", line 17, in <module> open(path.join(here, 'description.rst'), encoding='utf-8') f: file "/usr/lib/python3.4/codecs.py", line 896, in open file = builtins.open(filename, mode, buffering) filenotfounderror: [errno 2] no such file or directory: '/tmp/pip-build-5m3jj7uu/pushwoosh/description.rst' ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pip-build-5m3jj7uu/pushwoosh it looks kind of path related issue. i'm not sure pushwoosh.py in correct location. if move pushwoosh/pushwoosh.py, , add pushwoosh/__init__.py filei need import follows:
from pushwoosh.pushwoosh import pushwoosh this not ideal. documentation can't see i've gone wrong. directory layout should using?
edit: have resolved issue description.rst, unless move pushwoosh.py file pushwoosh folder , add __init__.py file, installing library doesn't install pushwoosh.py doesn't work. how can amend can import this?
from pushwoosh import pushwoosh
figured out in end. works if put file inside module_name folder __init__.py.
Comments
Post a Comment