question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy not working from Lektor Admin on Python 3.6

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
nixjdmcommented, Sep 7, 2018
2reactions
nixjdmcommented, Sep 4, 2018

Yes, this is definitely release worthy. Give me a couple days and I’ll have one out. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found