Consistency with Rpy 1 and NumPy packages and tools, e.g. linear_regression
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- build-system, tooling
Línea de trabajo
Compara packages/package_rpy_1_0_3/tool_dependencies.xml con la versión vinculada de GitHub y, después, inspecciona tools/linear_regression y sus dependencias de R, rpy y NumPy. Reproduce la discrepancia de versión de API notificada y rastrea qué versiones de las dependencias están instaladas. Se considera terminado cuando la cadena de dependencias de rpy y las herramientas afectadas utilizan versiones compatibles de NumPy sin requisitos duplicados y conflictivos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
These tools and dependency chains are broken. But will work if you have numpy 1.7 available locally. Detailed analysis follows.
Rpy requires NumPy, but the current version of rpy 1.0.3 in the toolshed (https://toolshed.g2.bx.psu.edu/repos/devteam/package_rpy_1_0_3/file/82170c94ca7c/tool_dependencies.xml https://toolshed.g2.bx.psu.edu/view/devteam/package_rpy_1_0_3/82170c94ca7c) does not have a repository dependency defined.
However, the current version in github, https://github.com/galaxyproject/tools-devteam/blob/fbc219afb27b57b7a7aabbf2936439273753664e/packages/package_rpy_1_0_3/tool_dependencies.xml, has a dependency on numpy 1.9, added in fbc219afb27b57b7a7aabbf2936439273753664e.
But I don't think we can or should 'just update' this package in the toolshed, due to inconsistencies when digging into tools.
The linear_regression tool (https://github.com/galaxyproject/tools-devteam/tree/master/tools/linear_regression https://toolshed.g2.bx.psu.edu/view/devteam/linear_regression/cf431604ec3e) has dependencies on rpy 1.0.3, R 2.11.0, and numpy 1.7.
This causes an error with linear_regression (and possibly other tools), when Rpy is built against NumPy 1.9, but given NumPy 1.7:
RuntimeError: module compiled against API version 9 but this version of numpy is 7
I was able to hack the Rpy 1.0.3 package locally to get these tools to work, with this:
shed_tools/toolshed.g2.bx.psu.edu/repos/devteam/package_rpy_1_0_3/82170c94ca7c/package_rpy_1_0_3$ hg diff
diff -r 82170c94ca7c tool_dependencies.xml
--- a/tool_dependencies.xml Tue Apr 01 10:47:51 2014 -0400
+++ b/tool_dependencies.xml Tue Nov 22 10:35:19 2016 -0500
@@ -3,6 +3,9 @@
<package name="R" version="2.11.0">
<repository changeset_revision="6e1b17857732" name="package_r_2_11_0" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
</package>
+ <package name="numpy" version="1.7.1">
+ <repository changeset_revision="0c288abd2a1e" name="package_numpy_1_7" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
+ </package>
<package name="rpy" version="1.0.3">
<install version="1.0">
<actions>
@@ -15,6 +18,9 @@
<repository changeset_revision="6e1b17857732" name="package_r_2_11_0" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
<package name="R" version="2.11.0" />
</repository>
+ <repository changeset_revision="0c288abd2a1e" name="package_numpy_1_7" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
+ <package name="numpy" version="1.7.1" />
+ </repository>
</action>
<action type="make_directory">$INSTALL_DIR/lib/python</action>
<action type="shell_command">
and then uninstalling/reinstalling rpy 1.0.3.
This was the path of least resistance given the current state of the packages in the toolshed (rpy not requiring numpy).
However, the correct fix is most likely to have rpy require numpy (like in current github-only copy, numpy version is up for debate), and simultaneously update any tools using rpy to not manually require their own version of numpy, thereby getting the version inherited through the rpy dependency chain.
- Lenguaje dominante
- Python
- Estrellas
- 37
- Forks
- 94
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de galaxyproject/tools-devteam
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
galaxyproject/tools-devteam#632 · 1 comentario ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
galaxyproject/tools-devteam#626 ·
-
Test against 22.01Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 15/100
galaxyproject/tools-devteam#602 · 2 comentarios ·
-
Unused tool parametersAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
galaxyproject/tools-devteam#601 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 38/100
galaxyproject/tools-devteam#597 · 4 comentarios ·
Todos los issues de galaxyproject/tools-devteam
Issues similares
-
bug status/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
prowler-cloud/prowler#12887 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: desktop platform: macos priority: p3 status: ready type: enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
use-agent-os/agent-os#3484 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
open-telemetry/opentelemetry-python-contrib#5113 · 2 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
external
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
langchain-ai/docs#6255 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día