Closed Bug 1655056 Opened 10 months ago Closed 9 months ago

mach doc fails to use pipenv, "ModuleNotFoundError: No module named 'livereload'"

Categories

(Firefox Build System :: Documentation Infrastructure, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chutten, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Linux Mint 19.1 x64

I've been struggling with my environment's python/pip for the last few weeks. I had some packages installed as root, I have about 5 different versions of Python installed... the sorts of things that happen if you don't know what you're doing and your computer's setup is over a year old.

mach doc used to work for me back at the beginning of July, but now (July 23) when I run it, it fails with the attached output. (I've included output for when the virtualenv already exists and when it doesn't and is created from scratch)

If mach doc can't find livereload, it must not be using the virtualenv because I've looked in the virtualenv and found it there:

$ ls obj-debug-x86_64-pc-linux-gnu/_virtualenvs/moztreedocs-anOrb84v/lib/python3.8/site-packages/livereload
cli.py  handlers.py  __init__.py  management  __pycache__  server.py  vendors  watcher.py

I'm convinced it's something I have wrong in my own setup, but I thought pipenv was supposed to render my setup irrelevant.

Component: General → Generated Documentation

Hoping this gets fixed automatically by bug 1655107, though there's a chance it's unrelated to pipenv.

See Also: → 1655107
Blocks: mach-busted

I somewhat scope bloated myself in bug 1655107 and it got a little stalled waiting for better virtualenv creation support in mach core.

Blocks: 1654339

Huzzah, it appears as though bug 1656993 has fixed my issues!

:ahal, do you want this to remain open, or shall this go RESOLVED>FIXED?

Flags: needinfo?(ahal)

Woohoo, let's close this.

Status: NEW → RESOLVED
Closed: 9 months ago
Flags: needinfo?(ahal)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.