Deploy not working from Lektor Admin on Python 3.6
See original GitHub issueI’m trying to deploy Lektor from the admin interface running on Python 3.6. I get the following error in the terminal:
Started build
Error on request:
Traceback (most recent call last):
File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 270, in run_wsgi
execute(self.server.app)
File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 261, in execute
write(data)
File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 241, in write
assert isinstance(data, bytes), 'applications must write bytes'
AssertionError: applications must write bytes
Finished build in 0.02 sec
These are the steps to reproduce:
$ virtualenv -p python3.6 test
$ cd test/
$ source bin/activate
$ pip install lektor
$ lektor quickstart # answer all with "test" and Yes
$ cd test
# add the following to test.lektorproject
[servers.ghpages]
name = GHPages
enabled = yes
target = ghpages://test/test
$ lektor server
# go to http://localhost:5000/admin/root/edit
# click Deploy icon
# observe error above in the terminal
I tried other deploy options as well and I get the same error.
What else can I try? What additional information can I provide to make this easier to debug?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Publishing to github pages using https · Issue #530 · lektor ...
Deploy not working from Lektor Admin on Python 3.6 #508 ... The issue is Error: git executable not found; cannot deploy.
Read more >Installation | Documentation | Lektor Static Content ...
I tried to install Lektor on Win 10, Python 3.6.I had a big problem with PyYAML. The installation failed always. Then i installed...
Read more >Newest 'lektor' Questions - Stack Overflow
I am trying to export an existing php-based dynamic webpage into a lektor project which up to now really worked well. Unfortunately one...
Read more >CHANGES · master · The Tor Project / Web / lektor · GitLab
Lektor Debian package used for Jenkins builds. ... Expanded automated testing environments to Python 2.7, 3.5, 3.6, ... Improved date handling in admin....
Read more >Lektor/CHANGELOG and Lektor Releases | LibHunt
This release drops support for Python 3.6, which has reached end-of-life in ... This fixes problems with the "edit" pencil when using alternatives...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@msom Here you go! https://github.com/lektor/lektor/releases/tag/3.1.2
Yes, this is definitely release worthy. Give me a couple days and I’ll have one out. 😃