I am getting below error message while knitting my rmd file to html. Can you please help me with this?
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS
linearRegression-1-.utf8.md --to html4 --from
markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash+smart
--output linearRegression-1-.html --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\anjal\Documents\R\win-library\3.6\rmarkdown\rmd\h\default.html"
--no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\anjal\AppData\Local\Temp\RtmpSiwyJO\rmarkdown-str12247b161a33.html"
--mathjax --variable "mathjax-url:https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
Error: pandoc document conversion failed with error 1033 Execution
halted
Regards,
Anjali
I found a solution. The error happened to me when I install tynitex. So I uninstall it with tynitex::uninstall_tynitex(). After that delete the Html, log and tex generated by Rmarkdown. After that build your Html and should work.
In my case, the error was because I had a lot of accents as part of mi text chuncks (á, é, ñ...). Sometimes these were converted to their ASCII codes (á, é, ú) when the code was saved, and made the job failed when I knitted.
I replaced the special characters for their non-accent versions (a, e, n). Was not the final solution for me, but it's a good workaround, the "pandoc document conversion failed with error 1033" went away, and the notebook knitted successfully
In my Case, the error because the project name contains Chinese. The previous name of my project is GAM_广义加性模型. After I change it to GAM and at the same time change the R project file to GAM.Rproj, it works!
So I think maybe you can check whether there are non-English characters in the file name.
My code had a "\n" in it. It is a new line symbol for java and it works on R. But fails to knit until it is deleted.
Related
I have created a project called tutorial with a deps.edn file in it. I also have a core.cljs file in tutorial/src/appy.
When I run the command clj -m cljs.main --compile appy.core --repl following a tutorial I get an error.
Error building classpath. Error reading edn. Map literal must contain an even number of forms (C:\Users\...\tutorial\deps.edn)
The content of the deps.edn file is
{:deps {org.clojure/clojurescript {:mvn/version "1.10.773"}}
:paths ["src"]}
I understand the error but not why it is generated.
I am trying to knit a HTML document from R markdown. I received the following error message
Pandoc.exe:\: openBinaqryFile:invalid argument (Invalid argument)
Error: pandoc document conversion failed with error 1
Execution halted
The R and R studio are saved in a local drive C:. I moved R files into C: drive. So now everything is saved in the same drive.
I also downloaded Pandoc in the same folder where the R files are saved. However, none of these solved the issue. I still can't knit it. I tried other options, Word and PDF. All failed
Really appreciated if you can help
Chenyu
I've installed latest sphinx version 2.3.1.
I have TYPO3 CMS 6.2.19.
Before sphinx can be used it must be configured. Now in sphinx configuration area I click on Sphinx 1.4.5. After some time I get following message:
Sphinx 1.4.5 has been downloaded.
Could not extract Sphinx 1.4.5:
Could not extract 3rd-party libraries for Sphinx:
Archive: /opt/lampp/htdocs/cms1/typo3temp/sphinx-contrib.zip
Inconsistency detected by ld.so: dl-open.c: 596: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
Could not find a compatible version of Pygments
I could debug this extension and found out it crashes at following command:
CommandUtility::exec("'/usr/bin/unzip' '/opt/lampp/htdocs/cms1/typo3temp/sphinx-contrib.zip' -d '/opt/lampp/htdocs/cms1/uploads/tx_sphinx/sphinx-contrib' 2>&1", $out, $returnValue);
If I execute it from a php-one-line script I get following message:
lchmod (file attributes) error: Function not implemented
Does anybody understand what is wrong with it???
OK. I've found a workaround myself: it were libraries. So I had to preload another versions.
All in all, the way is: in the file where unzip is called (Setup.php) in the function unarchive add LD_PRELOAD=/lib64/libgcc_s.so.1:/usr/lib64/libstdc++.so.6 before unzip command. Now it looks as follows:
$cmd = 'LD_PRELOAD=/lib64/libgcc_s.so.1:/usr/lib64/libstdc++.so.6 ' . $unzip . ' ' . escapeshellarg($archiveFileName) ...
And yes, it is not the best solution, but it worked for me.
I want to build libmysql.dll, so I got source code mysql-connector-c-6.1.6-src.zip from http://dev.mysql.com/downloads/connector/c/.
Then cmake-gui.exe to configure and generate vc 2008 sln, leave all settings default.
Then got errors and warnings when building, like this:
mysql-connector-c-6.1.6-src\include\thr_cond.h(109) : error C2065: “ETIMEDOUT”: 未声明的标识符(an unspecified identifier)
mysql-connector-c-6.1.6-src\include\thr_rwlock.h(80) : warning C4013: “TryAcquireSRWLockShared” 未定义(not defined)
mysql-connector-c-6.1.6-src\include\thr_rwlock.h(102) : warning C4013: “TryAcquireSRWLockExclusive” 未定义(not defined)
I searched the source, and find ETIMEDOUT is defined in my_pthread.h, so I include this header in thr_cond.h, but still error.
And TryAcquireSRWLockShared and TryAcquireSRWLockExclusive seem only supported on Win7 and later !
Do I have done something wrong?
How can I build libmysql?
Any help will be appreciated.
Download the previous version (6.0.2), it doesn's use the TryAcquireSRWLockShared() API function.
With a few minor tweeks, it compiles clean with MSVC 2008.
Here are the modifications (based on the extracted zip file root):
Replace line 306 of include/config-win.h with:
// avoid annoying warning
#ifndef HAVE_COMPRESS
# define HAVE_COMPRESS
#endif
Comment lines 350-367 of CMakeLists.txt (CPack instructions cause CMake to fail)
Follow instructions in BUILD.win
I was trying to upload an .sql file to mysql console with \. but it throwed me:
mysql> \. /home/krest/s.sql;
ERROR:
Failed to open file '/home/krest/s.sql;', error: 2
However, "source" command works properly!
What I am doing wrong?
I am running console through ubuntu 14.04 terminal.
Look closer to the error message, everything you need to know is there:
Failed to open file '/home/krest/s.sql;', error: 2
Error 2 is "No such file or directory". You can use the perror command line tool to find out the message from an error code returned by MySQL.
Did you figure out what's wrong? The semicolon after the file name is not supposed to be there. MySQL thinks it is part of the file name and this is why it cannot find the file.
As a side note, it seems that some of the short commands work if the ending semicolon is preceded by a space and do not work without the space (\u, for example, works this way). Others take everything until the end of line as parameter (and fail with an error because of the ending semicolon).