Closed gersonjferreira closed 1 year ago
Thanks, I have not done this yet because there is a review process it needs to go through before it can be put on Inkscape's site.
One potential issue is that the Gallery Viewer may not be allowed, as it uses a local web server to make the gallery page.
Thanks. Also, I've tested today on inkscape 1.3 and it's not working. Was it suppose to work already?
I'm out of the office already today. But I can post the error message here tomorrow.
On Thu, Aug 31, 2023 at 3:44 PM burghoff @.***> wrote:
Thanks, I have not done this yet because there is a review process it needs to go through before it can be put on Inkscape's site.
One potential issue is that the Gallery Viewer may not be allowed, as it uses a local web server to make the gallery page.
— Reply to this email directly, view it on GitHub https://github.com/burghoff/Scientific-Inkscape/issues/20#issuecomment-1701578039, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJT5ALVR3FWTI2ABMMBSY3XYDLQNANCNFSM6AAAAAA4ESEBFY . You are receiving this because you authored the thread.Message ID: @.***>
Yes, it should be working.
Post the error message and attach an SVG if you want me to diagnose. Also let me know the platform (Windows, Linux, Mac).
I've tried to change the size and run "Scale Plots > Correction Mode > Maintain size of plot area".
I'm using Manjaro Linux with Gnome, all updated.
Here's the figure:
The error message:
Traceback (most recent call last):
File "/home/gerson/.config/inkscape/extensions/scientific_inkscape/scale_plots.py", line 655, in <module>
dh.Run_SI_Extension(ScalePlots(),"Scale plots")
File "/home/gerson/.config/inkscape/extensions/scientific_inkscape/dhelpers.py", line 2134, in Run_SI_Extension
effext.run()
File "/usr/share/inkscape/extensions/inkex/base.py", line 250, in run
self.save_raw(self.effect())
^^^^^^^^^^^^^
File "/home/gerson/.config/inkscape/extensions/scientific_inkscape/scale_plots.py", line 283, in effect
fbbs = dh.BB2(self,dh.unique([d for el in sel for d in dh.descendants2(el)]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gerson/.config/inkscape/extensions/scientific_inkscape/dhelpers.py", line 1325, in BB2
mbbox = d.cbbox;
^^^^^^^
File "/usr/share/inkscape/extensions/inkex/elements/_base.py", line 147, in __getattr__
raise AttributeError(f"Can't find attribute {self.typename}.{name}")
AttributeError: Can't find attribute Group.cbbox. Did you mean: '_cbbox'?
And the ldd output:
ldd /usr/bin/inkscape INT ✘
linux-vdso.so.1 (0x00007ffeb5397000)
libinkscape_base.so.1.3.0.0 => /usr/bin/../lib/inkscape/libinkscape_base.so.1.3.0.0 (0x00007f5ee1e00000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f5ee1cb5000)
libgiomm-2.4.so.1 => /usr/lib/libgiomm-2.4.so.1 (0x00007f5ee1adf000)
libglibmm-2.4.so.1 => /usr/lib/libglibmm-2.4.so.1 (0x00007f5ee1a56000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f5ee1600000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f5ee1a31000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f5ee1200000)
libboost_filesystem.so.1.81.0 => /usr/bin/../lib/inkscape/../libboost_filesystem.so.1.81.0 (0x00007f5ee1a0e000)
libpangocairo-1.0.so.0 => /usr/bin/../lib/inkscape/../libpangocairo-1.0.so.0 (0x00007f5ee380f000)
libcairo.so.2 => /usr/bin/../lib/inkscape/../libcairo.so.2 (0x00007f5ee18dc000)
libpangoft2-1.0.so.0 => /usr/bin/../lib/inkscape/../libpangoft2-1.0.so.0 (0x00007f5ee18c4000)
libpango-1.0.so.0 => /usr/bin/../lib/inkscape/../libpango-1.0.so.0 (0x00007f5ee1597000)
libharfbuzz.so.0 => /usr/bin/../lib/inkscape/../libharfbuzz.so.0 (0x00007f5ee148c000)
libfontconfig.so.1 => /usr/bin/../lib/inkscape/../libfontconfig.so.1 (0x00007f5ee11b1000)
libfreetype.so.6 => /usr/bin/../lib/inkscape/../libfreetype.so.6 (0x00007f5ee10e3000)
libgsl.so.27 => /usr/bin/../lib/inkscape/../libgsl.so.27 (0x00007f5ee0e00000)
libsoup-2.4.so.1 => /usr/bin/../lib/inkscape/../libsoup-2.4.so.1 (0x00007f5ee0d5f000)
libgmodule-2.0.so.0 => /usr/bin/../lib/inkscape/../libgmodule-2.0.so.0 (0x00007f5ee18bb000)
libgio-2.0.so.0 => /usr/bin/../lib/inkscape/../libgio-2.0.so.0 (0x00007f5ee0b89000)
libgobject-2.0.so.0 => /usr/bin/../lib/inkscape/../libgobject-2.0.so.0 (0x00007f5ee0b27000)
libgc.so.1 => /usr/bin/../lib/inkscape/../libgc.so.1 (0x00007f5ee0abb000)
liblcms2.so.2 => /usr/bin/../lib/inkscape/../liblcms2.so.2 (0x00007f5ee0a55000)
libpoppler.so.130 => /usr/bin/../lib/inkscape/../libpoppler.so.130 (0x00007f5ee0600000)
libpoppler-glib.so.8 => /usr/bin/../lib/inkscape/../libpoppler-glib.so.8 (0x00007f5ee09dd000)
libwpg-0.3.so.3 => /usr/bin/../lib/inkscape/../libwpg-0.3.so.3 (0x00007f5ee1899000)
librevenge-0.0.so.0 => /usr/bin/../lib/inkscape/../librevenge-0.0.so.0 (0x00007f5ee145f000)
librevenge-stream-0.0.so.0 => /usr/bin/../lib/inkscape/../librevenge-stream-0.0.so.0 (0x00007f5ee187b000)
libvisio-0.1.so.1 => /usr/bin/../lib/inkscape/../libvisio-0.1.so.1 (0x00007f5ee055d000)
libcdr-0.1.so.1 => /usr/bin/../lib/inkscape/../libcdr-0.1.so.1 (0x00007f5ee04b3000)
libjpeg.so.8 => /usr/bin/../lib/inkscape/../libjpeg.so.8 (0x00007f5ee0407000)
libpng16.so.16 => /usr/bin/../lib/inkscape/../libpng16.so.16 (0x00007f5ee03cd000)
libpotrace.so.0 => /usr/bin/../lib/inkscape/../libpotrace.so.0 (0x00007f5ee1453000)
libgtkmm-3.0.so.1 => /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1 (0x00007f5edfe00000)
libatkmm-1.6.so.1 => /usr/bin/../lib/inkscape/../libatkmm-1.6.so.1 (0x00007f5ee037a000)
libgdkmm-3.0.so.1 => /usr/bin/../lib/inkscape/../libgdkmm-3.0.so.1 (0x00007f5ee0323000)
libpangomm-1.4.so.1 => /usr/bin/../lib/inkscape/../libpangomm-1.4.so.1 (0x00007f5ee02f2000)
libcairomm-1.0.so.1 => /usr/bin/../lib/inkscape/../libcairomm-1.0.so.1 (0x00007f5ee10ba000)
libsigc-2.0.so.0 => /usr/bin/../lib/inkscape/../libsigc-2.0.so.0 (0x00007f5ee02ea000)
libgtk-3.so.0 => /usr/bin/../lib/inkscape/../libgtk-3.so.0 (0x00007f5edf600000)
libgdk-3.so.0 => /usr/bin/../lib/inkscape/../libgdk-3.so.0 (0x00007f5edf507000)
libz.so.1 => /usr/bin/../lib/inkscape/../libz.so.1 (0x00007f5ee02d0000)
libgdk_pixbuf-2.0.so.0 => /usr/bin/../lib/inkscape/../libgdk_pixbuf-2.0.so.0 (0x00007f5ee028a000)
libcairo-gobject.so.2 => /usr/bin/../lib/inkscape/../libcairo-gobject.so.2 (0x00007f5ee027f000)
libgspell-1.so.2 => /usr/bin/../lib/inkscape/../libgspell-1.so.2 (0x00007f5edfde0000)
libgtksourceview-4.so.0 => /usr/bin/../lib/inkscape/../libgtksourceview-4.so.0 (0x00007f5edf470000)
libxslt.so.1 => /usr/bin/../lib/inkscape/../libxslt.so.1 (0x00007f5edf42f000)
libxml2.so.2 => /usr/bin/../lib/inkscape/../libxml2.so.2 (0x00007f5edf2c9000)
libreadline.so.8 => /usr/bin/../lib/inkscape/../libreadline.so.8 (0x00007f5edf272000)
libGraphicsMagick++.so.12 => /usr/bin/../lib/inkscape/../libGraphicsMagick++.so.12 (0x00007f5edf1fa000)
libepoxy.so.0 => /usr/bin/../lib/inkscape/../libepoxy.so.0 (0x00007f5edf0c9000)
libX11.so.6 => /usr/bin/../lib/inkscape/../libX11.so.6 (0x00007f5edef86000)
libm.so.6 => /usr/bin/../lib/inkscape/../libm.so.6 (0x00007f5edee99000)
lib2geom.so.1.3.0 => /usr/bin/../lib/inkscape/../lib2geom.so.1.3.0 (0x00007f5ededb0000)
libgomp.so.1 => /usr/bin/../lib/inkscape/../libgomp.so.1 (0x00007f5eded5f000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f5ee385a000)
libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f5edecc4000)
libboost_atomic.so.1.81.0 => /usr/lib/libboost_atomic.so.1.81.0 (0x00007f5ee0275000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f5edecaf000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f5ee0268000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f5edec84000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f5edec75000)
libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007f5edfddb000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007f5edebc8000)
libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x00007f5edeba8000)
libthai.so.0 => /usr/lib/libthai.so.0 (0x00007f5edeb9d000)
libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f5edeb7a000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f5edeb4f000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f5edeb3c000)
libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007f5edeb2e000)
libcblas.so.3 => /usr/lib/libcblas.so.3 (0x00007f5edeb10000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f5ede9b7000)
libpsl.so.5 => /usr/lib/libpsl.so.5 (0x00007f5ede9a3000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f5ede94f000)
libmount.so.1 => /usr/lib/libmount.so.1 (0x00007f5ede8fe000)
libffi.so.8 => /usr/lib/libffi.so.8 (0x00007f5ede8f3000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007f5ede843000)
libgpgmepp.so.6 => /usr/lib/libgpgmepp.so.6 (0x00007f5ede7e0000)
libopenjp2.so.7 => /usr/lib/libopenjp2.so.7 (0x00007f5ede774000)
libtiff.so.6 => /usr/lib/libtiff.so.6 (0x00007f5ede6dd000)
libsmime3.so => /usr/lib/libsmime3.so (0x00007f5ede6b5000)
libnss3.so => /usr/lib/libnss3.so (0x00007f5ede57b000)
libplc4.so => /usr/lib/libplc4.so (0x00007f5ede574000)
libnspr4.so => /usr/lib/libnspr4.so (0x00007f5ede533000)
libwpd-0.10.so.10 => /usr/lib/libwpd-0.10.so.10 (0x00007f5ede493000)
libicuuc.so.73 => /usr/lib/libicuuc.so.73 (0x00007f5ede200000)
libicudata.so.73 => /usr/lib/libicudata.so.73 (0x00007f5edc200000)
libicui18n.so.73 => /usr/lib/libicui18n.so.73 (0x00007f5edbe00000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007f5ede469000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f5ede455000)
libatk-bridge-2.0.so.0 => /usr/lib/libatk-bridge-2.0.so.0 (0x00007f5ede41a000)
libcloudproviders.so.0 => /usr/lib/libcloudproviders.so.0 (0x00007f5ede1e9000)
libtracker-sparql-3.0.so.0 => /usr/lib/libtracker-sparql-3.0.so.0 (0x00007f5ede10e000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f5ede410000)
libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x00007f5ede0c7000)
libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x00007f5ede0b5000)
libwayland-cursor.so.0 => /usr/lib/libwayland-cursor.so.0 (0x00007f5ede0ab000)
libwayland-egl.so.1 => /usr/lib/libwayland-egl.so.1 (0x00007f5ede409000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f5ede09f000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f5ede09a000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f5ede095000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f5edc1f3000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f5ede08e000)
libenchant-2.so.2 => /usr/lib/libenchant-2.so.2 (0x00007f5edc1e8000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f5edc1b5000)
libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f5edbd89000)
libGraphicsMagick.so.3 => /usr/lib/libGraphicsMagick.so.3 (0x00007f5edbbbe000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f5edc1a8000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f5edc18a000)
libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007f5edc17f000)
libdouble-conversion.so.3 => /usr/lib/libdouble-conversion.so.3 (0x00007f5edc169000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f5edc164000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f5edc15a000)
libdatrie.so.1 => /usr/lib/libdatrie.so.1 (0x00007f5edc151000)
libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007f5edbb9b000)
libblas.so.3 => /usr/lib/libblas.so.3 (0x00007f5edbb45000)
libunistring.so.5 => /usr/lib/libunistring.so.5 (0x00007f5edb98b000)
libidn2.so.0 => /usr/lib/libidn2.so.0 (0x00007f5edb969000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f5edb891000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f5edb863000)
libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007f5edc149000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f5edb855000)
libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007f5edb84e000)
libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f5edb83d000)
libblkid.so.1 => /usr/lib/libblkid.so.1 (0x00007f5edb801000)
libnghttp2.so.14 => /usr/lib/libnghttp2.so.14 (0x00007f5edb7d6000)
libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007f5edb78d000)
libssl.so.3 => /usr/lib/libssl.so.3 (0x00007f5edb6ed000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007f5edb000000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f5edb618000)
libgpgme.so.11 => /usr/lib/libgpgme.so.11 (0x00007f5edb5c2000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f5edb59c000)
libassuan.so.0 => /usr/lib/libassuan.so.0 (0x00007f5edb587000)
libnssutil3.so => /usr/lib/libnssutil3.so (0x00007f5edb555000)
libplds4.so => /usr/lib/libplds4.so (0x00007f5edb54e000)
libatspi.so.0 => /usr/lib/libatspi.so.0 (0x00007f5edb514000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007f5edafaf000)
libjson-glib-1.0.so.0 => /usr/lib/libjson-glib-1.0.so.0 (0x00007f5edaf84000)
libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f5edb509000)
libgfortran.so.5 => /usr/lib/libgfortran.so.5 (0x00007f5edac00000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f5edab18000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f5edb4fd000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f5eda9d0000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f5edaf60000)
And the pip list:
Package Version
------------------------------- ----------------------------------
alabaster 0.7.13
anyascii 0.3.2
apparmor 3.1.6
appdirs 1.4.4
application-utility 1.3.2
asttokens 2.2.1
attrs 22.2.0
autocommand 2.2.2
Babel 2.12.1
backcall 0.2.0
beautifulsoup4 4.12.2
breezy 3.3.3
Brlapi 0.8.5
btrfsutil 6.3.3
CacheControl 0.13.1
certifi 2023.7.22
cffi 1.15.1
chardet 5.2.0
click 8.1.6
click-completion 0.5.2
configobj 5.0.8
coverage 6.5.0
cryptography 41.0.3
cssselect 1.2.0
cssselect2 0.7.0
cupshelpers 1.0
dbus-python 1.3.2
decorator 5.1.1
distro 1.8.0
dnspython 2.3.0
docutils 0.20.1
dulwich 0.21.5
executing 1.2.0
fastbencode 0.2
fastjsonschema 2.18.0
filelock 3.12.2
gufw 22.4.0
gWakeOnLAN 0.8.5
idna 3.4
imagesize 1.4.1
img2pdf 0.4.4
inflect 7.0.0
iotop 0.6
ipython 8.14.0
jaraco.context 4.3.0
jaraco.functools 3.8.1
jaraco.text 3.11.1
jedi 0.18.2
Jinja2 3.1.2
layoutswitcherlib 0.8.36
lensfun 0.3.4
LibAppArmor 3.1.6
libfdt 1.7.0
lit 15.0.7.dev0
lockfile 0.12.2
louis 3.26.0
lxml 4.9.2
manjaro-sdk 0.1
Markdown 3.4.4
MarkupSafe 2.1.3
material-color-utilities-python 0.1.5
matplotlib-inline 0.1.6
merge3 0.0.13
meson 1.2.1
more-itertools 10.1.0
msgpack 1.0.5
netsnmp-python 1.0a1
nftables 0.1
npyscreen 4.10.5
numpy 1.25.1
ordered-set 4.1.0
packaging 23.1
pacman-mirrors 4.23.2
parso 0.8.3
patiencediff 0.2.13
pdfarranger 1.10.0
pexpect 4.8.0
pickleshare 0.7.5
pikepdf 8.4.0
Pillow 10.0.0
pip 23.2.1
platformdirs 3.10.0
ply 3.11
prompt-toolkit 3.0.39
ptyprocess 0.7.0
pure-eval 0.2.2
pwquality 1.4.5
pycairo 1.24.0
pycparser 2.21
pycups 2.0.1
pycurl 7.45.2
pydantic 1.10.9
Pygments 2.16.1
PyGObject 3.44.1
pyserial 3.5
PySide2 5.15.10
PySide6 6.5.2
pysmbc 1.0.25.1
python-dateutil 2.8.2
python-xlib 0.33
pytz 2023.3
pyudev 0.24.1
pyxdg 0.28
PyYAML 6.0.1
ranger-fm 1.9.3
regex 2023.6.3
reportlab 3.6.12
requests 2.28.2
scour 0.38.2
setproctitle 1.3.2
setuptools 68.0.0
shellingham 1.5.0.post1
shiboken2 5.15.10
shiboken6 6.5.2
shiboken6-generator 6.5.2
six 1.16.0
snowballstemmer 2.2.0
soupsieve 2.4.1
Sphinx 7.2.3
sphinxcontrib-applehelp 1.0.7
sphinxcontrib-devhelp 1.0.5
sphinxcontrib-htmlhelp 2.0.4
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.6
sphinxcontrib-serializinghtml 1.1.9
stack-data 0.6.2
svglib 1.5.1
systemd-python 235
sysv-ipc 1.1.0
tinycss2 1.2.1
tomli 2.0.1
tqdm 4.66.1
traitlets 5.9.0
trove-classifiers 2023.8.8
typing_extensions 4.7.1
ufw 0.36.2
urllib3 1.26.15
validate 5.0.8
validate-pyproject 0.13.post1.dev0+gb752273.d20230520
wcwidth 0.2.6
webencodings 0.5.1
wheel 0.40.0
xonsh 0.14.0
Yapsy 1.12.2
zstandard 0.21.0
It looks like you're still running the version of Scale Plots from the Inkscape website, as line 283 of scale_plots.py is now different. If you used the installer to add it, I think probably you need to uninstall it first? Then try adding the new version.
FYI, I started the approval process for adding it to the website. It's up now, but you won't be able to use it through the installer until it's approved.
Yes! You are right! I'm sorry. I've download both from inkscape and from github, but I forgot to update.
It's on the Inkscape site now.
The github readme says that the extension is compatible with inkscape 1.3, but the inkscape webpage still shows only versions compatible with version 1.2. Please update the inkscape version on their webpage so we can use the automatic install method.