Closed Bug 1750966 Opened 4 years ago Closed 3 years ago

update_rnp script fails with "No module named thirdroc"

Categories

(MailNews Core :: Security: OpenPGP, defect)

defect

Tracking

(thunderbird_esr91 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
thunderbird_esr91 --- fixed

People

(Reporter: KaiE, Assigned: rjl)

References

Details

Attachments

(1 file)

On Linux Debian
cd mozilla/comm/thirdparty
./update_rnp.sh

results in error:
/home/user/moz/commcent/mozilla/obj-x86_64-pc-linux-gnu/_virtualenvs/common/bin/python: No module named thirdroc

I found that the following manual change to the environment prevents the error:

export PYTHONPATH=../python/thirdroc/

Should this be added to the update_rnp.sh script or do you think this needs to be fixed differently?

I should be able to fix that without changing PYTHONPATH. Doing so was (a while ago) problematic for Python virtualenvs. Longer term, I would like to make use of mach vendor which is designed for this sort of task.

Ideally, PYTHONPATH won't need setting. This is to unblock updates to RNP 0.16.0.

I looked into using mach vendor. It looks like it won't work until one-repo gets going.

See Also: → 1750969
Blocks: 1756756

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/a1684fe02ea4
Set PYTHONPATH so that "thirdroc" module can be located. r=kaie

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch

Comment on attachment 9260459 [details]
Bug 1750966 - Set PYTHONPATH so that "thirdroc" module can be located. r=kaie

[Approval Request Comment]
Regression caused by (bug #): no
User impact if declined: dependency
Testing completed (on c-c, etc.): yes
Risk to taking this patch (and alternatives if risky): no risk, no code change

Attachment #9260459 - Flags: approval-comm-esr91?
Blocks: 1750969

Comment on attachment 9260459 [details]
Bug 1750966 - Set PYTHONPATH so that "thirdroc" module can be located. r=kaie

[Triage Comment]
Approved for esr91

Attachment #9260459 - Flags: approval-comm-esr91? → approval-comm-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: