GithubHelp home page GithubHelp logo

Comments (8)

JimmXinu avatar JimmXinu commented on May 26, 2024 1

I will look into that, but I don't support FFF plugin on vendored versions of Calibre, only the official calibre releases.

from fanficfare.

natrys avatar natrys commented on May 26, 2024 1

@JimmXinu I am hitting this too. Installed in a fresh venv of 3.12, without calibre. The problem is probably not calibre, you are vendoring six.py here except it's an old version:

https://github.com/JimmXinu/FanFicFare/blob/main/fanficfare/six.py

I have replaced that file with newer version, and it seems to work now. But maybe you shouldn't vendor this?

from fanficfare.

JimmXinu avatar JimmXinu commented on May 26, 2024 1

@natrys 's comment did lead me to investigate further and they are right; there's a load issue and updating six does address it. Thanks for pointing that out.

(FFF includes six because older versions of Calibre include an even older version of six.)

I've uploaded test versions in the usual places.

from fanficfare.

gramer23 avatar gramer23 commented on May 26, 2024 1

It turns out that on Python 3.12, configparser's readfp() method was renamed to read_file(). If anyone else has the problem where every download fails because it can't find readfp, simply renaming every occurrence fixes every error. There are two calls in fff_util.py and two others in fanficfare/cli.py. (I'm talking about the paths inside the plugin's zip, since that's probably the easiest place to edit the files without repackaging.)

I guess this might be useful for even the official version when Calibre also moves on. Until then, this is a good workaround for those who can't or don't want to install a Python 3.11 interpreter just to download some stories.

from fanficfare.

JimmXinu avatar JimmXinu commented on May 26, 2024 1

There's also one in jobs.py.

This issue is only with Calibre and Python 3.12. Which is technically outside what I support. But it's a relatively easy fix. Test version up.

from fanficfare.

gramer23 avatar gramer23 commented on May 26, 2024 1

from fanficfare.

JimmXinu avatar JimmXinu commented on May 26, 2024 1

In jobs.py it's contingent on settings.

I'm going to close this, but you can reopen it if you find more 3.12 issues.

from fanficfare.

JimmXinu avatar JimmXinu commented on May 26, 2024

I'll look into the SyntaxWarning: invalid escape sequence '\.' warning, which I expect is not uncommon in FFF.

The actual error is ModuleNotFoundError: No module named 'fanficfare.six.moves' which is, as far as I can tell, caused by a broken vendored Calibre version.

from fanficfare.

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.