kaedea / kaedea/notion-up

NameError: name 'unicode' is not defined

Open
#5 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
126
Forks
25
PR merge metrics
No merged PRs in 30d

Description

python3 main.py --token_v2 xxxxx

https://s3.us-west-2.amazonaws.com/temporary.notion-static.com/Export-85d43a1a-a0aa-44b9-8783-9410135efd5e.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220629%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220629T031308Z&X-Amz-Expires=604800&X-Amz-Signature=c55e628909e28e53fc975408470b86bf4368648c74119a60c6a3ff7abb30da84&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%20%3D%22Export-85d43a1a-a0aa-44b9-8783-9410135efd5e.zip%22&x-id=GetObject
Traceback (most recent call last):
File "E:\workspace\note2-master\main.py", line 50, in
start()
File "E:\workspace\note2-master\main.py", line 25, in start
zips = NotionUp.backup()
File "E:\workspace\note2-master\notion_backup.py", line 95, in backup
filename = slugify(f'{spaceName}-{spaceId}') + '.zip'
File "C:\Users\admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\slugify.py", line 24, in slugify
unicode(
NameError: name 'unicode' is not defined

Contributor guide

No contributing guide indexed for this repository

Research direction

The traceback leads from main.py:25 to notion_backup.py:95, where slugify is called; start by checking that dependency and its Python 3 compatibility. Reproduce with the shown python3 main.py --token_v2 command and verify the backup proceeds without NameError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.