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

prytteXMLserializer_3_2.py: inconsistent use of tabs and spaces #41

Open
Apteryks opened this issue May 3, 2022 · 4 comments
Open

prytteXMLserializer_3_2.py: inconsistent use of tabs and spaces #41

Apteryks opened this issue May 3, 2022 · 4 comments

Comments

@Apteryks
Copy link

Apteryks commented May 3, 2022

Hi,

While attempting to byte compile this package with compileall, it fails like:

RdfaExtras/serializers/XMLWriter.py'...
Compiling '/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/__init__.py'...
Compiling '/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/jsonserializer.py'...
Compiling '/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/prettyXMLserializer.py'...
Compiling '/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/prettyXMLserializer_3.py'...
Compiling '/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/prettyXMLserializer_3_2.py'...
*** Sorry: TabError: inconsistent use of tabs and spaces in indentation (prettyXMLserializer_3_2.py, line 219)
Compiling '/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/turtleserializer.py'...
error: in phase 'install': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `install' failed after 0.3 seconds
command "python" "-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/5p5wl4z8391ykvxf2v6nwnp81k25n58v-python-pyrdfa3-3.5.3" failed with status 1

This is with Python 3.9.9.

@iherman
Copy link
Contributor

iherman commented May 4, 2022

Should be o.k. now (see 6a17c3f).

Thanks

@iherman
Copy link
Contributor

iherman commented May 4, 2022

Can you close this issue if it is all right now? Thanks

@Apteryks
Copy link
Author

Hello, and sorry for the delay. I just tested the latest commit without my local changes, and I still got:

RdfaExtras/serializers/prettyXMLserializer_3.py'...
Compiling '/gnu/store/dkai06zawanq3qxv9v9911137f1fd3zz-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/prettyXMLserializer_3_2.py'...
*** Sorry: TabError: inconsistent use of tabs and spaces in indentation (prettyXMLserializer_3_2.py, line 219)
Compiling '/gnu/store/dkai06zawanq3qxv9v9911137f1fd3zz-python-pyrdfa3-3.5.3/lib/python3.9/site-packages/pyRdfaExtras/serializers/turtleserializer.py'...
error: in phase 'install': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/dkai06zawanq3qxv9v9911137f1fd3zz-python-pyrdfa3-3.5.3") exit-status: 1 term-signal: #f stop-signal: #f>

Is this pyRdfaExtras/serializers/prettyXMLserializer_3_2.py file even supposed to be installed? I'm on Python 3.9.9.

And to answer your 2nd question, I'm very sorry, but I do not know anyone. I was just passing by, needing this library packaged for GNU Guix as it appeared in the graph of something else. I wish you can find a new maintainer and enjoy a proper retirement :-).

@Apteryks
Copy link
Author

OK, investigating a bit, I found that my problem was that when checking against the git checkout, there was a build/lib "source" directory interfering with my build (and the fix). I'd suggest to deleting it from git. Other than that, it works fine, thank you!

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