HarveyHunt / i3situation

A replacement for i3status written in Python 3 with support for huge customisability through plugins.
GNU General Public License v3.0
34 stars 5 forks source link

Installing with pip #12

Closed eeach closed 10 years ago

eeach commented 10 years ago

When installing from pypi today, I encountered the attached error. I got around this error by commenting out the _longdescription=read('README.md') line in setup.py or by doing touch /root/build/i3situation/README.md (at first I wasn't installing as root).

Just giving a heads up, as the package on pypi doesn't seem to include README.md.

Downloading/unpacking i3situation
  Running setup.py egg_info for package i3situation
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/root/build/i3situation/setup.py", line 20, in <module>
        long_description=read('README.md'),
      File "/root/build/i3situation/setup.py", line 8, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    IOError: [Errno 2] No such file or directory: '/root/build/i3situation/README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/root/build/i3situation/setup.py", line 20, in <module>
    long_description=read('README.md'),
  File "/root/build/i3situation/setup.py", line 8, in read
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
IOError: [Errno 2] No such file or directory: '/root/build/i3situation/README.md'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /root/build/i3situation
Storing complete log in /root/.pip/pip.log
HarveyHunt commented 10 years ago

Thanks for the heads up on this, I'll change the setup.py so that it doesn't open the README if it isn't there. I'll update the pypi package when I next release.

wei2912 commented 10 years ago

Consider using Travis CI to automatically update the package when there's a release.