Comments (12)
@wikier Hopefully you can do a patch release fast so others aren't bitten by this. :)
from sparqlwrapper.
@alf why __init__.py
is required to be ascii?
from sparqlwrapper.
__init__.py
is not required to be ascii, but in line 38 of your setup.py you do for line in open('SPARQLWrapper/__init__.py'):
. You need to specify the encoding for that to work.
See https://docs.python.org/3/howto/unicode.html#reading-and-writing-unicode-data
from sparqlwrapper.
@alf I think I have fixed the release. Can you please check it?
from sparqlwrapper.
No, still not fixed. The module docstring contains the name Sergio Fernández but is not defined as a unicode string.
from sparqlwrapper.
@wikier could you maybe make this 1.6.4 instead of moving the tag? (cause different same version releases get us into hell)
from sparqlwrapper.
@joernhees is right, we keep 1.6.3 as it was, and we try to quickly address this issue for 1.6.4.
from sparqlwrapper.
@alf can you please check if the current HEAD of master would satisfy such environment requirement? It never failed to me.
from sparqlwrapper.
No, you haven't fixed the issue. How about going with my initial suggestion? Changing the names of contributors so they don't fall outside of the ascii range is not a good way to solve this.
The problem isn't in SPARQLWrapper/__init__.py
, it's in setup.py
. The following should fix it.
diff --git a/setup.py b/setup.py
index 3026b67..0d5f9ac 100755
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ if py3:
_version_re = re.compile(r'__version__\s*=\s*"(.*)"')
_authors_re = re.compile(r'__authors__\s*=\s*"(.*)"')
_url_re = re.compile(r'__url__\s*=\s*"(.*)"')
- for line in open('SPARQLWrapper/__init__.py'):
+ for line in open('SPARQLWrapper/__init__.py', encoding='utf-8'):
version_match = _version_re.match(line)
if version_match:
version = version_match.group(1)
from sparqlwrapper.
Oh sorry, I got it wrong. I did not remember the workaround we have for avoiding metadata duplication.
I've applied your patch. So, if that looks fine, we can quickly publish a 1.6.4 patch release.
from sparqlwrapper.
Voila, works like a charm. Thanks for working with me on this :)
alf@core-01:~/$ pip3 -q install "https://github.com/RDFLib/sparqlwrapper/tarball/master#egg=SPARQLWrapper-1.6.4-pre"
alf@core-01:~/$ echo $?
0
from sparqlwrapper.
Thanks for the quick notice ;-)
from sparqlwrapper.
Related Issues (20)
- Next Release? HOT 20
- Introduce Lint tools
- Convert SPARQLWrapper.SmartWrapper to pandas dataframe HOT 6
- Removing https://rdflib.github.io/sparqlwrapper HOT 4
- Documentation format HOT 4
- using "describe" in a comment leads to error HOT 12
- Organize old PRs/Issues
- Make tests faster and more reliable.
- TLS changes in Python 3.10, insecure endpoint
- Allow earlier versions of rdflib HOT 2
- Test failures probably due to remote service issues
- Cannot install with conda for Python >=3.10 HOT 2
- QueryBadFormed: A bad request has been sent to the endpoint
- WikiData Not Returning CSV HOT 1
- Can't use SPARQLWrapper in nix-shell (somewhat OT)
- AWS Signature Version 4 Authentication Support HOT 2
- Align query result types with rdflib
- Unable to query the rdf:type HOT 3
- 405 (Method not allowed) for SELECT QUERY with # street address in comment HOT 2
- GraphDB 10.2.2: b'Missing parameter: query' on INSERT HOT 1
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 sparqlwrapper.