Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741664 - media-gfx/blender-2.83.4[doc]: failed to emerge (Error: dropbox with unknown operator: WM_OT_drop_blend_file)
Summary: media-gfx/blender-2.83.4[doc]: failed to emerge (Error: dropbox with unknown ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-09-11 15:13 UTC by Leonid Kopylov
Modified: 2023-02-09 07:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,291.57 KB, application/x-xz)
2020-09-11 15:15 UTC, Leonid Kopylov
Details
Patch ebuild to fix blender python doc generation (blender-2.83.4-r1.ebuild.python-path.patch,1.28 KB, patch)
2020-11-15 06:36 UTC, Anon Emuss
Details | Diff
Fix building docs with >=dev-python/sphinx-3 (blender-2.83.4-sphinx3.patch,680 bytes, patch)
2020-11-15 06:40 UTC, Anon Emuss
Details | Diff
Apply sphinx3 patch in blender-2.83.4-r1.ebuild (blender-2.83.4-r1.ebuild.sphinx3.patch,968 bytes, patch)
2020-11-15 06:42 UTC, Anon Emuss
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2020-09-11 15:13:03 UTC
# emerge -pqv '=media-gfx/blender-2.83.4::gentoo'
[ebuild  N    ] media-gfx/blender-2.83.4  USE="bullet dds doc elbeem ffmpeg man nls openexr openmp sdl system-numpy system-python tbb tiff -abi6-compat -abi7-compat -alembic -collada -color-management -cuda -cycles -debug -fftw -headless -jack -jemalloc -jpeg2k -llvm -ndof -openal -opencl -openimageio -opensubdiv -openvdb -osl -sndfile -standalone -test -valgrind" PYTHON_SINGLE_TARGET="python3_7"

# emerge --info '=media-gfx/blender-2.83.4::gentoo'
Portage 3.0.6 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.2.0, glibc-2.32-r1, 5.8.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.8.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-8700B_CPU_@_3.20GHz-with-gentoo-2.7
KiB Mem:     8123828 total,   1746944 free
KiB Swap:    8388604 total,   7991036 free
Timestamp of repository gentoo: Thu, 10 Sep 2020 08:00:01 +0000
Head commit of repository gentoo: 52fc47e8c7532de3562a64f8c76447d3f317b920
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
ccache version 3.7.11 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.18.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

darkelf
    location: /var/lib/layman/darkelf
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/user/darkelf.git
    masters: gentoo
    priority: 50

