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

Problem with instalation this library #12

Open
TomHyhlik opened this issue Dec 17, 2016 · 2 comments
Open

Problem with instalation this library #12

TomHyhlik opened this issue Dec 17, 2016 · 2 comments

Comments

@TomHyhlik
Copy link

Hi.
When I am trying to install it with a command: pip install pynfc
It reports:
TypeError: 'encoding' is an invalid keyword argument for this function

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pynfc
Storing debug log for failure in /root/.pip/pip.log

Please help. Thanks

@jtrip
Copy link

jtrip commented May 7, 2017

I have run into the same problem, and it seems weird. The traceback I see is pointing to this line:

with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst'), encoding='utf-8') as f:

The encoding parameter is in python3 but can be used in python2 in the io library (not the standard open() function) ... not sure if that file is including that. Looking at the source in github it appears that the setup.py file that pip is running is different than what I can see here. IDK

@jtrip
Copy link

jtrip commented May 7, 2017

@TomHyhlik as I mentioned I had the same problem when trying to install via PIP.

However I got it to install manually, hopefully it actually works too.

Just clone the repo, and in src/ run sudo python setup.py install and that should do it.

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

2 participants