Can't run setup.py
$ python setup.py Traceback (most recent call last): File "setup.py", line 61, in main() File "setup.py", line 18, in main logging.basicConfig(level=logging.DEBUG, handler=logging.StreamHandler()) File "C:\Program Files\Python37\lib\logging\__init__.py", line 1921, in basicConfig raise ValueError('Unrecognised argument(s): %s' % keys) ValueError: Unrecognised argument(s): handler
--
$ python -V Python 3.7.2
--
Traceback (most recent call last): File "setup.py", line 61, in main() File "setup.py", line 18, in main logging.basicConfig(level=logging.DEBUG, handler=logging.StreamHandler()) File "C:\Program Files\Python37\lib\logging_init_.py", line 1921, in basicConfig raise ValueError('Unrecognised argument(s): %s' % keys) ValueError: Unrecognised argument(s): handler
I haven't been able to reproduce this error. What OS are you running it on? Which version of Python are you using?
windows 10 pro and python 3.7.2
im having the same problem
Try running it with python 2 really quick and let me know if there's still an error. That will help isolate the issue.
After reading the setup.py file, I recommend using the nested pip module within python for WIndows OS, as it is a bit cleaner over the "where" function in Windows; In fact I'm not certain that function works the way it is anticipated in some scenarios.
In place of "pip install <requirement", try "python -m pip install
---edit ... although as I think about that, just import pip and install using the package rather than subproc? There's different ways to solve this issue, but I think the output you'll get from "where" is not consistent enough and in the same pattern as "which" to be counted on.
You would need to check for multiple return items or parse locals/try to execute "pip" alone and then search and parse on failure.
See if the changes here do anything for you... I don't have a Windows system to test on at the moment, apologies.
https://github.com/intrct/byob/tree/issue%2396 specifically; https://github.com/intrct/byob/commit/c216adafca6aedb43eb17b4e86d98eeeec8aa969
hey! im testing this at Win/lin/arm environments and workaround from @intrct working for me
at install on windows systems down virtual environment/or not, install requirements like this : python -m pip install -r byob\requirements.txt
I think standardizing on the python -m pip install -r
This is somewhat backwards compatible with newer 2.x, but on issues like this BYOB maybe should only focus on 3.x and less about 2.x; it will be deprecated soon.
This issue has been fixed in pull request #99