$ python rece1.py /json
para soporte de DBF debe instalar dbf 0.88.019 o superior
/XXX/wsaa.py:34: UserWarning: No es posible importar M2Crypto (OpenSSL)
warnings.warn("No es posible importar M2Crypto (OpenSSL)")
/XXX/wsaa.py:35: UserWarning: ImportError: No module named M2Crypto
warnings.warn(ex['msg']) # revisar instalaci?n y DLLs de OpenSSL
Imposible autenticar con WSAA: ns1:cms.bad: El CMS no es valido
--
Proyecto PyAfipWs Factura Electrónica Libre y temas relacionados AFIP ARBA ANMAT:
http://www.pyafipws.com.ar/ - http://www.github.com/reingart/pyafipws - http://www.sistemasagiles.com.ar/
---
Has recibido este mensaje porque estás suscrito al grupo "PyAfipWs Factura Electrónica Libre y temas relacionados AFIP ARBA ANMAT" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a pyafipws+u...@googlegroups.com.
Para publicar en este grupo, envía un correo electrónico a pyaf...@googlegroups.com.
Visita este grupo en http://groups.google.com/group/pyafipws.
Para acceder a más opciones, visita https://groups.google.com/d/optout.
$ sudo pip install requirements.txt
The directory '/xxx/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/xxx/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting requirements.txt
Could not find a version that satisfies the requirement requirements.txt (from versions: )
No matching distribution found for requirements.txt
En lo que corresponde a los certificados, ingrese al WSASS y cree un nuevo certificado y una autorización de servicio.
Desde muchas gracias por toda la ayuda que puedas brindar.
Saludos
Braian Mellor
$ sudo pip install -r requirements.txt
The directory '/XXX/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/XXX/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): httplib2>=0.7 in /Library/Python/2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): pysimplesoap==1.08.8 in /Library/Python/2.7/site-packages (from -r requirements.txt (line 2))
Collecting m2crypto>=0.18 (from -r requirements.txt (line 3))
Downloading M2Crypto-0.22.5.tar.gz (80kB)
100% |████████████████████████████████| 81kB 406kB/s
Collecting fpdf>=1.7.2 (from -r requirements.txt (line 4))
Downloading fpdf-1.7.2.tar.gz
Collecting dbf>=0.88.019 (from -r requirements.txt (line 5))
Downloading dbf-0.96.005.tar.gz (183kB)
100% |████████████████████████████████| 184kB 246kB/s
Collecting Pillow>=2.0.0 (from -r requirements.txt (line 6))
Downloading Pillow-3.0.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9MB)
100% |████████████████████████████████| 2.9MB 147kB/s
Collecting enum34 (from dbf>=0.88.019->-r requirements.txt (line 5))
Downloading enum34-1.0.4.tar.gz
Installing collected packages: m2crypto, fpdf, enum34, dbf, Pillow
Running setup.py install for m2crypto
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-7oiGEY/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Gsw7rt-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.11-intel-2.7
creating build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/__init__.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/BIO.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/BN.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/callback.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/DH.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/DSA.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/EC.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/Engine.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/Err.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/EVP.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/m2.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/Rand.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/RC4.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/RSA.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/threading.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/util.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
copying M2Crypto/X509.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto
creating build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/SSL
creating build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
copying M2Crypto/PGP/__init__.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.macosx-10.11-intel-2.7/M2Crypto/PGP
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -includeall -modern -builtin -outdir build/lib.macosx-10.11-intel-2.7/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-7oiGEY/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Gsw7rt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-7oiGEY/m2crypto
Brai:n braianmellor$ python rece1.py /json
para soporte de DBF debe instalar dbf 0.88.019 o superior
/Volumes/Macintosh HD/Documentos/Trabajo/Freelance/Oxisur/test/n/wsaa.py:34: UserWarning: No es posible importar M2Crypto (OpenSSL)
warnings.warn("No es posible importar M2Crypto (OpenSSL)")
/Volumes/Macintosh HD/Documentos/Trabajo/Freelance/Oxisur/test/n/wsaa.py:35: UserWarning: ImportError: No module named M2Crypto
warnings.warn(ex['msg']) # revisar instalaci?n y DLLs de OpenSSL
Imposible autenticar con WSAA: ns1:cms.bad: El CMS no es valido
$ brew install swig
vuelvo a realizar $ sudo pip install -r requirements.txt me devuelve la misma información pero ahora con un error distinto.
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -includeall -modern -builtin -outdir build/lib.macosx-10.11-intel-2.7/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-eGok2v/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-C05PL4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-eGok2v/m2crypto
Hola Mariano, nuevamente gracias por tu respuesta.Con el -r corrio algo pero tiró error: unable to execute 'swig': No such file or directory
Luego volvi a correr python rece1.py /json pero sigo con la misma respuesta.
$ sudo pip install -r requirements.txt
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -includeall -modern -builtin -outdir build/lib.macosx-10.11-intel-2.7/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
Brai:n braianmellor$ python rece1.py /json
para soporte de DBF debe instalar dbf 0.88.019 o superior
/Volumes/Macintosh HD/Documentos/Trabajo/Freelance/Oxisur/test/n/wsaa.py:34: UserWarning: No es posible importar M2Crypto (OpenSSL)
warnings.warn("No es posible importar M2Crypto (OpenSSL)")
/Volumes/Macintosh HD/Documentos/Trabajo/Freelance/Oxisur/test/n/wsaa.py:35: UserWarning: ImportError: No module named M2Crypto
warnings.warn(ex['msg']) # revisar instalaci?n y DLLs de OpenSSL
Imposible autenticar con WSAA: ns1:cms.bad: El CMS no es valido
Luego instale swig con homebrew$ brew install swig
vuelvo a realizar $ sudo pip install -r requirements.txt me devuelve la misma información pero ahora con un error distinto.
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -includeall -modern -builtin -outdir build/lib.macosx-10.11-intel-2.7/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-eGok2v/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-C05PL4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-eGok2v/m2crypto
Hasta ahi llegue, openssl funciona correctamente, espero puedan ayudarme.
Si interpreto correctamente lo que envió Braian, el problema se presenta en Mac, un Osx, no un RedHat.
Si vas a probar en tu máquina, podría ser más limpio y sencillo utilizar virtualenv.
Saludos.
Eduardo.
--
Proyecto PyAfipWs Factura Electrónica Libre y temas relacionados AFIP ARBA ANMAT:
http://www.pyafipws.com.ar/ - http://www.github.com/reingart/pyafipws - http://www.sistemasagiles.com.ar/
---
Has recibido este mensaje porque estás suscrito al grupo "PyAfipWs Factura Electrónica Libre y temas relacionados AFIP ARBA ANMAT" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a pyafipws+u...@googlegroups.com.
Para publicar en este grupo, envía un correo electrónico a pyaf...@googlegroups.com.
Visita este grupo en https://groups.google.com/group/pyafipws.
Visita este grupo en https://groups.google.com/group/pyafipws.
Para acceder a más opciones, visita https://groups.google.com/d/optout.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a pyafipws+u...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/pyafipws/17d31e3e-4c28-4ff1-a937-47cd7d124d5cn%40googlegroups.com.