Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Unable to install pip requirements on linux #1551

Closed
darakian opened this issue Jan 27, 2020 · 2 comments
Closed

Unable to install pip requirements on linux #1551

darakian opened this issue Jan 27, 2020 · 2 comments

Comments

@darakian
Copy link
Contributor

darakian commented Jan 27, 2020

Trying to setup a new instance I got this. It seems to be due to an update to the watchdog package and

[user@ip MozDef]# grep -r watchdog .
./mozdef_util/setup.py:    'watchdog>=0.9.0',
./mozdef_util/requirements_dev.txt:watchdog==0.9.0

but I'm still investigating.

Full error log below

Collecting watchdog>=0.9.0
  Downloading watchdog-0.10.0.tar.gz (94 kB)
    ERROR: Command errored out with exit status 1:
     command: /opt/mozdef/envs/python/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oink2l00/watchdog/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oink2l00/watchdog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-oink2l00/watchdog/pip-egg-info
         cwd: /tmp/pip-install-oink2l00/watchdog/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-oink2l00/watchdog/setup.py", line 86, in <module>
        changelog = f.read()
      File "/opt/mozdef/envs/python/lib64/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 63: ordinal not in range(128)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
@darakian
Copy link
Contributor Author

darakian commented Jan 27, 2020

Seems like it's a watchdog issue and they have a patch for it
gorakhargosh/watchdog#615
gorakhargosh/watchdog#616

@darakian
Copy link
Contributor Author

and resolved with an updated watchdog package :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant