Giter VIP home page Giter VIP logo

Comments (11)

pystardust avatar pystardust commented on August 20, 2024

is this the latest version? I had fixed this yesterday.

from ytfzf.

pystardust avatar pystardust commented on August 20, 2024

@evb-gh please update and let me know if the error persists.
This was happening if the search results contained non english char/symbols.

from ytfzf.

evb-gh avatar evb-gh commented on August 20, 2024

Deleted and then recloned the repo. Got the same error. All dependencies are up to date.

from ytfzf.

pystardust avatar pystardust commented on August 20, 2024

I would need to look into the data you are curling. Could you reproduce the error using some search query which you are comfortable to share here. A search term that produces the error is enough form me to work with.

from ytfzf.

evb-gh avatar evb-gh commented on August 20, 2024

I am literally using test string as a search term and I get the same error using any other term.

from ytfzf.

evb-gh avatar evb-gh commented on August 20, 2024

My guess is that it has to do with the difference between gnu and macOS commands.

from ytfzf.

pystardust avatar pystardust commented on August 20, 2024

This search term is wroking for me.
The command you could be stubling on are

  • printf
  • sed

As these are the commands that appear before parsing into jq, which is causing this error.
Try changin up version of these if you can. I don't know much about the differences so I won't be able to comment.
OS: Linux 5.10.16-artix1-1

from ytfzf.

evb-gh avatar evb-gh commented on August 20, 2024

I went and installed gnu-sed then I replaced sed with gsed in your code and now everything works.
How would I preserve these changes on future repo update?

from ytfzf.

pystardust avatar pystardust commented on August 20, 2024

You may need to interfere with the code. (every update).
But dont worry its just one line.

alias sed='gsed'

Add this line in the start of the code near defaults. (below #!bin/sh)

from ytfzf.

pystardust avatar pystardust commented on August 20, 2024

I am closing this issue, do let me know if you have any more queries

from ytfzf.

evb-gh avatar evb-gh commented on August 20, 2024

Thats a much more interesting and simple solution than what I had in mind. Thanks!

from ytfzf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.