Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 05 22:55
    TomeCirun synchronize #6560
  • Dec 04 09:34
    gg2 commented #6574
  • Dec 04 09:27
    gg2 commented #6574
  • Dec 04 07:57
    gg2 opened #6574
  • Dec 03 16:08
    pdelboca synchronize #6507
  • Dec 03 15:43
    pdelboca opened #6573
  • Dec 03 15:26
    kumaranil02 commented #192
  • Dec 03 15:20
    pdelboca synchronize #6507
  • Dec 03 15:17
    pdelboca synchronize #6507
  • Dec 03 14:50
    TomeCirun synchronize #6560
  • Dec 03 14:46
    TomeCirun commented #6560
  • Dec 03 14:34
    TomeCirun synchronize #6560
  • Dec 03 14:32
    TomeCirun synchronize #6560
  • Dec 03 14:23
    wardi closed #192
  • Dec 03 14:23
    wardi commented #192
  • Dec 03 13:50
    pdelboca synchronize #6507
  • Dec 03 13:16

    amercader on dev-v2.9

    Fix standards (compare)

  • Dec 03 11:53

    amercader on dev-v2.9

    Replace f-string (compare)

  • Dec 03 11:46
    amercader unlabeled #6554
  • Dec 03 11:46
    amercader unlabeled #6532
Gauravp-NEC
@Gauravp-NEC
Hi, How to Add a view to the resource ?
Krishna Reddy Malem
@krishna.malem:matrix.org
[m]
Hi, How can we access the data of dataset after adding it.
cole-fields
@cole-fields
Hi there, I've upgraded CKAN on my dev machine from 2.7.4 to 2.9. One of the problems I've encountered is to do with popover buttons. I have two - one that renders some additional information about the dataset (similar to the guide here: https://docs.ckan.org/en/latest/theming/javascript.html) and one that renders an open layers map with the convex hull of the spatial resources. I've tested, and a popover will work if it's not rendering an html snippet (i.e., where the content of the popover is defined right in the js file and not using an html snippet). However, when I try to use the html snippet, the popover won't show. I've modified bits of the extension to use assets rather than fanstatic, but wondering if I am missing something.
SAM
@dave0529
Hello, I was looking for extenstion for dataset relationship.
i found ckanext-lire, but the extension's version is too old and it occurred python version errors. So could you recommend for the extensions for dataset relations?
kangmoesss
@kangmoesss
I have a spatial dataset that comes from csw harvesting. How to make spatial data schema readable by ckanext-scheming?
File "/usr/local/lib/python3.8/dist-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.8/dist-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/dist-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.8/dist-packages/ckanext/scheming/templates/scheming/display_snippets/link.html", line 1, in <module>
    {{ h.link_to(data[field.field_name], data[field.field_name], rel=field.display_property, target='_blank') }}
  File "/srv/app/src/ckan/ckan/lib/helpers.py", line 906, in link_to
    return literal(dom_tags.a(label, **attrs))
  File "/usr/local/lib/python3.8/dist-packages/dominate/tags.py", line 63, in __init__
    super(html_tag, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/dominate/dom_tag.py", line 100, in __init__
    self.add(*args)
  File "/usr/local/lib/python3.8/dist-packages/dominate/dom_tag.py", line 211, in add
    raise ValueError('%r not a tag or string.' % obj)
ValueError: None not a tag or string.
J. Joaquín Escobar G.
@quinoescobar

Can someone help me telling me why and how xloader extension behaves if is executed by and API call?

With the last tag release CKAN try to do something but start a loop that ends in error and not getting the xloader job to start.

With manual load of files it works but API update/patch of a resource do not.

1 reply
Ian Ward
@wardi
code-review-limits.png
1 reply
I just enabled a setting on github ckan/ckan to try to limit approval spam on the repo
not sure based on the description if it will have any effect for a public repo though
Adrià Mercader
@amercader
Muhammad Akbar Fauzi
@m-akbarfauzi
image.png
1 reply
ajddba
@ajddba
i have a question ... the process for upgrading python on an existing install ... ive tried following the instructions but not working. should i just start from scratch?
csharparun
@csharparun
HiTeam, We are using datapusher.
It is working as expected for csv but it is failing for json. we added json to
ckan.datapusher.formats
Could you suggest how this can be fixed? any custom logic is to be added?
2 replies
rvizcarra-eclipse
@rvizcarra-eclipse
Hello there, just a theming question... do you have any suggestions on how I can hide the header.html from 1 page? Thank you.
SAM
@dave0529
Hello, How can i upload csv files using resource_create api on javascript code?
csharparun
@csharparun

Please suggest the path where the ckan data pusher logs are stored?
We wanted to add custom logic to convert JSON files to CSV so that the datapusher would work for JSON file format.

If anyone has any working solution, Kindly suggest. Highly appreciated your help.

Francesco Frassinelli
@frafra_gitlab
tag_string_autocomplete preset in ckanext-scheming does not seem to support choices_helper; how to make it work?
Adrià Mercader
@amercader
ajddba
@ajddba
just a quick Q if anyone has a fast answer. .
upgraded python to v3 do i need to install httpd again for python 3?
4 replies
jitendra kumar
@jktittalom_twitter
image.png
2 replies
Hi there, I am trying to install CKAN 2.9 in Mac OS, While install (pip3 install -e 'git+https://github.com/ckan/ckan.git@ckan-2.9.4#egg=ckan[requirements]') I am getting error for "Running setup.py install for psycopg2 ... error"
4 replies
jitendra kumar
@jktittalom_twitter
Its seems, installation for "/opt/homebrew/opt/openss/" which is M1 processor as per Homebrew
image.png
jitendra kumar
@jktittalom_twitter
Hi, Anyone have tried install ckan 2.9 in Mac Intel?
Laurence Watson
@Rabscuttler
Is there a way to do live reload / hot reload when developing a theme? Restarting the uwsgi service every time isn't a fantastic experience.
3 replies
Krishnareddy Malem
@krishnareddy567
  • Where can we see the definition resource_create(), package_create() methods in docker-compose ckan setup code?
Guilherme M. Iablonovski
@guilhermeiablo
This message was deleted
1 reply
Diogo Moreira
@dmoreira97DLTT
Hello. I'm using Ckan with ckanext-auth for SSO. How can I configure the permissions of each user? How can I login as admin if the login page redirects to my external authentication service?
Abdou Khalil
@khalil1:matrix.org
[m]
Hi, I still have an issue with fluent extension, once I add "fluent" in ckan.plugins in ckan.ini, I get "Internal Server Error". I think it's not compatible with the last CKAN verison 2.9.3 nor python 3.
I'm also trying https://github.com/Engerrs/ckanext-fluent/tree/py3 wish seems that supports python but the issue is still not fixed. Any idea for installing/configuring fluent with the last CKAN version ?
Ralph
@roc
@wardi ckan/ckanext-scheming#311 opened a pretty naive issue on ckan-scheming, hope it makes some sense. I'm sure this has probably been looked at before, but I couldn't find anything
10 replies
Francesco Frassinelli
@frafra_gitlab
facet for a multi valued field show a python list as single item, instead of unpacking the values; how can I fix that? I am using ckanext-scheming
4 replies
Abed khooli
@abedkhooli
How to change the API key used by Datapusher? We made an image of an existing CKAN 2.9.x and gave it a new domain name (made edits to the ini as well). Everything works except datapusher and I fear this is related to the API Key (the /var/lib/ckan/jobstore.job_store.db file has the datapusher jobs and is a copy of the original). What is the easiest way to fix this? The error I get in the UI is not very helpful Max retries exceeded with url: /api/3/action/resource_show (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f783b245520>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))"))
1 reply
J. Joaquín Escobar G.
@quinoescobar
anyone can tellme why the resources have original_url and url? why and whats the difference?
6 replies
dportoles
@dportoles
Hi! Tables tracking_raw & tracking_summary are huge. Has anybody deleted old content? Is it safe? I think it's safe, maintaining recent values in tracking_summary, but I prefer a second-opinion :)
Obviously historical data and stats won't be available, of course!
Ralph
@roc

Does anyone here speak fluent SOLR? Trying to query by a field which includes a list of values...

?fq=care_setting:(*) works
?fq=care_setting:(Dentistry) does not

21 replies
Screenshot 2021-12-02 at 12.50.32.png
Adrià Mercader
@amercader
Apologies if your PRs based of masterare failing with ckan.lib.search.common.SearchError: SOLR schema version not supported: 1.6. Supported versions are [2.8, 2.9], that was me updating the ckan/ckan-solr-dev:master image. I've reverted so you should be able to restart your builds. More info here: https://github.com/ckan/ckan/pull/6530#issuecomment-984581052
4estone
@4estone
After migrating from 2.8 to 2.9 I got a conflict between our theme icons for ressources type (WMS, WFS, …) and geoview extension icons
You can have a look at our test platform here
There is no problem with that on our prod platform -still 2.8-
May-be it comes from when migratin our theme to 2.9 (assets), any hints?
So the question is : how to overwrite geoview resources styles with owr theme extension resources styles?
4 replies
jitendra kumar
@jktittalom_twitter

Hi there, I am getting this error :
Usage: ckan [OPTIONS] COMMAND [ARGS]...
Error: No such command 'paster'.
After this command:
CKAN_INI=/etc/ckan/default/ckan.ini ckan paster db init

in Mac OS(Intel), using source 2.9 CKAN

2 replies
Guilherme M. Iablonovski
@guilhermeiablo
I'm trying to develop a custom helper that uses sqalchemy to count the distinct entries for extra fields, so I can have the count of how many municipalities are covered by the data portal on the front page. My code implements the sql script using a Controller that is then mapped from my plugin.py (so, not really using it as a helper with the h. format). But whenever I call that newly created page, my index crashes. Anyone has any experience using map_before functions in CKAN 2.9.4?
Patricio Del Boca
@pdelboca

Hi there! I'm trying to debug and understand the code behind ResourceProxy extension. Documentation says:

As resource views are rendered on the browser, if the file they are accessing is located in a different domain than the one CKAN is hosted, the browser will block access to it because of the same-origin policy. For instance, files hosted on www.example.com won’t be able to be accessed from the browser if CKAN is hosted on data.catalog.com.

However that doesn't seem to be the case. If I create a resource and add a file hosted in another server (for example a raw txt file hosted in github). The Text view will render it anyways regardless having the plugin enabled or not. (Same happens with Image views).

1 reply
ryangermann-gov-on-ca
@ryangermann-gov-on-ca
I'm having a strange problem right now: I'm testing and the "Delete" button on Datasets and Organization fails to show a popup confirmation: when I access the HREF behind the Delete button in a new tab, I see the prompt in the new Tab, I click "Confirm" and the data is properly deleted... so just the popup is not working. Has anyone experienced this? Could it be a problem with the jquery version installed or something? Could it be related to a misconfiguration of the "scheming" configuration? I can create new data without issue, it's just the deleting that's a problem.
Carlo Cancellieri
@ccancellieri
Hi, for those who are interested in the ckan geospatial related discussions, I've just updated few of them with some new work ongoing, I'll be happy to see your thoughts.
ryangermann-gov-on-ca
@ryangermann-gov-on-ca
I'm using the "requests" module in a script to create my datasets and upload the associated files... the files I have were extracted from a database (VERY slow process, gigabytes of data) and... in short... I need to upload the files to have a different file name (from the source database) than the physical files have. Does the CKAN "resource_patch" or "resource_update" apis allow for the file name to be specified as different than the file name of the file "open"ed for upload? It is not obvious to me, and I'm not sure if it's even possible. I just want to avoid having to work out a file renaming process every time we do a new production data extract prior to formal production release.
Guilherme M. Iablonovski
@guilhermeiablo

Hi people, I'm running CKAN 2.9.4 with a handful of extensions. Lately I've been getting a sqlalchemy error whenever I try to make edits to anything related to Groups:

sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back
[SQL: SELECT system_info.id AS system_info_id, system_info.key AS system_info_key, system_info.value AS system_info_value, system_info.state AS system_info_state
FROM system_info
WHERE system_info.key = %(key_1)s
LIMIT %(param_1)s]
[parameters: [{}]]

Any hints?

When I reload supervisorctl, it works fine again