edgets
    location: /var/lib/layman/edgets
    sync-type: laymansync
    sync-uri: https://github.com/BlueManCZ/edgets.git
    masters: gentoo
    priority: 50

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome OPERA-2014"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7z X a52 aac accessibility acl acpi addc afp alsa amd64 appindicator archive audit base berkdb bidi bluetooth bluray box branding btrfs bzip2 cairo cdda cdr cgroup-hybrid chromium cli colord compat conntrack console contrib contribdnn crypt cryptsetup cscope cups curl daap daemon dbus device-mapper djvu dmenu doc dos dot drafts dri dropbox dts dvd dvdr eds emacs emboss encode evo examples excel exif expat experimental extra extras f2fs fat fdk ffmpeg ffmpegthumbnailer finger fingerprint firebird flac flickr fontconfig fortran ftp fuse gd gdbm geoip geolocation gif gimp gles2 glut gmp gnome gnome-keyring gnome-online-accounts go google googledrive gpg gpm gstreamer gtk gui haptic harfbuzz hfs html http iconv icu id3tag idn image imaging imap introspection ios ipod ipv6 ipython iscsi jadetex java jfs jpeg json kdesu kerberos kernel-hooks lapack lapacke lastfm latex lcms ldap libglvnd libnotify libsecret libtirpc logrotate macosx-notifications mad man math mathml matplotlib mbox mdadm mdnsresponder-compat minizip mms mng moodbar mount mount-locking mp3 mp4 mpeg mpfr mplayer mpx mtp multilib mysql mysqli nautilus nbconvert ncurses networkmanager nfs nls notebook nptl nscd ntfs odbc offensive ogg openexr opengl openmp openntpd openvz pam pango pass pcap pcre pcre32 pdf pdfimport pdo perl phonon plugins png policykit pop postgres postproc ppds printsupport projectm pulseaudio pyglet python qml qrcode qt5 radio raw rdp readline recorder rendering rpc rss rtmp samba sasl savedconfig scrobbler sdl sdl-image seccomp secure-delete session sftp slideshow slp smi smtp sound soundcloud sparse spell split-usr sqlite srt sshdump ssl startup-notification svg symengine symlink sync-plugin-portage systemd tcl tcpd tfshark theano theora threads tiff timezone tk tools tracker truetype udev udf udisks unicode update_drivedb upnp upnp-av upower usb utils vala vnc vorbis vserver vtk wayland web webchannel webdav webinterface webp widgets winbind wininst wxwidgets x264 x265 xattr xcb xemacs xetex xface xfs xft xinerama xinetd xkb xml xv xvid zeroconf zip zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Leonid Kopylov 2020-09-11 15:15:36 UTC
Created attachment 659532 [details]
build.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-11 16:55:48 UTC
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
[1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
[1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
[1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
[1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
[1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy'
Error: dropbox with unknown operator: WM_OT_drop_blend_file
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
/var/tmp/portage/media-gfx/blender-2.83.4/temp/environment: line 3391: 11279 Aborted                 (core dumped) "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio
 * ERROR: media-gfx/blender-2.83.4::gentoo failed (compile phase):
 *   sphinx failed.
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_compile
 *   environment, line 3403:  Called die
 * The specific snippet of code:
 *           "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed.";
 *
 * If you need support, post the output of `emerge --info '=media-gfx/blender-2.83.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/blender-2.83.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/blender-2.83.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/blender-2.83.4/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4'
 * S: '/var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4'
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-11 16:56:22 UTC
Can you try with USE=-doc for a moment?
Comment 4 Leonid Kopylov 2020-09-11 17:14:09 UTC
(In reply to Sam James from comment #3)
> Can you try with USE=-doc for a moment?

yes, success with USE=-doc
Comment 5 Anon Emuss 2020-11-15 06:36:22 UTC
Created attachment 671464 [details, diff]
Patch ebuild to fix blender python doc generation

It appears that this version of blender does not find the python modules used to generate the python documents.  This patch adds some arguments to the command-line used to generate those documents to help it find those modules.  This fixes this issue for me.  It does not appear to have been a problem in the last stable version of blender.

The python documents do not appear to generate properly with >=dev-python/sphinx-3, however.  I have another patch for that.
Comment 6 Anon Emuss 2020-11-15 06:40:55 UTC
Created attachment 671467 [details, diff]
Fix building docs with >=dev-python/sphinx-3

Newer versions of blender, including the currently-unstable blender-2.90.1-r1, have a simple one-line patch to allow them to work with >=dev-python/sphinx-3.  This patch is the commit that implements that fix in newer versions of blender.  It applies without error to blender-2.83.4 (although the line numbers are different), and allows blender-2.83.4[doc] to compile and install with dev-python/sphinx-3.2.1.  It does not appear to break installation with dev-python/sphinx-2.4.4, either.
Comment 7 Anon Emuss 2020-11-15 06:42:39 UTC
Created attachment 671470 [details, diff]
Apply sphinx3 patch in blender-2.83.4-r1.ebuild

Quick patch for blender-2.83.4-r1.ebuild that applies the patch allowing it to install correctly with USE=doc and >=dev-python/sphinx-3.
Comment 8 Anon Emuss 2023-01-09 00:42:24 UTC
I think this may be closed.  I was affected by the bug originally, but it appears to no longer be a problem in the current stable version (blender-2.93.10-r1).
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-09 11:11:30 UTC
Apologies for missing the patch before.
Comment 10 Anon Emuss 2023-02-09 07:13:37 UTC
No problem.  It was easy enough for me to apply myself, and I imagine the Gentoo devs have bigger bugs to worry about than blender[doc] problems.  I figure there is a chance that just having the bug here with a patch might have helped somebody, though, so that was why I posted it.