Closed kloczek closed 1 year ago
2148532243 is SCARD_F_COMM_ERROR
Please generate a pcscd log as described at https://pcsclite.apdu.fr/#support
So I'm guessing that as long as there is no physical card to test this unit may fail? Am I right? 🤔
No, you are wrong. Please generate and send me a pcscd log.
@kloczek I have no new since 6 days. I need the pcscd log to try to understand what is happening.
Sorry I was busy. Will try to provide details today evening or tomorrow.
[tkloczko@devel-g2v SPECS]$ sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
00000000 debuglog.c:299:DebugLogSetLevel() debug level=debug
00000030 debuglog.c:320:DebugLogSetCategory() Debug options: APDU
00000004 [140231278573696] pcscdaemon.c:353:main() Force colored logs
00000070 [140231278573696] pcscdaemon.c:482:main() file /run/pcscd/pcscd.comm already exists.
00000005 [140231278573696] pcscdaemon.c:484:main() Another pcscd (pid: 3916054) seems to be running.
Does it mean that pcscd needs to be started before start pytest?
Issu is that I'm running all my builds in LXC zones which have no access to many phisical subsystems.
"Another pcscd (pid: 3916054) seems to be running." so a pcscd process is already running (or is available) in your LXC.
You can also try to build and run the tests outside your LXC.
You do not need to install PySCard. Just run make
and make test
.
Have you tried what I suggested?
Any news? Have you found a solution?
No news since 4 months. Closing.
Just tested 1.0.4 and looks like it works now
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyscard-2.0.4-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyscard-2.0.4-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --import-mode=importlib
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pyscard-2.0.4
collected 34 items
test/test_ATR.py ........ [ 23%]
test/test_Exceptions.py ........ [ 47%]
test/test_PCSCExceptions.py ....... [ 67%]
test/test_SCardGetErrorMessage.py . [ 70%]
test/test_util.py .......... [100%]
============================================================================ 34 passed in 0.14s ============================================================================
Thank you 👍
Your system information
Please describe your issue in as much detail as possible:
I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
Here is pytest output: