weso / wikibase-sync

Python library to synchronise data between RDF files and Wikibase instances.
MIT License
8 stars 3 forks source link

Setup script exited with error in keepalive setup command: use_2to3 is invalid #11

Closed Superraptor closed 2 months ago

Superraptor commented 3 months ago

Attempting to install per instructions in README; specifically running python setup.py install in wikibase-sync after cloning; using Python 3.10 specifcally.

Output where error occurs is as follows:

Installed c:\users\[USERNAME]\anaconda3\envs\wbsync\lib\site-packages\deprecated-1.2.14-py3.10.egg
Searching for keepalive
Reading https://pypi.org/simple/keepalive/
Downloading https://files.pythonhosted.org/packages/6a/11/8eaf21d74b06cfabd42ca9d2b7b216e071faa416753faeb3322f1863f585/keepalive-0.5.tar.gz#sha256=3c6b96f9062a5a76022f0c9d41e9ef5552d80b1cadd4fccc1bf8f183ba1d1ec1
Best match: keepalive 0.5
Processing keepalive-0.5.tar.gz
Writing C:\Users\[USERNAME]\AppData\Local\Temp\easy_install-xm5ol305\keepalive-0.5\setup.cfg
Running keepalive-0.5\setup.py -q bdist_egg --dist-dir C:\Users\[USERNAME]\AppData\Local\Temp\easy_install-xm5ol305\keepalive-0.5\egg-dist-tmp-3c9aw2ii
error: Setup script exited with error in keepalive setup command: use_2to3 is invalid.

Found a similar StackOverflow ticket (https://stackoverflow.com/questions/72414481/error-in-anyjson-setup-command-use-2to3-is-invalid), but curious if there is any specific advice before I go down a rabbithole. Thanks so much!

Superraptor commented 3 months ago

(Confirmed that this is not a Windows issue; ran into the same issue when attempting on a Debian machine)

Superraptor commented 3 months ago

So far have been able to at least do imports with the following requirements.txt (haven't run much yet so may run into other problems with this):

antlr4-python3-runtime==4.9.3
atomicwrites==1.4.1
attrs==24.2.0
backoff==2.2.1
blinker==1.8.2
boto3==1.34.158
botocore==1.34.158
certifi==2024.7.4
CFGraph==0.2.1
chardet==3.0.4
click==8.1.7
colorama==0.4.6
Deprecated==1.2.14
Flask==3.0.3
Flask-Cors==4.0.1
html5lib==1.1
httplib2==0.22.0
idna==2.10
iniconfig==2.0.0
isodate==0.6.1
itsdangerous==2.2.0
Jinja2==3.1.4
jmespath==1.0.1
jsonasobj==1.3.1
keepalive==0.5
MarkupSafe==2.1.5
mwoauth==0.4.0
numpy==2.0.1
oauthlib==3.2.2
ontospy==1.9.8.3
packaging==24.1
pandas==2.2.2
plantuml==0.3.0
pluggy==0.13.1
py==1.11.0
pycryptodome==3.20.0
pyfiglet==1.0.2
PyGithub==1.53
PyJSG==0.11.10
PyJWT==2.9.0
pyparsing==3.1.2
PyShEx==0.8.1
PyShExC==0.9.1
pytest==6.1.2
python-dateutil==2.8.2
python-xz==0.5.0
pytz==2024.1
rdflib==7.0.0
rdflib-jsonld==0.6.1
rdflib-shim==1.0.3
requests==2.23.0
requests-oauthlib==2.0.0
s3transfer==0.10.2
secret==0.8
shexer==2.5.3
ShExJSG==0.8.2
simplejson==3.19.2
six==1.16.0
sparqlslurper==0.5.1
SPARQLWrapper==2.0.0
tabulate==0.9.0
toml==0.10.2
tqdm==4.66.5
tzdata==2024.1
urllib3==1.25.11
wbsync==0.1.3
webencodings==0.5.1
Werkzeug==3.0.3
wikidataintegrator==0.9.30
wlighter==1.0.1
wrapt==1.16.0
Superraptor commented 3 months ago

While the setup script doesn't work, I'm able to run some of the base operations with:

antlr4-python3-runtime==4.9.3
atomicwrites==1.4.1
attrs==24.2.0
backoff==2.2.1
blinker==1.8.2
certifi==2024.7.4
CFGraph==0.2.1
chardet==3.0.4
click==8.1.7
colorama==0.4.6
Deprecated==1.2.14
Flask==3.0.3
Flask-Cors==4.0.1
httplib2==0.22.0
idna==2.10
iniconfig==2.0.0
isodate==0.6.1
itsdangerous==2.2.0
Jinja2==3.1.4
jsonasobj==1.3.1
MarkupSafe==2.1.5
mkl-fft @ file:///C:/b/abs_19i1y8ykas/croot/mkl_fft_1695058226480/work
mkl-random @ file:///C:/b/abs_edwkj1_o69/croot/mkl_random_1695059866750/work
mkl-service==2.4.0
mwoauth==0.4.0
numpy @ file:///C:/b/abs_c1ywpu18ar/croot/numpy_and_numpy_base_1708638681471/work/dist/numpy-1.26.4-cp311-cp311-win_amd64.whl#sha256=5dfd3e04dc1c2826d3f404fdc7f93c097901f5da9b91f4f394f79d4e038ed81d
oauthlib==3.2.2
ontospy==1.9.8.3
pandas==2.2.2
plantuml==0.3.0
pluggy==0.13.1
py==1.11.0
PyGithub==1.53
PyJSG==0.11.10
PyJWT==2.9.0
pyparsing==3.1.2
PyShEx==0.8.1
PyShExC==0.9.1
pytest==6.1.2
python-dateutil==2.8.2
python-xz==0.5.0
pytz==2024.1
PyYAML==6.0.2
rdflib==7.0.0
rdflib-jsonld==0.6.1
rdflib-shim==1.0.3
requests==2.23.0
requests-oauthlib==2.0.0
shexer==2.5.3
ShExJSG==0.8.2
simplejson==3.19.2
six==1.16.0
sparqlslurper==0.5.1
SPARQLWrapper==2.0.0
toml==0.10.2
tqdm==4.66.5
tzdata==2024.1
urllib3==1.25.11
wbsync==0.1.3
Werkzeug==3.0.3
wikidataintegrator==0.9.30
wlighter==1.0.1
Superraptor commented 2 months ago

Figured it out! Apologies!