Comments (9)
How did you install pyscard? from source code?
from pyscard.
Gah. I was building from source (rpmbuild), but some compiler flags in the build env were messing it up. Nevermind!
from pyscard.
I just bumped into this error on OSX 10.10 using pip install --user pyscard
.
This is related to swig/swig#250. In other words, different versions of Swig produce smartcard/scard/_scard.so
that need different versions of smartcard/scard/scard.py
that is not compatible among versions. Thus, smartcard/scard/scard.py
should be re-generated together with _scard.so
during installation, instead of being distributed as source file.
A quick comparison among the various smartcard/scard/scard.py
produced here, it looks to me as if the version distributed with pip does not match the definition in smartcard/scard/scard.i
anymore anyway.
from pyscard.
@cluck do you have a patch to propose? I am not a setuptools expert.
from pyscard.
The same behavior can be seen on Windows with Python 2.7.10. I tried to manually run latest swig and regenerate the files as suggested with no result.
from pyscard.
+1 for me
Working on OSX 10.10.5 and python 2.7.10
Doing pip install pyscard
will install 1.9.0 and can't run not even the examples with error AttributeError: 'module' object has no attribute 'SCARD_SCOPE_USER'
Installing using pip install <url to master.zip>
makes a different error saying scard module does not exist
Any help? Does python 3 fix this issue?
Any workarounds?
I couldn't understand what other user this as workaround with swig and such.
Anything I can help, let me know.
from pyscard.
I think the problem happens in the process of creating the source archives that are uploaded to sourceforce and pypi: they differ from the output of python setup.py sdist
on a clean checkout and in particular they contain the file smartcard/scard/scard.py
.
If this file wasn't present in the source, it would be created in the build_ext
step, in a format that is suitable to the generated wrapper.
from pyscard.
@cluck I think you are right.
Can someone propose a patch so that python setup.py sdist
does the correct thing?
from pyscard.
I think that starting with a clean checkout and running python setup.py sdist
as the sole command is the only option for now.
I suspect it to be a bug in the realm of Distutils/Setuptools that python setup.py sdist
picks up files excluded in in the MANIFEST.in
and not being idempotent before/after running python setup.py build
or other commands.
from pyscard.
Related Issues (20)
- Download artifacts for Windows HOT 2
- Windows EXE and MSI missing for Python 3.10 in collected artifacts HOT 3
- Wheels for macOS (all Python versions) HOT 11
- Consolidate GHA pipeline (cross-platform tests, PyPI releases) HOT 2
- Some missing steps in "Installing on windows from the binary distribution" HOT 4
- Failed to list readers: The Smart Card Resource Manager is not running HOT 7
- OS-dependent behaviour: HOT 4
- I can not read more than 8 cards, I think it is the cache memory of the library HOT 5
- Order of readers in list change arbitrarily HOT 15
- Typo in some method names in documentation HOT 1
- python3 -m pip install pyscard fails on MacOS HOT 2
- drop deprecated use of `imp` HOT 2
- pyscard seems to be not thread save HOT 2
- new release? HOT 1
- 2.0.8: compile time warnings HOT 3
- TypeError: CardRequestTimeoutException.__init__() got an unexpected keyword argument 'hresult' HOT 1
- Unexpected keyword argument 'hresult' for CardRequestTimeoutException HOT 2
- pyscard mutes/hides user created exceptions in `on_insert()` hook. HOT 5
- The Smart Card Resource Manager is not running. (0x8010001D) HOT 13
- Could not build wheels for pyscard HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscard.