Pineboo Instalación en Windows64

Print Friendly, PDF & Email

Manual para instalar Pineboo en Windows 64 con un servidor MySQL o uno PostgreSQL.

  • CREADO POR: miguelajsmaps@gmail.com en https://github.com/Miguel-J/eneboo/wiki (YA NO EXISTE)
  • FECHA CREACIÓN: 2018
  • ACTUAL: miguelajsmaps@gmail.com en http://manuales-eneboo-pineboo.org/pineboo-que-es/pineboo-instalacion-windows-64/
  • ÚLTIMA ACTUALIZACIÓN:Last updated: abril 4, 2021 at 7:34 am

PINEBOO INSTALACIÓN EN WINDOWS64 CON MYSQL o POSTGRESQL:

Índice:

  1. PASO 1 – DESCARGAMOS PINEBOO :
  2. PASO 2 – INSTALAMOS PYTHON 3.x :
  3. PASO 3 – CREAR EL PATH PARA PYTHON 3.X :
  4. PASO 3 bis – REQUERIMIENTOS PARA WINDOWS :
  5. PASO 4 – INSTALAR «Python-lxml» PARA WINDOWS :
  6. PASO 5 – INSTALAR PYTHON3-PLY :
  7. PASO 6 – INSTALAR PYTHON3-PYQT6 :
  8. PASO 7 – INSTALAR PYTHON3-FUTURE : (obsoleto?)
  9. PASO 8 – INSTALAR PYTHON3-PSYCOPG2 :
  10. PASO 9 – INSTALAR PYTHON3-XMLJSON : (obsoleto?)
  11. PASO 9B-Instalar PYTHON3-BARCODE :
  12. PASO 9C-Instalar PYTHON3-PILLOW :
  13. PASO 9D-Instalar PYTHON3-Z3C.RML :
  14. PASO 9E-Instalar PYTHON3-FPDF :
  15. PASO 9F-Instalar PYTHON3-ODFPY
  16. PASO 9G-Instalar PYTHON3-MYSQLDB
  17. PASO 9H-Instalar PYTHON3-FERNET
  18. PASO 10 – INSTALAR SERVIDOR MySQL o PostgreSQL :
  19. PASO 11 – DAR DE ALTA NUEVO USUARIO Y BASE DE DATOS EN SERVIDOR MySQL o PostgreSQL :
  20. PASO 12 – ARRANCAR PINEBOO :
  21. PASO 13 – AÑADIR DATOS CONEXIÓN AL FORMULARIO DE ENTRADA :

Haz clic aquí para volver al índice


1. PASO 1-DESCARGAMOS PINEBOO:


Hay varias formas de conseguirlo. Al estar en desarrollo, la última versión está en GITHUB, Descargarlo de:

https://github.com/Aulla/pineboo

Desde GITHUB, puede hacerse usando este manual para descargar el repositorio:

http://manuales-eneboo-pineboo.org/github-como-instalarlo-y-usarlo/

…o, si no se tiene cuenta en Github, dándole al BOTÓN VERDE QUE HAY ARRIBA A LA DERECHA «<-_CODE» y elegir la opción «download zip«….lo descomprimimos y:

Llevamos  la carpeta «pineboo-master» al directorio raíz y la renombramos como c:\»pineboo» (a secas, y la que tiene los archivos, no la que tenga dentro otra «pineboo-master»)…


  1. CONSEJO DE AULLA 2021:
  2. CONSEJO DE AULLA 2018:
    •  Descargamos pineboo: git clone https://github.com/Aulla/pineboo.git en «ebcomportamiento» hay un apartado «actualizaciones» , que si lo activáis y usáis pineboo en el mismo repo de git, actualiza automáticamente pineboo al arrancar.

Haz clic aquí para volver al índice


2. PASO 2-INSTALAMOS PYTHON 3:

  • Ir a www.python.org y luego a «download»
  • https://www.python.org/downloads/
  • NOTA 2020: nota: instalar PYTHON 3.8 PORQUE EL 3.9 NO TIENE ACTUALIZADA LA DEPENDENCIA DE pymssql https://pypi.org/project/pymssql/
  • Descargar Python 3.8. Asegurarse que se instala pip y seleccionar instalación para todos los usuarios:
  • https://www.python.org/downloads/windows/
  • Download Windows x86-64 executable installer
  • descargarla y ejecutarla: crea el directorio c:\python38 y un acceso directo en el menú…
  • NOTA: NO FUNCIONARÁ SI TAMBIÉN HAY INSTALADO UN PYTHON 2.x…desinstálalo.
  • ACTUALIZAR LAS LIBRERÍAS:
    • En el directorio C:\pineboo hay un fichero «requirements.txt» que pone todo lo que necesita Pineboo para funcionar (ver apartado 3 bis)
    • puedes instalar todas esas dependencias DE GOLPE, haciéndolo con
  • en el caso de que diga que el instalador «pip» está desactualizado, actualizarlo con:

  • OPCIONES ANTIGUAS:
    1. RESUMEN ENVIADO POR AULLA EL diciembre 2020: (OTRO DÍA LO REPARTO…)
      1. nota: instalar PYTHON 3.8 PORQUE EL 3.9 NO TIENE ACTUALIZADA LA DEPENDENCIA DE pymssql https://pypi.org/project/pymssql/
      2. otro:
        <AttributeError: ‘FLMYSQL_INNODB’ object has no attribute ‘_engine’C:\pineboo>
        Hola, puedes solucionarlo instalando el paquete que te falta , prueba con pip3 install MySQL,
        otro error:   building ‘MySQLdb._mysql’ extension
  • RESUMEN ENVIADO POR AULLA EL 29 MAYO 2018: (OTRO DÍA LO REPARTO…)

…que ahora me pide python3-lxml…

Haz clic aquí para volver al índice


3. PASO 3-CREAR EL PATH PARA PYTHON 3X:

  • Ir a «inicio»-«Configuración»-«Panel de Control»-ejecutar «Sistema»…
  • …pestaña: «Opciones Avanzadas» – abajo: «Variables de Entorno» – segunda ventana «Path» – «modificar» y añadir al final del campo:
  • Para PYTHON 3.5: «;C:\Python35«
  • …aceptar todo y reiniciar.

Haz clic aquí para volver al índice


3. PASO 3 bis – REQUERIMIENTOS PARA WINDOWS:

  • ACTUALIZAR LAS LIBRERÍAS:
    • En el directorio C:\pineboo hay un fichero «requirements.txt» que pone todo lo que necesita Pineboo para funcionar (ver apartado 3 bis)
    • puedes instalar todas esas dependencias DE GOLPE, haciéndolo con pip install -r requirements.txt
  • CONTENIDO del fichero «requirements.txt» (en 2019):
  • black
    fernet
    flake8
    fpdf
    mccabe
    mypy
    mypy-extensions
    ninja
    pg8000
    ply
    pylint
    PyQt5
    PyQt5-sip
    PyQt5-stubs
    pytest
    python-barcode
    python-dateutil
    pytz
    PyYAML
    reportlab
    setuptools
    SQLAlchemy
    sqlparse
    sphinx
    sphinx-autodoc-typehints
    testresources
    pydocstyle
    sphinx-rtd-theme
    pyroma
    defusedxml
    bandit
    coverage
    pylint-json2html
    pytest-cov
    json-rpc
    werkzeug
    odfpy
    wheel
    lxml
    flup
    xmljson
    twine
  • puedes hacerlo con pip install -r requirements.txt
  • el de fpdf no es el correcto , esta en README.rst
  • y necesitas python 3.8 minimo

Haz clic aquí para volver al índice


VISUALIZACIONES DEL RESULTADO DE LA INSTALACIÓN: (saltar al siguiente paso)

C:\Python36-32>pip install pyqt5 ply python-barcode Pillow z3c.rml

Collecting pyqt5

Downloading https://files.pythonhosted.org/packages/ … -win32.whl (39.4MB)

100% |████████████████████████████████| 39.4MB 24kB/s

Collecting ply

Downloading https://files.pythonhosted.org/ … py3-none-any.whl (49kB)

100% |████████████████████████████████| 51kB 409kB/s

Collecting python-barcode

Downloading https://files.pythonhosted.org/ … -any.whl (214kB)

100% |████████████████████████████████| 215kB 364kB/s

Collecting Pillow

Downloading https://files.pythonhosted.org/ … win32.whl (1.4MB)

