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

Blueprints error #46

Open
priest110 opened this issue Apr 26, 2022 · 3 comments
Open

Blueprints error #46

priest110 opened this issue Apr 26, 2022 · 3 comments

Comments

@priest110
Copy link

Hi! I think the new release has a bug in blueprints.py:

url=f"{solr.url}/query" shouldn't be url="{solr.url}/query"? With the first my system doesn't work, but without the "f" no problem

@Lenzma
Copy link
Contributor

Lenzma commented Apr 28, 2022

Hi Rui,
we were happily surprised to see you using our B2FIND extension :). We are currently in the process of refactoring this code for CKAN 2.9 (Python 3 compliant). The error you got is due to using Python 2 which does not support the f string notation (see https://realpython.com/python-f-strings/ ).
The current master is a development version, please use tag 2.5.1. (https://github.com/EUDAT-B2FIND/ckanext-b2find/tree/v2.5.1 ). That is CKAN 2.8 with Python 2 and should work fine.

@priest110
Copy link
Author

Ok, thank you! I will then change the version

@priest110
Copy link
Author

priest110 commented May 21, 2022

It still doesn't work with that suggestion. I am using ckan 2.9 (installed with docker) with python 2.7, how can I use this extension? I'm trying to use the 2.5.1 tag but I'm getting an internal 500 error, like this on the home page:

  • CkanUrlException: A broken url is being created {'action': 'search', 'controller': 'package'}

Is there an example of a demo with this extension working? To understand how it is supposed to look.

@priest110 priest110 reopened this May 21, 2022
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