sonatype-nexus-community / jake

Check your Python environments for vulnerable Open Source packages with OSS Index or Sonatype Nexus Lifecycle.
https://jake.readthedocs.io/
Apache License 2.0
114 stars 24 forks source link

Running jake on Windows produces OSError [BUG] #25

Closed benf710 closed 4 years ago

benf710 commented 4 years ago

Description Running jake on Windows produces the following error:

> jake --help
Traceback (most recent call last):
  File "...\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "...\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "...\Scripts\jake.exe\__main__.py", line 4, in <module>
  File "...\lib\site-packages\jake\__main__.py", line 22, in <module>
    from os import _exit, EX_OSERR, path, mkdir
ImportError: cannot import name 'EX_OSERR' from 'os' (...\lib\os.py)
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'>
OSError: [Errno 22] Invalid argument

Desktop:

ButterB0wl commented 4 years ago

Merged and closed by #24

@benf710 test out the latest release and close it out if it works on your end!

benf710 commented 4 years ago

Tested and working on 0.2.1.