How do I fix this error in with deps.edn file? - clojurescript

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.

Related

Octave GUI on Mac is not able to find a file

I entered this code on my octave GUI on Mac:
>>cd file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I am using macOS Big Sur and Octave version 3.8.0.The file in question exists in my computer and I have checked this code multiple times.
It is not able to locate the file on my MacBook for some reason. Can someone help?
Edit: I have tried a new code as mentioned in the comments, but it also can't find the file
>> cd Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I have also tried:
1.>> cd Users/Sudipta/Downloads
error: Users/Sudipta/Downloads No such file or directory
2.>> cd Users/Sudipta/Downloads/Stanford
error: Users/Sudipta/Downloads/Stanford No such file or directory
And I got the same error as above.
The other code gave a different error:
3.> cd /Users/Sudipta/Downloads
warning: load_path: .: Operation not permitted
QKqueueFileSystemWatcherEngine::addPaths: open: Operation not permitted
Warning: QFileSystemWatcher: failed to add paths: /Users/Sudipta/Downloads

Error: pandoc document conversion failed with error 1033 Execution halted

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.

Could not load the file or assembly | Report Builder 3.0

I need to add a custom dll which will provide me with Data Matrix generation but for some reason it gives me this error... Error
It says "Could not load the file or assembly 'C: \ Windows \ System32 \ cruflbcs.dll' or one of its dependencies. The module was expected to contain an assembly manifest."
I added the file to every single folder possible, did the 'regsvr32' command and it gave a successful response.
I'm out of ideas...
Remotely, this file should be pushed to following location:
%ProgramFiles%\Microsoft SQL Server\<VERSION>.MSSQLSERVER\Reporting Services\ReportServer\bin
Locally, this should be placed in the following location:
%ProgramFiles%\Microsoft Visual Studio <VERSION>\Common7\IDE\PrivateAssemblies.

Load new module in Kamailio

I would like to ask, how can I load new module in Kamailio 4.1.2?
Actually, I have an issue, when I tried to compile my kamaiio.cfg
I've got error:
root#kamailio:/usr/local/# kamailio -c kamailio.cfg
loading modules under /usr/local/lib64/kamailio/modules/
0(25392) ERROR: <core> [sr_module.c:587]: load_module(): ERROR: load_module: could not find module <websocket> in </usr/local/lib64/kamailio/modules/>
0(25392) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 323, column 12-25: failed to load module
0(25392) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command ws_handle_handshake
0(25392) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1083, column 27: unknown command, missing loadmodule?
ERROR: bad config file (2 errors)
when I look physically to the /usr/local/lib64/kamailio/modules/ there is some modules, but websocket.so is missing.
So, how can I get and load module in Kamailio?
Thank you for help!
You haven't installed the module websocket. Edit modules.lst file in the source code directory and add websocket to include_modules variable. If you don't have modules.lst, just do:
make cfg
Alternative is to do:
make cfg include_modules="websocket"
By default, the build system for kamailio compiles and install only the modules that have the same dependencies as the core of the application. For websocket you need to install libunistring and openssl (libssl) devel packages.
Steps to load new module to Kamailio server. (Try if above answer is not working for you)
Check the modules is exist in the default module directly /usr/local/lib64/kamailio/modules.
If found, add loadmodule "module_name.so" in load module section in kamailio.cfg file.
If the module is not found in default module directory, you can check for the source code of that module in the default module source code directory /usr/local/src/kamailio-4.4/kamailio/modules.
If source code found, enter to the module directory. Then create modules' shared object file(.so) by following commands.
./configure
make
make test
make install
Then you will get a shared object file(.so). Copy that file into the default module directory. and load this module from the kamailio.cfg file as mentioned in step 1.
If module source code does not exist in the default source code directory, You need to download the source code from the web. And follow step 3 and 4.

Need help with perl error in using DBD::mysql

When I run a perl script which uses DBD::mysql , I get the error message:
install_driver(mysql) failed: Can't load '/home/y/lib/perl5/site_perl/5.8/i686-linux-64int/auto/DBD/mysql/mysql.so'
for module DBD::mysql: libmysqlclient.so.16: cannot open shared object file: No such file or directory
at /home/y/lib/perl5/5.8/i686-linux-64int/DynaLoader.pm line 230. at (eval 30) line 3
I am new to perl, but from what I understand it needs mysql.so and it knows the path.
/home/y/lib/perl5/site_perl/5.8/i686-linux-64int/auto/DBD/mysql/mysql.so is present.
Then why the problem?
The file that is missing is libmysqlclient.so.16, not mysql.so. It comes with the mysqlclient package on some distributions.
Make sure /etc/ld.so.conf contains /usr/local/mysql/lib/mysql and /usr/local/mysql/ . If not, add them and run ldconfig.