SistemasAgiles / pyfactura

Electronic Invoice visual application (Argentina)
GNU General Public License v3.0
28 stars 21 forks source link

Setup and Install in Ubuntu 15.10 #6

Open mgscreativa opened 8 years ago

mgscreativa commented 8 years ago

Hi, I've managed to setup this script on Ubuntu 15.10, but now, I think I must configure something because I don't even know how to run this. If you can, please tell me how to proceed next, I'm getting runtimeError: Imposible abrir reingart.crt

Here are my config steps to get ready

1 - Install some deps

sudo apt-get install python-wxgtk3.0 python-dbf

2 - Go to home dir

cd ~

**3 - Create pyfactura and lib folder (to store scrypt deps) and access to it***

mkdir -p ./pyfactura/lib
cd ./pyfactura/lib

4 - Clone gui2py

git clone https://github.com/reingart/gui2py.git
cd gui2py
sudo python setup.py install
cd ..

5 - Clone pysimplesoap

git clone https://github.com/pysimplesoap/pysimplesoap.git
cd pysimplesoap
sudo python setup.py install
cd ..

6 - Clone pyfpdf

git clone https://github.com/reingart/pyfpdf.git
cd pyfpdf
sudo python setup.py install
cd ..

7 - Clone web2py

git clone --recursive https://github.com/web2py/web2py.git
cd web2py
sudo python setup.py install
cd ..

8 - Clone pyafipws

git clone https://github.com/reingart/pyafipws.git
cd pyafipws
sudo python setup.py install
cp -R ./conf/ ../../conf/
cd ../../

9 - Clone pyfactura

git clone https://github.com/SistemasAgiles/pyfactura.git

10 - Get some missing images

wget http://www.sistemasagiles.com.ar/img/sistemas-agiles.png
wget http://www.sistemasagiles.com.ar/trac/chrome/site/logo-pyafipws.png

11 - Start the program

python factura.pyw
mgscreativa commented 8 years ago

Got it to the cert creation part, got my homo and prod certs, copy them into config filder and set them in rece.ini like this

[WSAA] CERT=brigliaghiamartinsebastian-internet-ubuntu-homologacion.crt PRIVATEKEY=brigliaghiamartinsebastian.key URL=http://wsaahomo.afip.gov.ar/ws/services/LoginCms

But now I get RuntimeError: Imposible abrir brigliaghiamartinsebastian-internet-ubuntu-homologacion.crt

mgscreativa commented 8 years ago

Well, I think I resolved the cert loading by passing an absolute path, but now I'm getting a time out timeout: timed out...

[WSAA] CERT=/home/martin/Descargas/pyfactura/conf/brigliaghiamartinsebastian-internet-ubuntu-homologacion.crt PRIVATEKEY=/home/martin/Descargas/pyfactura/conf/brigliaghiamartinsebastian.key URL=http://wsaahomo.afip.gov.ar/ws/services/LoginCms