Git Product home page Git Product logo

Comments (5)

weijiang1994 avatar weijiang1994 commented on July 17, 2024

You need create a log file named blogin.log on the /Users/liam/Desktop/Git/Blogin/logs/ directory.

from blogin.

SuperTyrael avatar SuperTyrael commented on July 17, 2024

Hi, after I added that file, another error occured:

  File "/Users/liam/Desktop/Git/Blogin/blogin/__init__.py", line 212, in admin
    avatar='/static/img/admin/admin.jpg')
  File "<string>", line 4, in __init__
  File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 433, in _initialize_instance
    manager.dispatch.init_failure(self, args, kwargs)
  File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
    exc_value, with_traceback=exc_tb,
  File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/sqlalchemy/orm/state.py", line 430, in _initialize_instance
    return manager.original_init(*mixed[1:], **kwargs)
  File "/Users/liam/Desktop/Git/Blogin/blogin/models.py", line 61, in __init__
    self.generate_avatar()
  File "/Users/liam/Desktop/Git/Blogin/blogin/models.py", line 75, in generate_avatar
    files = icon.generate(self.username)
  File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/flask_avatars/identicon.py", line 220, in generate
    self.save(image_byte_array, save_location=os.path.join(path, '%s_%s.png' % (text, suffix[size])))
  File "/Users/liam/Desktop/Git/Blogin/env/lib/python3.7/site-packages/flask_avatars/identicon.py", line 82, in save
    with open(save_location, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/liam/Desktop/Git/Blogin/uploads/avatars/liam123456_s.png'
操作出现异常,退出...

from blogin.

SuperTyrael avatar SuperTyrael commented on July 17, 2024

@weijiang1994

from blogin.

weijiang1994 avatar weijiang1994 commented on July 17, 2024

I forgot to upload some necessary directories, please wait a moment and then you can manually create the directory by yourself, or re-clone the code of my repo。

from blogin.

SuperTyrael avatar SuperTyrael commented on July 17, 2024

OK, it runs well after I created that file.
Thank you SO MUCH for sharing this project with us, that's really helpful for fresh like me.

from blogin.

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.