the-library-code / dspace-rest-python

DSpace REST API Client Library
BSD 3-Clause "New" or "Revised" License
24 stars 19 forks source link

pysolr dependency missing from requirements.txt #7

Closed kshepherd closed 7 months ago

abubelinha commented 7 months ago

I was to open an issue but I guess this is the same:

  1. Installed with pip install dspace_rest_client
  2. Tried to run example.py with my login information using https://demo.dspace.org/server/api for DSPACE_API_ENDPOINT.
  3. Got this error:
Traceback (most recent call last):
  File "test_dspace.py", line 65, in <module>
    dspace_rest_python_example()
  File "test_dspace.py", line 32, in dspace_rest_python_example
    from dspace_rest_client.client import DSpaceClient
  File "C:\Python38\lib\site-packages\dspace_rest_client\client.py", line 24, in <module>
    import pysolr
ModuleNotFoundError: No module named 'pysolr'

I solved that by installing module first (pip install pysolr), but then I got the error in #10 So I wonder if the above url is correct as a DSPACE_API_ENDPOINT for testing

@abubelinha

kshepherd commented 7 months ago

Resolved at version 0.1.9 PyPI (https://pypi.org/project/dspace-rest-client/0.1.9/) Git tag here: https://github.com/the-library-code/dspace-rest-python/tree/dspace-rest-client-0.1.9