i am trying to convert a doc to docx using the following command:
soffice --headless --convert-to docx test.doc
I am using centos7, and install everything from openoffice throught
yum install openoffice
I am in the current directory of the .doc file.
I am having an error related to filters (I had search about these filters and didn't find one that would solve my problem):
Error: no export filter for teste.docx found, aborting.
Error: no export filter
Everytime i put some filter, it gives me another error:
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///path/test.txt> failed: 0x81a)
I put the filter (filter example from soffice) and still not working
soffice --headless --convert-to html:"txt:Text (encoded):UTF8" --outdir /home/user/Downloads /home/user/Downloads/test.doc
I discover why it's not working. I uninstall oppenoffice and libreoffice and put another one.
yum remove openoffice* libreoffice*
yum install libreoffice*
Probably it was missing some library or some dependencies were confliting.
Now everything is working.
soffice --headless --convert-to docx teste.doc
Related
I have installed Zim on my MacBook. I already have Latex installed. When I try to add the "Insert Equation" plugin, the following errors are shown:
Dependencies
latex - Failed
dvipng - Failed
It is worth mentioning that when I type "latex" or "dvipng" in the terminal, I see that the corresponsing program is called. So, the installation of Latex seems fine.
How to solve this issue?
I'm trying to set up vim for C++ editing in Ubuntu 20. I'd like to use clang-format to format my files. My vimrc looks as follows:
map <C-K> :py3f /usr/local/clang-10.0.0/share/clang/clang-format.py<cr>
imap <C-K> <c-o>:py3f /usr/local/clang-10.0.0/share/clang/clang-format.py<cr>
When I run this in vim by hitting C-k over a block of code, I get this error:
b'clang-format: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory\n'
No output from clang-format (crashed?).
Please report to bugs.llvm.org.
Has anyone encountered this before? How do I resolve this?
Sorted it out. It looks like Ubuntu 20 has libtinfo.so.6. I installed the libtinfo.so.5 package using:
sudo apt update && sudo apt install -y libtinfo5
Note - I saw some posts on doing an alias "ln -s" on the libtinfo.so.6 file. This did not work for me.
I'm trying to get django-wiki running.
It works well so far, except I can't display .jpeg images.
At first I had trouble when only importing jpeg files in the webapp.
I fixed this modifying setup.py of PIL's setup.py as follows:
JPEG_ROOT = libinclude("/usr/lib")
# Line 214
add_directory(library_dirs, "/usr/lib")
add_directory(library_dirs, "/usr/lib/x86_64-linux-gnu")
Jpeg libs I have currently installed:
libjpeg-progs
libjpeg62:amd64
libjpeg62-dev:amd64
libjpeg8:amd64
libopenjpeg2:amd64
After install PIL with pip install PIL, I get this output which doesn't look that bad, at least I thought so
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
No error messages (and no "decoder ntót available") and I can view the images properly on my server, which means upload works great. But in the wiki only the file names are shown and when I click on them I get
"This image failed to load."
Could someone please help me? I can't find any error output (debug mode is activated).
Thanks in advance
You are compiling software! You need to install development libraries for these things to compile, e.g. apt-get install libjpeg-dev.
Also, install Pillow, it has less chances of failure to compile - pip install pillow.
I am trying to install Django using virtualenv together with pip on mac and I am facing some problem in installing it. I am basically following this video: http://www.youtube.com/watch?v=71Ja7L89EOA to install Django.
I got stuck when I type .env/bin/activate like in the video
Error msg:
APPLEs-iMac-2:~ IMAC$ .env/bin/activate
-bash: .env/bin/activate: No such file or directory
What might be doing wrong? Shld i do inside the project file and i can't do in the main folder is it?
Need some help on it..
There is a space. command source is equal to .
The correct is . env/bin/activate
I am getting this error which running reportlab with django:
Error was: No module named datacharts
When I checked the
C:\Python26\Lib\site-packages\rlextra\graphics\guiedit folder I dont find datacharts.py but I only find datacharts.pyc and datacharts.pyo
For all other files, even py is there. I tried downloading rlextra again but py for datacharts is still not there.
Is this the right format or I am missing on anything which django is not able to find.
Have you read through the Reportlab installation instructions?
In particular, step 3 tells you how to test your rlextra installation, and step 4 mentions that you will need to install Python Windows extensions in order to use data-aware charts with a database.