Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No funciona el parametro /dbf #18

Open
catrielr opened this issue Jul 21, 2015 · 1 comment
Open

No funciona el parametro /dbf #18

catrielr opened this issue Jul 21, 2015 · 1 comment

Comments

@catrielr
Copy link

Usando la ultima version de pyafipws

Con la version dbf 0.96.003 tengo la siguente salida:
Excepcion: table encabeza.dbf is closed
Traceback (most recent call last):
File "c:\pyafipws-master\rece1.py", line 642, in
}, open(salida,"w"))
File "c:\pyafipws-master\rece1.py", line 268, in escribir_factura
guardar_dbf(formatos, agrega, conf_dbf)
File "c:\pyafipws-master\utils.py", line 719, in guardar_dbf
reg = tabla.current()
File "c:\pyafipws-master\dbf\ver_2.py", line 2301, in current
self._nav_check()
File "c:\pyafipws-master\dbf\ver_2.py", line 4585, in _nav_check
raise DbfError('table %s is closed' % self.filename)

dbf.ver_2.DbfError: table encabeza.dbf is closed

Con la version dbf 0.88.019 tengo la siguente salida:

C:\clipper>python c:\pyafipws-master\rece1.py c:\pyafipws-master\rece.ini /dbf /ult 1 4002
Consultar ultimo numero:
Ultimo numero: 3982

setting imptotalq 44.54
setting monedaidc PES
setting tiporegxaq 0
setting fechavencp
Excepcion: 'fechacbte: no such field in table'
setting imptotalq 44.54
setting monedaidc PES
setting tiporegxaq 0
setting fechavencp
setting emisiontip CAE
setting fechaservh
setting reproceso
setting fechaservd
Traceback (most recent call last):
File "c:\pyafipws-master\rece1.py", line 642, in
}, open(salida,"w"))
File "c:\pyafipws-master\rece1.py", line 268, in escribir_factura
guardar_dbf(formatos, agrega, conf_dbf)
File "c:\pyafipws-master\utils.py", line 724, in guardar_dbf
reg.write_record(**r)
File "c:\pyafipws-master\dbf\tables.py", line 393, in write_record
yo.gather_fields(kwargs)
File "c:\pyafipws-master\dbf\tables.py", line 331, in gather_fields
raise FieldMissing(key)
dbf.exceptions.FieldMissing: 'tiporeg: no such field in table'

@catrielr
Copy link
Author

C:\pyafipws-master>python rece1.py rece.ini /dbf /prueba
Excepcion: encabeza.dbf not in read/write mode, unable to append records
Traceback (most recent call last):
File "rece1.py", line 642, in
}, open(salida,"w"))
File "rece1.py", line 268, in escribir_factura
guardar_dbf(formatos, agrega, conf_dbf)
File "C:\pyafipws-master\utils.py", line 716, in guardar_dbf
registro = tabla.append(r)
File "c:\Python27\lib\site-packages\dbf\ver_2.py", line 5132, in append
raise DbfError('%s not in read/write mode, unable to append records' % meta.filename)
dbf.ver_2.DbfError: encabeza.dbf not in read/write mode, unable to append records

reingart pushed a commit to NicolasSandoval/pyafipws that referenced this issue Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant