Comments (7)
Done!
from mastodon-archive.
from mastodon-archive.
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.
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.
A few suggestions:
- try running it from powershell instead of cmd;
- try code page 850 instead of 65001.
from mastodon-archive.
@BartG95 Thank you but nothing worked.
from mastodon-archive.
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)
- No main.py created in windows?? HOT 7
- Install "the Debian way" HOT 8
- getting mastodon-backup packaged (for Linux) HOT 19
- Generate tarball compatible to Mastodon's export HOT 5
- Specifying bookmarks or statuses with text search resets other specified collections HOT 2
- Feature: Backup / Export Filters HOT 8
- incremental runs of 'mastodon-archive' giving 404s on deleted mentions/replies on STDERR HOT 7
- Compress JSON HOT 8
- Consider making --with-followers and --with-following on by default? HOT 3
- Improve followers feature : consider more interactions HOT 4
- Report fails if no bookmark in archive (old archive) HOT 4
- Version check fails on Pleroma instance HOT 4
- HTML export to use cropped, centered images HOT 4
- HTML Export posts videos with a <img> tag HOT 6
- HTML Export pages should lazy load videos and images to be usable as static sites HOT 14
- Add pagination numbers in html exports
- TypeError: 'NoneType' object is not subscriptable HOT 8
- Backup other account's public posts HOT 1
- Don't burst the API rate limiting HOT 1
- Archiving context HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mastodon-archive.