Git Product home page Git Product logo

Comments (7)

kensanata avatar kensanata commented on August 12, 2024 2

Done!

from mastodon-archive.

kensanata avatar kensanata commented on August 12, 2024 1

from mastodon-archive.

sftblw avatar sftblw commented on August 12, 2024 1

via git clone ->

Microsoft Windows [Version 10.0.17763.437]
(c) 2018 Microsoft Corporation. All rights reserved.
(deleted lines)
L:\Documents\_codebase\GitHub>cd mastodon-backup
L:\Documents\_codebase\GitHub\mastodon-backup>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> with open("README.md", "r", encoding="utf-8") as fh:
...     long_description = fh.read()
...
>>> print(len(long_description))
25939
>>>

manually downloading from "files.pythonhosted.org" (where pip says) ->

(Using cached https://files.pythonhosted.org/packages/b9/ac/ac703bd0a8aac433c00fea2f3c360542b6cc897ad741cedf30df43d04b4c/mastodon_archive-1.1.0.tar.gz )

Active code page: 65001

E:\Desktop\mastodon_archive-1.1.0>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> with open("README.md", "r", encoding="utf-8") as fh:
...     long_description = fh.read()
...
>>> print(len(long_description))
23911
>>>

files.pythonhosted.org code does not have encoding param.

from setuptools import setup

with open("README.md", "r") as fh:
    long_description = fh.read()

(intentionally removed below lines)

so This looks like already fixed by #38 but not released yet. (1.1.0 is before #38 be merged).

from mastodon-archive.

BartG95 avatar BartG95 commented on August 12, 2024 1

Ah, of course. I assumed the current version included that patch already. Indeed, this is seems to be the solution. Thanks for reporting the bug and its solution 👍.
@kensanata can you make a 1.2.0 release?

from mastodon-archive.

BartG95 avatar BartG95 commented on August 12, 2024

A few suggestions:

  • try running it from powershell instead of cmd;
  • try code page 850 instead of 65001.

from mastodon-archive.

sftblw avatar sftblw commented on August 12, 2024

@BartG95 Thank you but nothing worked.

image
image
image
image

from mastodon-archive.

kensanata avatar kensanata commented on August 12, 2024

The code looks correct... Perhaps you can try it interactively by simply starting python3 and typing it? Like this, for example:

~/src/mastodon-archive$ python3
Python 3.7.3rc1 (default, Mar 13 2019, 11:01:15) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> with open("README.md", "r", encoding="utf-8") as fh:
...     long_description = fh.read()
... 
>>> print(len(long_description))
25939

This would allow us to understand whether this is a problem in Python, or a problem in the code used to install the project.

from mastodon-archive.

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.