Coder Social home page Coder Social logo

pyfactura's People

Contributors

reingart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyfactura's Issues

Error al ejecutar en Python 2.7

Mariano:

Soy nuevo en Python y tengo el siguiente problema, luego de instalar Python, pyAfipWs y todas las dependencias, y de clonar https://github.com/SistemasAgiles/pyfactura.git
Obtengo el siguiente error:

C:\factura (master)                                             
λ python factura.pyw                                            
para soporte de DBF debe instalar dbf 0.88.019 o superior       
Traceback (most recent call last):                              
  File "factura.pyw", line 585, in <module>                     
    image=''):                                                  
AttributeError: __exit__                                        

Realice algunos cambios para que pueda ejecutarse el programa.
Modifique todas las sentencias de la clase gui para que utilizar el parametro parent, aunque logre corre pyfactura, todavia tengo algunos errores en los eventos de los componentes.

Reemplace

with gui.Window(name='mywin', visible=False,
                title=u'Aplicativo Facturaci\xf3n Electr\xf3nica', 
                resizable=True, height='620px', left='181', top='52', 
                width='653px',
                image=''):
    with gui.MenuBar(name='menubar_83_155', ):
        with gui.Menu(name='menu_114', ):
            gui.MenuItem(name='consultas', label='Consultas', 
                         onclick=on_consultas)
            gui.MenuItemSeparator(name='menuitemseparator_130', )
etc...

por

gui.Window(name='mywin', visible=False,
                title=u'Aplicativo Facturaci\xf3n Electr\xf3nica', 
                resizable=True, height='620px', left='181', top='52', 
                width='653px',
                image='')
gui.MenuBar(name='menubar_83_155', parent='mywin')
gui.Menu(name='menu_114', parent='menubar_83_155',)
gui.MenuItem(name='consultas', label='Consultas', 
                         onclick=on_consultas, parent='menu_114')
gui.MenuItemSeparator(name='menuitemseparator_130', parent='menu_114')
etc...

Supongo que es algun cambio en el framework gui2py, no indague mas en el tema.

Me gustaria que me indiques en que estoy errando, porque no puedo usar la version que esta en Github

Desde ya gracias, excelente trabajo.

Caracteristicas
Windows 7 32 bits
Python 2.7.9
wxPython 2.9.4
gui2py-0.9.3
pyafipws y las dependencias tal como indica https://code.google.com/p/pyafipws/wiki/InstalacionCodigoFuente

Setup and Install in Ubuntu 15.10

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

No ejecutable en Windows 8.1

La instalación se completó satisfactoriamente pero al momento de abrir el programa advierte la siguiente excepción:

issue

EDIT: No es compatible con arquitecturas de 64 bits. Mala mía

WindowsError: [Error -2146893795] (WinXP)

Al ejecutar el último release 0.9d en Windows XP SP3:

Traceback (most recent call last):
  File "factura.pyw", line 25, in <module>
  File "pyafipws\padron.pyc", line 28, in <module>
  File "urllib2.pyc", line 94, in <module>
  File "httplib.pyc", line 80, in <module>
  File "mimetools.pyc", line 6, in <module>
  File "tempfile.pyc", line 35, in <module>
  File "random.pyc", line 885, in <module>
  File "random.pyc", line 97, in __init__
    so it is better to simply reseed.
  File "random.pyc", line 113, in seed
    This fixes the problem with randint() which includes the
WindowsError: [Error -2146893795] La DLL proveedora no se ha podido inicializar correctamente

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.