100% |████████████████████████████████| 1.4MB 284kB/s

Collecting z3c.rml

Downloading https://files.pythonhosted.org/ … 1.tar.gz (1.5MB)

100% |████████████████████████████████| 1.6MB 262kB/s

Collecting PyQt5_sip<4.20,>=4.19.11 (from pyqt5)

Downloading https://files.pythonhosted.org/ … 2.whl (43kB)

100% |████████████████████████████████| 51kB 468kB/s

Collecting PyPDF2>=1.25.1 (from z3c.rml)

Downloading https://files.pythonhosted.org/ … 0.tar.gz (77kB)

100% |████████████████████████████████| 81kB 524kB/s

Collecting Pygments (from z3c.rml)

Downloading https://files.pythonhosted.org/ … any.whl (841kB)

100% |████████████████████████████████| 849kB 327kB/s

Collecting backports.tempfile (from z3c.rml)

Downloading https://files.pythonhosted.org/ … any.whl

Collecting lxml (from z3c.rml)

Downloading https://files.pythonhosted.org/ … win32.whl (3.2MB)

100% |████████████████████████████████| 3.2MB 204kB/s

Collecting reportlab>=3.1.44 (from z3c.rml)

Downloading https://files.pythonhosted.org/ … win32.whl (2.2MB)

100% |████████████████████████████████| 2.2MB 234kB/s

Requirement already satisfied: setuptools in c:\python36-32\lib\site-packages (from z3c.rml)

Collecting six (from z3c.rml)

Downloading https://files.pythonhosted.org/ … any.whl

Collecting zope.interface (from z3c.rml)

Downloading https://files.pythonhosted.org/ … win32.whl (132kB)

100% |████████████████████████████████| 133kB 385kB/s

Collecting zope.schema (from z3c.rml)

Downloading https://files.pythonhosted.org/ … any.whl (89kB)

100% |████████████████████████████████| 92kB 491kB/s

Collecting backports.weakref (from backports.tempfile->z3c.rml)

Downloading https://files.pythonhosted.org/ … any.whl

Collecting zope.event (from zope.schema->z3c.rml)

Downloading https://files.pythonhosted.org/ … any.whl

Installing collected packages: PyQt5-sip, pyqt5, ply, python-barcode, Pillow, PyPDF2, Pygments, backports.weakref, backports.tempfile, lxml, reportlab, six, zope.interface, zope.event, zope.schema, z3c.rml

Running setup.py install for PyPDF2 … done

Running setup.py install for z3c.rml … done

Successfully installed Pillow-5.3.0 PyPDF2-1.26.0 PyQt5-sip-4.19.13 Pygments-2.2.0 backports.tempfile-1.0 backports.weakref-1.0.post1 lxml-4.2.5 ply-3.11 pyqt5-5.11.3 python-barcode-0.9.0 reportlab-3.5.9 six-1.11.0 z3c.rml-3.5.1 zope.event-4.4 zope.interface-4.6.0 zope.schema-4.9.3

You are using pip version 9.0.3, however version 18.1 is available.

You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.

C:\Python36-32>pip install odfpy


…que ahora me pide PLY…

Haz clic aquí para volver al índice


4. PASO 4-INSTALAR PYTHON-LXML:

    • para Windows:
    • ir a DOWNLOADS (bajar página) y Elegir la versión correcta para tu versión de Windows. Yo instalo la de Windows 64b con Python 3.5:

  • …resulta que esto es un PAQUETE DE WHEEL¿??¿….y NO se instala automáticamente…hay que buscarlo en la carpeta de «descargas» y llevarlo a la carpeta de Python35….luego vas a la consola MS-DOS (con botón derecha mouse-«ejecutar como administrador»)…y te colocas en el directorio Python35 y ejecutas:

  • NOTA: ESTOS PAQUETES LOS PUEDE DESCARGAR E INSTALAR DIRECTAMENTE PYTHON 3 CON PIP3, Y SI ÉSTE ESTÁ OBSOLETO SE ACTUALIZA ASÍ:


…que ahora me pide PLY…

Haz clic aquí para volver al índice


5. PASO 5-INSTALAR PYTHON3-PLY:

  • CONCEPTO: «Welcome to the PLY homepage. PLY is an implementation of lex and yacc parsing tools for Python. If you don’t have the slightest idea what that means, you’re probably in the wrong place. Otherwise, keep reading.»
  • DESCARGARLO DE:

http://www.dabeaz.com/ply/

  • …bajar PLY 3.10 en «Links» – «Download Ply3.10» …descomprimirlo en c:\ y…
  • …y ejecutar «setup» desde MSDOS yendo al directorio: «cd c:\ply-3.10«:

  • (una vez instalado se puede borrar este directorio.)
  • …lo instala automáticamente en Python 3.5.

…pero ahora me pide pyqt6…

Haz clic aquí para volver al índice


6. PASO 6-Instalar PYTHON3-PYQT6:

  • 2021-abril: pide instalar PyQt6:

  • 2020-puede dar problemas de instalación y es necesario instalar ANTES (hay que elegir la opción de C++ en:
    • error: Microsoft Visual C++ 14.0 is required. Get it with «Build Tools for Visual Studio»: https://visualstudio.microsoft.com/ downloads/

    • SOLUCIÓN:
  • https://www.riverbankcomputing.com/ … download5
  • PARA PYTHON 3.9: ir a «Source Packages» y luego a……..PyQt5 is provided as a source distribution (sdist) and binary wheels from PyPI.
  • (NOTA 2020: LO QUE SIGUE ESTÁ OBSOLETO)que te lleva a https://sourceforge.net/projects/ pyqt/files/PyQt5/
  • , donde eliges la: PyQt-5.6 2016-04-25 y donde descargo el «Download PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x32-2.exe (46.2 MB) «
  • lo ejecuto y reinicio el ordenador…
  • otra opción es instalarlo DIRECTAMENTE desde Python35:



ABRE EL FORMULARIO DE CONEXIÓN !!

Haz clic aquí para volver al índice


8. PASO 8-Instalar PYTHON3-PSYCOPG2:

  • CONCEPTO: «Psycopg is a PostgreSQL adapter for the Python programming language.»

http://initd.org/psycopg/docs/install.html


  • PARA DESCARGAR LA LIBRERIA:»Jason Erickson maintains a packaged Windows port of Psycopg with installation executable. Download. Double click. Done.»
    • te lleva a: http://www.stickpeople.com/ … /win-psycopg/
    • PARA PYTHON 3.5: donde bajo el «psycopg2-2.6.2.win-amd64-py3.5-pg9.5.3-release.exe«
    • descargo, ejecuto, se instala sólo en c\Python35 y listo
    • otra opción es instalarlo DIRECTAMENTE desde Python36:


Haz clic aquí para volver al índice


9. PASO 9-Instalar PYTHON3-XMLJSON:

  • CONCEPTO: «xmljson converts XML into Python dictionary structures (trees, like in JSON) and vice-versa.»

https://pypi.python.org/pypi/xmljson

  • Se puede instalar DIRECTAMENTE desde Python35: «This is a pure-Python package built for Python 2.6+ and Python 3.0+. To set up:»


Haz clic aquí para volver al índice


9.B PASO 9-Instalar PYTHON3-BARCODE:

https://pypi.python.org/pypi/python-barcode/0.8.1


Haz clic aquí para volver al índice


9.C PASO 9-Instalar PYTHON3-PILLOW:

POR SI SALE ESTE ERROR:


Haz clic aquí para volver al índice


9.D PASO 9-Instalar PYTHON3-Z3C.RML:

POR SI SALE ESTE ERROR:


Haz clic aquí para volver al índice


9.E PASO 9-Instalar PYTHON3-FPDF:

  • 2020: fpdf2 2.1.0 requires Pillow<=8,>=4, but you’ll have pillow 8.0.1 which is incompatible.
    • SOLUCIÓN:
  • 2018: POR SI SALE ESTE ERROR:


Haz clic aquí para volver al índice


9.F PASO 9-Instalar PYTHON3-ODFPY:

POR SI SALE ESTE ERROR:


Haz clic aquí para volver al índice


9.G PASO 9-Instalar PYTHON3-MYSQLDB:

POR SI SALE ESTE ERROR:

  • primer intento (FALLIDO):

  • segundo intento : OPCIÓN MYSQL: NECESITA INSTALAR LA LIBRERÍA MYSQL :

      • As was inferred by the error, the c++ compiler is needed for whatever extension you’re trying to install. If you install VisualStudio Community (it’s free), you’ll get the build tools needed:
      • https://visualstudio.microsoft.com/ es/downloads/
      • ELEGIR LA OPCIÓN C++ (arriba a la derecha-ver imagen):

    visualstudio

  • Tercer intento: NOTA: Puede dar error de instalación al hacer «pip install mysqlclient» porque no reconoce el «visualstudio», para evitarlo:

    1. Ir a la web https://www.lfd.uci.edu/~gohlke /pythonlibs/#mysqlclient
    2. Elegir la versión adecuada a la de tu versión de Python , en mi caso la 3.6 y darle a descargar.
    3. Por si acaso, descargo la de 32 bits y la de 64 bits
    4. Las muevo hacia c:\
    5. Desde cmd voy a c:\ y llamo a instalar ese archivo:


Haz clic aquí para volver al índice


9.H PASO 9-Instalar PYTHON3-FERNET:

POR SI SALE ESTE ERROR:


Haz clic aquí para volver al índice


10. PASO 10-INSTALAR SERVIDOR MySQL o PostgreSQL:

Instalación de Eneboo en Windows con PostgreSQL

  • NOTA: CUIDADO, resulta que Pineboo se conecta al 127.0.0.1 y PostgreSQL se configura para «oír» sólo «localhost»…por lo que hay que arreglarlo editando el archivo «postgresql.conf» (C:\Program Files\PostgreSQL\9.5\data) y/o los datos de conexión del servidor en PgAdminIII…???…pues pone «*»…???….pruebo a reiniciar todo sin cambiar nada, a ver….ok, ya funciona…

Haz clic aquí para volver al índice


11. PASO 11-DAR DE ALTA NUEVO USUARIO Y BASE DE DATOS EN SERVIDOR MySQL o PostgreSQL :

http://manuales-eneboo-pineboo.org/instalacion-en-windows-con-mysql/instalacion-en-windows-con-postgresql/

  • PASO 11 – B – ARRANCAR ENEBOO Y CARGAR DIRECTORIO DE MÓDULOS para PostgreSQL :
  • ESTE PASO ES OPCIONAL: sirve para crear la base de datos y añadir los módulos….también se puede usar una empresa ya creada, para poder probar Pineboo…

Instalación de Eneboo en Windows con PostgreSQL

Haz clic aquí para volver al índice


12. PASO 12-ARRANCAR PINEBOO:

      • Voy a MS_DOS (Inicio-Programas-Sistema de Windows-Símbolo de sistema y botón derecho «ejecutar como administrador»)
      • Cambio con «cd» hasta llegar a «C\Python38» y ejecutar:c:\Python38> python c:\Github\pineboo\pineboo.py
      • NOTA: no es necesario hacerlo desde el directorio «Python38» si éste se ha añadido al path de windows…

Formulario entrada nuevo pineboo-1

  • NOTA: Para «ver» los errores de arranque hay que ejecutarlo con:

  • NOTA 2: Para «ver» el «ÁREA DE SISTEMA» en el menú con las opciones de cargar módulos, etc … hay que ejecutarlo con:

con

vuelve a ser quick

  • NOTA: Para crear un acceso directo en el escritorio de Windows, visita:

http://manuales-eneboo-pineboo.org/acceso-directo-a-pineboo-en-windows/

Haz clic aquí para volver al índice


13. PASO 13-EDITAR EL FORMULARIO DE ENTRADA:

        • Se puede escribir después de arrancar Pineboo:

ESCRIBIR DATOS DE CONEXION EN EL FORMULARIO DE ENTRADA:

        • Pineboo crea un archivo-base de datos de las empresas en formato Base de Datos SQlite: pinebooconectores.sqlites en un directorio QUE PUEDES ELEGIR en el formulario de entrada (abrir el desplegable, abajo, tercera pestaña, en mi caso: C:\Users\usuario\Pineboo\profiles

Formulario entrada nuevo pineboo 2021-1
Formulario entrada nuevo pineboo 2021-2
Formulario entrada nuevo pineboo 2021-3

Haz clic aquí para volver al índice


error: Content is protected !!