Coder Social home page Coder Social logo

nfog's People

Contributors

dependabot[bot] avatar rlaphoenix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nfog's Issues

AttributeError: 'NoneType' object has no attribute 'get'

Installed via pip, getting the following error:

> nfo -h
Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\Scripts\nfo.exe\__main__.py", line 4, in <module>
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\nfog.py", line 16, in <module>
    from nfog.artwork import Artwork
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\artwork\__init__.py", line 1, in <module>
    from nfog.artwork.Artwork import Artwork
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\artwork\Artwork.py", line 3, in <module>
    from nfog.templates import Template
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\templates\__init__.py", line 1, in <module>
    from nfog.templates.Group import TemplateGroup
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\templates\Group.py", line 5, in <module>
    from nfog.config import Directories
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\config.py", line 25, in <module>
    tmdbsimple.API_KEY = config.get("api-keys").get("tmdb")
AttributeError: 'NoneType' object has no attribute 'get'

> nfo generate
Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\Scripts\nfo.exe\__main__.py", line 4, in <module>
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\nfog.py", line 16, in <module>
    from nfog.artwork import Artwork
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\artwork\__init__.py", line 1, in <module>
    from nfog.artwork.Artwork import Artwork
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\artwork\Artwork.py", line 3, in <module>
    from nfog.templates import Template
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\templates\__init__.py", line 1, in <module>
    from nfog.templates.Group import TemplateGroup
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\templates\Group.py", line 5, in <module>
    from nfog.config import Directories
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\nfog\config.py", line 25, in <module>
    tmdbsimple.API_KEY = config.get("api-keys").get("tmdb")
AttributeError: 'NoneType' object has no attribute 'get'

ANSI Support

Right now the codebase more or less assumes the default OS encoding or UTF-8, which won't work for ANSI, which typically uses cp-437.

We likely won't even need to be ANSI code aware, but rather just support loading and saving files in encodings other than UTF-8, specifically cp-437.

A nice viewer that can be used to test the output is iNFekt.

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.