Advertisement
romerlrl

Testando pip+debugprov no linux com conda

Sep 3rd, 2021 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.63 KB | None | 0 0
  1. (base) romer@romer-Z550MA:~/ic/est_fork1$ python scrap.py venv
  2. ***************
  3. Comecei usando o venv, mas ele fez uma bagunça nas minhas dependências e ficava exigindo o sudo para qualquer coisa que achei mais vantajoso voltar para o conhecido conda.
  4. ***************
  5. (base) romer@romer-Z550MA:~/ic/est_fork1$ python scrap.py venv
  6. ******************************************************************************************************************************************************
  7. Comecei usando o venv, mas ele fez uma bagunça nas minhas dependências e ficava exigindo o sudo para qualquer coisa que achei mais vantajoso voltar para o conhecido conda.
  8. ******************************************************************************************************************************************************
  9.  
  10. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ python scrap.py now1
  11. ************************************************************
  12.  
  13. Agora parece que roda o noworkflow
  14. sem grandes problemas,
  15.  
  16. ************************************************************
  17. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ now run shide.py 9
  18. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.trial_id to column activation.trial_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.trial_id to activation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  19. session.query(cls.m)
  20. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.id to column activation.code_block_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.id to activation.code_block_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  21. session.query(cls.m)
  22. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Activation.evaluations' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Activation.evaluations' relationship.
  23. session.query(cls.m)
  24. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.activation' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Evaluation.activation' relationship.
  25. session.query(cls.m)
  26. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.id to column dependency.dependency_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.id to dependency.dependency_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  27. session.query(cls.m)
  28. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.activation_id to column dependency.dependency_activation_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.activation_id to dependency.dependency_activation_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  29. session.query(cls.m)
  30. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.trial_id to column dependency.trial_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.trial_id to dependency.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  31. session.query(cls.m)
  32. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Trial.arguments' will copy column trial.id to column argument.trial_id, which conflicts with relationship(s): 'Argument.trial' (copies trial.id to argument.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="trial"' to the 'Trial.arguments' relationship.
  33. session.query(cls.m)
  34. 9 False
  35. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ now run stoolkit 917
  36. usage: now run [-b] [-d DEPTH] [-c {main,package,all}] [-s SAVE_FREQUENCY]
  37. [-S CALL_STORAGE_FREQUENCY] [-h] [--name NAME] [--dir DIR] [-v]
  38. [--message MESSAGE] [--content-engine CONTENT_ENGINE]
  39. ...
  40. now run: error: argument script: can't open file 'stoolkit': [Errno 2] No such file or directory
  41. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ now run stoolkit.py 917
  42. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.trial_id to column activation.trial_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.trial_id to activation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  43. session.query(cls.m)
  44. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.id to column activation.code_block_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.id to activation.code_block_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  45. session.query(cls.m)
  46. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Activation.evaluations' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Activation.evaluations' relationship.
  47. session.query(cls.m)
  48. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.activation' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Evaluation.activation' relationship.
  49. session.query(cls.m)
  50. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.id to column dependency.dependency_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.id to dependency.dependency_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  51. session.query(cls.m)
  52. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.activation_id to column dependency.dependency_activation_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.activation_id to dependency.dependency_activation_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  53. session.query(cls.m)
  54. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.trial_id to column dependency.trial_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.trial_id to dependency.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  55. session.query(cls.m)
  56. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Trial.arguments' will copy column trial.id to column argument.trial_id, which conflicts with relationship(s): 'Argument.trial' (copies trial.id to argument.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="trial"' to the 'Trial.arguments' relationship.
  57. session.query(cls.m)
  58. 917 False
  59. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ now run spure.py 917
  60. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.trial_id to column activation.trial_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.trial_id to activation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  61. session.query(cls.m)
  62. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.id to column activation.code_block_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.id to activation.code_block_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  63. session.query(cls.m)
  64. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Activation.evaluations' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Activation.evaluations' relationship.
  65. session.query(cls.m)
  66. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.activation' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Evaluation.activation' relationship.
  67. session.query(cls.m)
  68. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.id to column dependency.dependency_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.id to dependency.dependency_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  69. session.query(cls.m)
  70. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.activation_id to column dependency.dependency_activation_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.activation_id to dependency.dependency_activation_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  71. session.query(cls.m)
  72. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.trial_id to column dependency.trial_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.trial_id to dependency.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  73. session.query(cls.m)
  74. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/head.py:87: SAWarning: relationship 'Trial.arguments' will copy column trial.id to column argument.trial_id, which conflicts with relationship(s): 'Argument.trial' (copies trial.id to argument.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="trial"' to the 'Trial.arguments' relationship.
  75. session.query(cls.m)
  76. 917 False
  77. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ python scrap.py now2
  78. ************************************************************
  79.  
  80. Exceto por essa verbosidade caracte-
  81. rística, é claro.
  82.  
  83. ************************************************************
  84. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ now list
  85. [now] trials available in the provenance store:
  86. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.trial_id to column activation.trial_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.trial_id to activation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  87. return proxy_gen(session.query(cls.m))
  88. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'CodeBlock.activations' will copy column code_block.id to column activation.code_block_id, which conflicts with relationship(s): 'Activation.code_block' (copies code_block.id to activation.code_block_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="code_block"' to the 'CodeBlock.activations' relationship.
  89. return proxy_gen(session.query(cls.m))
  90. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'Activation.evaluations' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Activation.evaluations' relationship.
  91. return proxy_gen(session.query(cls.m))
  92. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'Evaluation.activation' will copy column activation.trial_id to column evaluation.trial_id, which conflicts with relationship(s): 'Activation.this_evaluation' (copies activation.trial_id to evaluation.trial_id), 'Evaluation.this_activation' (copies activation.trial_id to evaluation.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="this_activation,this_evaluation"' to the 'Evaluation.activation' relationship.
  93. return proxy_gen(session.query(cls.m))
  94. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.id to column dependency.dependency_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.id to dependency.dependency_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  95. return proxy_gen(session.query(cls.m))
  96. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.activation_id to column dependency.dependency_activation_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.activation_id to dependency.dependency_activation_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  97. return proxy_gen(session.query(cls.m))
  98. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'Evaluation.dependencies_as_dependency' will copy column evaluation.trial_id to column dependency.trial_id, which conflicts with relationship(s): 'Dependency.dependency' (copies evaluation.trial_id to dependency.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="dependency"' to the 'Evaluation.dependencies_as_dependency' relationship.
  99. return proxy_gen(session.query(cls.m))
  100. /usr/local/lib/python3.8/dist-packages/noworkflow-2.0.0a0-py3.8.egg/noworkflow/now/persistence/models/base.py:272: SAWarning: relationship 'Trial.arguments' will copy column trial.id to column argument.trial_id, which conflicts with relationship(s): 'Argument.trial' (copies trial.id to argument.trial_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="trial"' to the 'Trial.arguments' relationship.
  101. return proxy_gen(session.query(cls.m))
  102. [*]Trial 1: run stoolkit.py 7 13
  103. with code hash 872544e66e9d04067c379838e85c1472c1805059
  104. ran from 2021-09-03 03:26:02.304748 to 2021-09-03 03:26:25.501247
  105. duration: 0:00:23.196499
  106. [*]Trial 2: run shide.py 9
  107. with code hash b30d514d02d1e8ac89806a3c3a94edbd81282938
  108. ran from 2021-09-03 03:45:32.048183 to 2021-09-03 03:45:52.252056
  109. duration: 0:00:20.203873
  110. [*]Trial 3: run stoolkit.py 917
  111. with code hash 872544e66e9d04067c379838e85c1472c1805059
  112. ran from 2021-09-03 03:47:10.848252 to 2021-09-03 03:47:24.253637
  113. duration: 0:00:13.405385
  114. [*]Trial 4: run spure.py 917
  115. with code hash cd08b5a4a55d5dc38c859899ea80ac0e934efe38
  116. ran from 2021-09-03 03:47:38.963359 to 2021-09-03 03:47:41.105236
  117. duration: 0:00:02.141877
  118. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ python scrap.py clear
  119. ************************************************************
  120.  
  121. No linux ele não crasha se você não
  122. apagar o .noworkflow anterior, mas
  123. ele não reconhece o novo.
  124. Agora, por exemplo, ele depurará o script
  125. errado, ao invés do solicitado. Depois
  126. disso apagaremos com um
  127. "rm -r .noworkflow"
  128. Além do mais, parece que minha solução
  129. para o clear não funcionou no linux.
  130.  
  131. ************************************************************
  132. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ python find_state.py RR
  133. Roraima
  134. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ more find_state.py
  135. import sys
  136. import json
  137.  
  138. def find(state):
  139. with open('estados.json') as json_file:
  140. data = json.load(json_file)
  141. for key in data:
  142. if key.get('sigla') == state:
  143. return key.get('nome')
  144. return "Not Found"
  145.  
  146. print(find(sys.argv[-1]))
  147. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ debugprov find_state.py RR
  148. Roraima
  149.  
  150. Traceback (most recent call last):
  151. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/main.py", line 8, in main
  152. ConsoleInterface().run()
  153. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/console_interface.py", line 92, in run
  154. exec_tree = creator.create_exec_tree()
  155. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/execution_tree_creator.py", line 15, in create_exec_tree
  156. root_node = self.get_root()
  157. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/execution_tree_creator.py", line 24, in get_root
  158. raise ValueError(
  159. ValueError: ValueError: Something wrong in database. 25 root nodes found
  160. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ python scrap.py clear2
  161. ************************************************************
  162. Parece que o debugprov mudou de opinião quanto a isso
  163. ************************************************************
  164. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ rm -r .noworkflow
  165. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ debugprov find_state.py RR
  166. Roraima
  167.  
  168. Choose a navigation strategy:
  169. [1] - SingleStepping
  170. [2] - TopDown
  171. [3] - HeaviestFirst
  172. [4] - DivideAndQuery
  173. > 1
  174. Do you want to use provenance enhancement? (y/n) n
  175. -------------------------
  176. Evaluating node 23 open('estados.json')
  177. Parameters: name | value
  178. 'estados.json' | 'estados.json'
  179. json_file | <_io.TextIOWrapper name='estados.json' mode='r' encoding='UTF-8'>
  180. Returns: <_io.TextIOWrapper name='estados.json' mode='r' encoding='UTF-8'>
  181. Is correct? (y/n) y
  182. -------------------------
  183. Evaluating node 29 json.load(json_file)
  184. Parameters: name | value
  185. json_file | <_io.TextIOWrapper name='estados.json' mode='r' encoding='UTF-8'>
  186. Returns: [{'sigla': 'AC', 'nome': 'Acre', 'cidades': ['Acrelândia', 'Assis Brasil', 'Brasiléia', 'Bujari', 'Capixaba', 'Cruzeiro do Sul', 'Epitaciolândia', 'Feijó', 'Jordão', 'Mâncio Lima', 'Manoel Urbano', 'Marechal Thaumaturgo', 'Plácido de Castro', 'Porto Acre', 'Porto Walter', 'Rio Branco', 'Rodrigues Alves', 'Santa Rosa do Purus', 'Sena Madureira', 'Senador Guiomard', 'Tarauacá', 'Xapuri']},
  187. ...
  188.  
  189. {'sigla': 'TO', 'nome': 'Tocantins', 'cidades': 'São Sebastião do Tocantins', 'São Valério', 'Silvanópolis', 'Sítio Novo do Tocantins', 'Sucupira', 'Taguatinga', 'Taipas do Tocantins', 'Talismã', 'Tocantínia', 'Tocantinópolis', 'Tupirama', 'Tupiratins', 'Wanderlândia', 'Xambioá']}]
  190. Is correct? (y/n) n
  191. Output file name: exec_tree
  192. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ debugprov spure.py 13
  193. 13 True
  194.  
  195. Traceback (most recent call last):
  196. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/main.py", line 8, in main
  197. ConsoleInterface().run()
  198. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/console_interface.py", line 92, in run
  199. exec_tree = creator.create_exec_tree()
  200. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/execution_tree_creator.py", line 15, in create_exec_tree
  201. root_node = self.get_root()
  202. File "/home/romer/miniconda3/envs/linuxfork1/lib/python3.8/site-packages/debugprov-0.0.1-py3.8.egg/debugprov/execution_tree_creator.py", line 24, in get_root
  203. raise ValueError(
  204. ValueError: ValueError: Something wrong in database. 4 root nodes found
  205. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ rm -r .noworkflow
  206. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ debugprov stoolkit.py 13
  207. 13 True
  208.  
  209. Choose a navigation strategy:
  210. [1] - SingleStepping
  211. [2] - TopDown
  212. [3] - HeaviestFirst
  213. [4] - DivideAndQuery
  214. > 2
  215. Do you want to use provenance enhancement? (y/n) n
  216. -------------------------
  217. Evaluating node 1 stoolkit.py
  218. Parameters: name | value
  219. Returns: <module '__main__' from '/home/romer/ic/est_fork1/stoolkit.py'>
  220. Is correct? (y/n) n
  221. -------------------------
  222. Evaluating node 30 int(k)
  223. Parameters: name | value
  224. k | '13'
  225. Returns: 13
  226. Is correct? (y/n) y
  227. -------------------------
  228. Evaluating node 31 is_prime(int(k))
  229. Parameters: name | value
  230. int(k) | 13
  231. Returns: True
  232. Is correct? (y/n) y
  233. -------------------------
  234. Evaluating node 78 print(k, is_prime(int(k)))
  235. Parameters: name | value
  236. k | '13'
  237. is_prime(int(k)) | True
  238. Returns: None
  239. Is correct? (y/n) y
  240. Output file name: exec_tree
  241. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$ more stoolkit.py
  242. from prompt_toolkit.shortcuts import confirm
  243.  
  244. import sys
  245. from math import gcd, ceil, sqrt
  246. def is_prime(n):
  247. a=int()
  248. if n<6:
  249. if n<2 or n==4:
  250. return False
  251. return True
  252. MULT235 = 2*3*5
  253. if gcd(n, MULT235)!=1:
  254. return False
  255. end = sqrt(n)
  256. if not end%1:
  257. return False
  258.  
  259. end = int(end)+1
  260.  
  261. for x in range(3, end, 2):
  262. if not n%x:
  263. return False
  264. return True
  265. if __name__ == '__main__':
  266. for k in sys.argv[1:]:
  267. print(k, is_prime(int(k)))
  268.  
  269. (linuxfork1) romer@romer-Z550MA:~/ic/est_fork1$
  270.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement