Closed Bug 1643872 Opened 11 months ago Closed 11 months ago

`./mach doc` returns error

Categories

(Firefox Build System :: Documentation Infrastructure, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: emceeaich, Unassigned)

References

(Blocks 1 open bug)

Details

~/src/mozilla-central$ ./mach doc
Traceback (most recent call last):
  File "/home/ehumphries/src/mozilla-central/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3/bin/pipenv", line 5, in <module>
    from pipenv import cli
  File "/home/ehumphries/src/mozilla-central/build/mach_bootstrap.py", line 475, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'pipenv'
Error running mach:

    ['doc']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file doc| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

subprocess.CalledProcessError: Command '['/home/ehumphries/src/mozilla-central/obj-x86_64-pc-linux-gnu/_virtualenvs/init_py3/bin/pipenv', 'install']' returned non-zero exit status 1.

  File "/home/ehumphries/src/mozilla-central/tools/moztreedocs/mach_commands.py", line 79, in build_docs
    self.activate_pipenv(os.path.join(here, 'Pipfile'))
  File "/home/ehumphries/src/mozilla-central/python/mozbuild/mozbuild/base.py", line 860, in activate_pipenv
    self.virtualenv_manager.activate_pipenv(pipfile, populate, python)
  File "/home/ehumphries/src/mozilla-central/python/mozbuild/mozbuild/virtualenv.py", line 669, in activate_pipenv
    subprocess.check_call([pipenv, 'install'], stderr=subprocess.STDOUT, env=env)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)

I needed to run ./mach clobber then ./mach bootstrap because of, most likely, updating to Ubuntu 20.04

Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → WORKSFORME

mach doc error message could be better!

You need to log in before you can comment on or make changes to this bug.