nesg-ugr / msnm-sensor

GNU General Public License v3.0
15 stars 7 forks source link

pip no permite instalar directorios locales (fcparser) #1

Open eliasgrana opened 3 years ago

eliasgrana commented 3 years ago

El problema viene en el paso de tener que instalar las dependencias de MSNM-Sensor mediante el comando:

pip install -r /home/msnm/msnm-sensor/requirements.txt

Actualmente, la última dependencia del fichero requirements.txt hace refencia al repositorio git+https://github.com/josecamachop/FCParser@v1.0.0#egg=fcparser, el cual contiene la herramienta FCParser en Python2.

Ya que en esta versión de MSNM-Sensor estamos trabajando sobre Python3, hemos de cambiar esta última dependencia para que se adecúe a la versión de FCParser en Python3, la cual se encuentra en la siguiente ruta: https://github.com/nesg-ugr/msnm-sensor/tree/development/src/fcparser, en esta rama de desarrollo del proyecto.

El problema reside en que después de varios intentos sigo sin conseguir que con pip y desde el fichero requirements.txt se instale la versión de Python3 de FCParser.

Algunos intentos van en la dirección de cambiar la última ĺínea de requirements.txt, la cual es la siguiente:

-e git+https://github.com/josecamachop/FCParser@v1.0.0#egg=fcparser

Por alguna línea que permita instalar nuestro directorio local de fcparser, cuya ruta sería (src/fcpaser) desde el directorio actual. Por ejemplo, una aproximación sería la siguiente: pip install -e src/fcparser

Sin embargo, esto no funciona, ya que, aunque se instale la dependencia de FCParser, al ejecutar MSNM-Sensor no lo reconoce como tal.

La solución que he tomado hasta ahora ha sido utilizar es instalar las dependencias de pip con el fichero requirements.txt actual (el cual hace referencia a FCParser en su versión antigua) y reemplazar de manera manual la carpeta de FCParser que se crea en Python2 por la que se encuentra en este repositorio (src/fcparser) (la cual sí está en Python3)

nesg-ugr commented 3 years ago

Dear Elías,

It should be good to use the new version of the FCParser currently the v2.0.0 https://github.com/josecamachop/FCParser/releases/tag/v2.0.0

Best, Roberto.

josecamachop commented 3 years ago

Hi all, please note the new version of FCParser is based on Python 3 and it changes all the structure of folders and scripts. It may not be straightforward to do so.

El mar, 15 jun 2021 a las 12:53, NESG (Network Engineerging & Security Group) @.***>) escribió:

Dear Elías,

It should be good to use the new version of the FCParser currently the v2.0.0 https://github.com/josecamachop/FCParser/releases/tag/v2.0.0

Best, Roberto.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nesg-ugr/msnm-sensor/issues/1#issuecomment-861398818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6T7LFTXKTYORVSC27UQ5LTS4WL7ANCNFSM453OEIVA .

-- José Camacho-Páez, Ph.D.

Associate Professor, Signal Theory, Networking and Communications Department, University of Granada, C/ Periodista Daniel Saucedo Aranda s/n 18071 GRANADA (Spain),

tel: +34 958 248898 <+34%20958%2024%2088%2098> web: wpd.ugr.es/~josecamacho

CONFIDENTIALITY NOTICE: This electronic transmission, and any documents attached hereto, may contain confidential and/or privileged information. The information is intended only for use by the recipient named above. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of information received in error is strictly prohibited.