Problems when running 'make update_po' in BASH shell on MacOS
#74218
Closed
opened 3 years ago by hoanguk
·
20 comments
Labels
Apply labels
Clear labels
good first issue
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/User Interface
legacy module/VFX & Video
legacy project/2.81
legacy project/2.82
legacy project/2.83
legacy project/2.90
legacy project/2.91
legacy project/2.92
legacy project/2.93
legacy project/3.0
legacy project/3.1
legacy project/3.2
legacy project/3.3
legacy project/3.4
legacy project/3.5
legacy project/Animation & Rigging
legacy project/Asset Browser Project Overview
legacy project/Audio
legacy project/BF Blender: Next
legacy project/Compositing
legacy project/Core
legacy project/Cycles
legacy project/Datablocks and Libraries
legacy project/Development Management
legacy project/Documentation
legacy project/EEVEE & Viewport
legacy project/Game Engine
legacy project/Game Physics
legacy project/Geometry Nodes
legacy project/Good First Issue
legacy project/Grease Pencil
legacy project/Images & Movies
legacy project/Import/Export
legacy project/Infrastructure: Websites
legacy project/Line Art
legacy project/Modeling
legacy project/Modifiers
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/Physics
legacy project/Pipeline, Assets & I/O
legacy project/Platform: Windows
legacy project/Python API
legacy project/Render & Cycles
legacy project/Sculpt, Paint & Texture
legacy project/Straightforward Issue
legacy project/Tracker Curfew
legacy project/Translations
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Video Sequencer
Priority › High
Priority › Low
Priority › Normal
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
straightforward issue
Type › Bug
Type › Design
Type › Known Issue
Type › Patch
Type › Report
Type › To Do
No Label
good first issue
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/User Interface
legacy module/VFX & Video
legacy project/2.81
legacy project/2.82
legacy project/2.83
legacy project/2.90
legacy project/2.91
legacy project/2.92
legacy project/2.93
legacy project/3.0
legacy project/3.1
legacy project/3.2
legacy project/3.3
legacy project/3.4
legacy project/3.5
legacy project/Animation & Rigging
legacy project/Asset Browser Project Overview
legacy project/Audio
legacy project/BF Blender: Next
legacy project/Compositing
legacy project/Core
legacy project/Cycles
legacy project/Datablocks and Libraries
legacy project/Development Management
legacy project/Documentation
legacy project/EEVEE & Viewport
legacy project/Game Engine
legacy project/Game Physics
legacy project/Geometry Nodes
legacy project/Good First Issue
legacy project/Grease Pencil
legacy project/Images & Movies
legacy project/Import/Export
legacy project/Infrastructure: Websites
legacy project/Line Art
legacy project/Modeling
legacy project/Modifiers
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/Physics
legacy project/Pipeline, Assets & I/O
legacy project/Platform: Windows
legacy project/Python API
legacy project/Render & Cycles
legacy project/Sculpt, Paint & Texture
legacy project/Straightforward Issue
legacy project/Tracker Curfew
legacy project/Translations
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Video Sequencer
Priority › High
Priority › Low
Priority › Normal
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
straightforward issue
Type › Bug
Type › Design
Type › Known Issue
Type › Patch
Type › Report
Type › To Do
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Set Project
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
No dependencies set.
Reference: blender/documentation#74218
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
System Information
Operating system: Darwin-19.3.0-x86_64-i386-64bit 64 Bits
Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash:
blender/blender@f1aa4d18d4Short description of error
Ran the "make update_po" in 'blender_docs' directory on local machine and encountered several problems:
these errors resides in the file
blender_docs/tools_maintenance/update_po.sh-printf '%h\n. This option in 'find' command is NOT available on Darwin. There are two occurrences in this file.export LANG="en_US.UTF8should beexport LANG="en_US.UTF-8", ie. with a hyphen betweenF-8. Thelocale -awill list out list of all available language codes.is causing the error message:
svn: Skipping argument: E200025: 'locale//vi/.svn' ends in a reserved nameNote there are two '//' in the path. This is caused by the extra forward slash in the 'find locale/..' Remove the slash so the command is only 'find locale ...' resulted to this line:
svn: Skipping argument: E200025: 'locale/vi/.svn' ends in a reserved nameCommented the above block out (svn cleanup and svn up) and the error message is GONE. If you go to the
locale/<lang>and do thesvn up .manually, there are no errors encountered.Last, and the most severed is the creation of
locale/locale/<lang_code>directory and files. This is wrong. (locale) is repeated twice.Recreating problem
Run:
svn checkout https://svn.blender.org/svnroot/bf-manual/trunk/blender_docsto get the documentation code down the local machine:
run:
then install one language, say vi:
svn checkout https://svn.blender.org/svnroot/bf-manual-translations/trunk/blender_docs/locale/vi locale/viNow run the command:
make update_poNote: The code appeared running OK on Linux Mint, about 1-2 months ago. Presently I do not have access to a Linux machine in order to compare results.
The funny thing is if you just run this from the command line, assuming the environment variable
BLENDER_MAN_ENis pointing to yourblender_docsdirectory:cd $BLENDER_MAN_EN; rm -fr build/locale; make gettext; sphinx-intl --config=manual/conf.py update --pot-dir=build/locale --language="vi"; python3 tools_rst/rst_check_locale.pyand there are no errors
Added subscriber: @hoanguk
Added subscriber: @ankitm
Hi! please use code formatting to separate your comments and commands/output. use three backticks {key `} to start a code block, three to end it.
Added subscriber: @Blendify
findis a standard bash command.I was able to run just fine on linux, I do not have a mac to test but bash should work identically to linux.
Changed status from 'Needs Triage' to: 'Needs User Info'
findis a standard bash command.I was able to run just fine on Linux, I do not have a mac to test but bash should work identically to Linux.
Please verify your system or $path is not corrupt.
Changed status from 'Needs User Info' to: 'Resolved'
No reply.
Sorry for coming back late. I think you'll need to obtain an access to Darwin, somehow, probably from developers who manages the build for MacOS. I ran the test using 'BASH' (did not change to Zsh for fearing the compatibility issues). I've recently updated the SVN source for $BLENDER_MAN_EN (blender_docs) and by mistake reran the
make update_po
again and the mistake is repeated. Please try to obtain a mac machine and try it out first before closing the LOG. I bet there are someone out there using MACOS to manage and build the translation from, not just me alone.
Changed status from 'Resolved' to: 'Needs Triage'
@ankitm I am unable to test, maybe you can triage this and comment on what's going on from the mac side?
Will do. Albeit by this time tomorrow
I did the steps as listed out here, (except installing requirements using conda (I'm not okay with sudo and pip))
Changed status from 'Needs Triage' to: 'Confirmed'
For 1:
https://unix.stackexchange.com/a/272493/359891
https://github.com/DerrickWood/kraken/issues/48#issuecomment-320018811
For 2:
yes,
en_US.UTF-8is the one inlocale -aAdded subscriber: @ideasman42
Instead of the loop at
https://developer.blender.org/diffusion/BM/browse/trunk/blender_docs/tools_maintenance/update_po.sh$47
and at further locations, can we use this ?
SVN_DIRS_ALLis needed afterwards too, but I'm having some trouble having a nice list of directories (with spaces) without the GNU version offind.see https://www.unix.com/man-page/mojave/1/find/
CC @ideasman42
@hoanguk please test the differential if it fixes the first 3 points you mentioned above.
Changed status from 'Confirmed' to: 'Resolved'