doesn't start in venv

Open
#267 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the traceback with the shown virtualenv commands, then inspect livereload/server.py and the imported Tornado files, tornado/wsgi.py and tornado/httputil.py, to identify the compatibility boundary. Done means the installed livereload command starts successfully in that Python 3.10 virtual environment without the reported MutableMapping error.

Written by the indexing model from the issue text.

Description

this:

> venv/bin/activate
> python3 -m pip install livereload
> livereload

results in this:

Traceback (most recent call last):
  File "/Users/stephan/git/tennn/venv/bin/livereload", line 5, in <module>
    from livereload.cli import main
  File "/Users/stephan/git/tennn/venv/lib/python3.10/site-packages/livereload/__init__.py", line 15, in <module>
    from .server import Server, shell
  File "/Users/stephan/git/tennn/venv/lib/python3.10/site-packages/livereload/server.py", line 20, in <module>
    from tornado.wsgi import WSGIContainer
  File "/Users/stephan/git/tennn/venv/lib/python3.10/site-packages/tornado/wsgi.py", line 40, in <module>
    from tornado import httputil
  File "/Users/stephan/git/tennn/venv/lib/python3.10/site-packages/tornado/httputil.py", line 106, in <module>
    class HTTPHeaders(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
Dominant language
Python
Stars
1.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lepture/python-livereload

All issues in lepture/python-livereload

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.