hur1can3/pymassmailer

Can't install via PIP

e2jk opened this issue · 1 comments

e2jk commented

When running pip install pymassmailer, the exception below is thrown, resulting in pymassmailer not being installed.

Reason is that the files retrieved from PIP do not include a README.md file in the root directory, and the following line in setup.py fails:

long_description=open("README.md").read() + "\n" +

When removing the reference to README.md (but leaving the next lines about docs/TODO.txt and docs/HISTORY.txt), the package installs alright.

Solution:

  • either include README.md in the distrubuted files on PIP
  • remove the reference to that file in setup.py

Traceback:

emilien@patarroyo:~$ pip install pymassmailer
Downloading/unpacking pymassmailer
  Running setup.py egg_info for package pymassmailer
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/emilien/build/pymassmailer/setup.py", line 10, in <module>
        open(os.path.join("docs", "TODO.txt")).read() + "\n" +
    IOError: [Errno 2] No such file or directory: 'README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/emilien/build/pymassmailer/setup.py", line 10, in <module>

    open(os.path.join("docs", "TODO.txt")).read() + "\n" +

IOError: [Errno 2] No such file or directory: 'README.md'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/emilien/build/pymassmailer
Storing complete log in /home/emilien/.pip/pip.log

Thanks e2jk i've removed the readme.md for now