Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting warnings like "Parameter [...] is not of type string" #29

Closed
samuell opened this issue Nov 8, 2016 · 2 comments
Closed

Getting warnings like "Parameter [...] is not of type string" #29

samuell opened this issue Nov 8, 2016 · 2 comments
Labels

Comments

@samuell
Copy link
Member

samuell commented Nov 8, 2016

When running sciluigi workflows, or the tests, with a Luigi version later thatn 2.0.1, we get warnings similar to this:

[samuel sciluigi]$ ./test/run_tests.sh 
NOTICE: this script might not work properly you have CDPATH set to something that contains a folder named 'test'
No handlers could be found for logger "luigi-interface"
/home/samuel/opt/miniconda2/lib/python2.7/site-packages/luigi/parameter.py:259: UserWarning: Parameter NonStringParamWF(instance_name=nonstring_param_wf) is not of type string.
  warnings.warn("Parameter {0} is not of type string.".format(str(x)))
./home/samuel/opt/miniconda2/lib/python2.7/site-packages/luigi/parameter.py:259: UserWarning: Parameter WorkflowTask(instance_name=sciluigi_workflow) is not of type string.
  warnings.warn("Parameter {0} is not of type string.".format(str(x)))
./home/samuel/opt/miniconda2/lib/python2.7/site-packages/luigi/parameter.py:259: UserWarning: Parameter MultiInOutWf(instance_name=sciluigi_workflow) is not of type string.
  warnings.warn("Parameter {0} is not of type string.".format(str(x)))
.
----------------------------------------------------------------------
Ran 3 tests in 0.046s

OK
@APRashedAhmed
Copy link

Is there an easy way to silence these warnings if there isn't a fix for it yet?

@samuell
Copy link
Member Author

samuell commented May 27, 2020

Hi @apra93 and others. This one is now fixed in Version 0.9.7 (also pushed to PyPI).

@samuell samuell closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants