Coder Social home page Coder Social logo

Comments (11)

manolomartinez avatar manolomartinez commented on May 28, 2024

Hello, does this happen when you try to download any entry in any podcast, or just for one particular case? If the latter, could you please post the actual podcast and entry that is misbehaving?

Thanks,
Manolo

from greg.

TypeFaster2 avatar TypeFaster2 commented on May 28, 2024

Hi, The error happens with all podcasts, including the example PhilosophyBites.

I have a dev and prod machine. I upgraded Dev from Wheezy to Jessie, which also upgraded Python to Python 3.4.2. That seems to have fixed the problem.

I still have the issue on prod, hopefully I can upgrade that next week. If that fixes it I'll update and close this.

Cheers,
Mal

from greg.

Narrat avatar Narrat commented on May 28, 2024

You could try what happens if you remove the sep= from the function call (just "," remaining between ())
https://github.com/manolomartinez/greg/search?utf8=%E2%9C%93&q=.split%28sep
Those need to be adjusted

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Sorry, I see now that the error was about split() taking no keyword arguments. What was your python version, before the upgrade? I thought split() understood sep since 3.x, but I might be wrong about that, of course.

EDIT: You did say that your previous python was 3.2.3. Sorry again!

from greg.

Narrat avatar Narrat commented on May 28, 2024

Changed inbetween the 3.x line
3.2.x is using the old syntax

Edit: With 3.3.0 it changed

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Huh, thanks @Narrat. I should say as much in the README, then.

from greg.

Narrat avatar Narrat commented on May 28, 2024

Well, the call to split could also be changed. .split(",") is working, no need to explicit call on that (dunno if I missed sth)

from greg.

TypeFaster2 avatar TypeFaster2 commented on May 28, 2024

Hi, I tried changing

160 single_arg = single_arg.translate({32: None})  # eliminates spaces
161     for group in single_arg.split(sep=","):
162         if not("-" in group):
163             list_of_feeds.append(group)
164         else:
165             extremes = group.split(sep="-")

to

    single_arg = single_arg.translate({32: None})  # eliminates spaces
    for group in single_arg.split(","):
        if not("-" in group):
            list_of_feeds.append(group)
        else:
            extremes = group.split("-")

Then I ran "greg check -f PhilosophyBites", which returned a list of episodes, as expected.
But I got the error:

greg $ greg download 1
... something went wrong.Are you sure your last greg check went well?

I tried changing every instance of split(sep="x") to split("x") with the same result.

Cheers.

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

I will look into it, but if it's still a 3.2 / 3.4 thing, and there are many changes to be made, I think it'll be most sensible to be forthcoming about the python versions that greg will work with.

from greg.

TypeFaster2 avatar TypeFaster2 commented on May 28, 2024

Thanks Manolo,
I upgraded my prod machine to Jessie and Python 3.4.2 which has fixed this for me. So I'm going to close this issue.

Greg is doing exactly what I wanted it to do, so thanks for putting it together. And thanks to for the active support.

Cheers.

Mal.

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Thank you for the kind words, Mal. You have a cool blog, btw :)

from greg.

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.