Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
713 stars 191 forks source link

v0.3.0 gives errors relating to missing config if not manually created #9

Closed CHgsd closed 8 years ago

CHgsd commented 8 years ago

Once installed the current pip version (0.3.0) as well as the git Master triggers an undefined error if the config is not manually created.

$ samsungctl
Traceback (most recent call last):
  File "/usr/local/bin/samsungctl", line 9, in <module>
    load_entry_point('samsungctl===0.3.0-git', 'console_scripts', 'samsungctl')()
  File "build/bdist.linux-x86_64/egg/samsungctl/__main__.py", line 88, in main
  File "build/bdist.linux-x86_64/egg/samsungctl/__main__.py", line 36, in _read_config
NameError: global name 'FileNotFoundError' is not defined

Once the config file is created, this particular error disappears.

Ape commented 8 years ago

This should be working with Python 3. Please report if it still occurs.