Closed Bug 1556371 Opened 5 years ago Closed 4 years ago

|mach doc | command is not working

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: championshuttler, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: in-triage)

Traceback (most recent call last):
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/cli.py", line 402, in install
selective_upgrade=selective_upgrade,
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/core.py", line 1781, in do_install
skip_requirements=skip_requirements,
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/core.py", line 620, in ensure_project
three=three, python=python, site_packages=site_packages
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/core.py", line 553, in ensure_virtualenv
if not project.virtualenv_exists:
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/project.py", line 225, in virtualenv_exists
if self.pipfile_exists and os.path.exists(self.virtualenv_location):
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/project.py", line 315, in virtualenv_location
loc = self._get_virtualenv_location(self.virtualenv_name)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/project.py", line 238, in _get_virtualenv_location
from .patched.pew.pew import get_workon_home
File "/Users/championshuttler/Desktop/moz/mozilla-unified/build/mach_bootstrap.py", line 399, in call
module = self._original_import(name, globals, locals, fromlist, level)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/patched/pew/init.py", line 3, in <module>
from . import pew
File "/Users/championshuttler/Desktop/moz/mozilla-unified/build/mach_bootstrap.py", line 399, in call
module = self._original_import(name, globals, locals, fromlist, level)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/patched/pew/pew.py", line 44, in <module>
from pew._utils import (check_call, invoke, expandpath, own, env_bin_dir,
File "/Users/championshuttler/Desktop/moz/mozilla-unified/build/mach_bootstrap.py", line 399, in call
module = self._original_import(name, globals, locals, fromlist, level)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/patched/pew/init.py", line 3, in <module>
from . import pew
File "/Users/championshuttler/Desktop/moz/mozilla-unified/build/mach_bootstrap.py", line 399, in call
module = self._original_import(name, globals, locals, fromlist, level)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/patched/pew/pew.py", line 44, in <module>
from pew._utils import (check_call, invoke, expandpath, own, env_bin_dir,
File "/Users/championshuttler/Desktop/moz/mozilla-unified/build/mach_bootstrap.py", line 399, in call
module = self._original_import(name, globals, locals, fromlist, level)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/patched/pew/_utils.py", line 25, in <module>
encoding = locale.getlocale()[1] or 'ascii'
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/locale.py", line 564, in getlocale
return _parse_localename(localename)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/locale.py", line 477, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/lib/python2.7/site-packages/pipenv/_compat.py:86: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/var/folders/69/5gttt4xs3sg3c7h3qk90m_gw0000gn/T/pipenv-YK7D2v-requirements'>
warnings.warn(warn_message, ResourceWarning)
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| 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:

CalledProcessError: Command '[u'/Users/championshuttler/Desktop/moz/mozilla-unified/obj-x86_64-apple-darwin18.5.0/_virtualenvs/init/bin/pipenv', u'install']' returned non-zero exit status 1

File "/Users/championshuttler/Desktop/moz/mozilla-unified/tools/docs/mach_commands.py", line 61, in build_docs
self.activate_pipenv(os.path.join(here, 'Pipfile'))
File "/Users/championshuttler/Desktop/moz/mozilla-unified/python/mozbuild/mozbuild/base.py", line 854, in activate_pipenv
self.virtualenv_manager.activate_pipenv(pipfile, populate, python)
File "/Users/championshuttler/Desktop/moz/mozilla-unified/python/mozbuild/mozbuild/virtualenv.py", line 626, in activate_pipenv
subprocess.check_call([pipenv, 'install'], stderr=subprocess.STDOUT, env=env)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)

Keywords: in-triage
Priority: -- → P3

Is this still an issue?

Flags: needinfo?(shivams2799)

Hi Mark, no , time to close this issue :)

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