quarto with vscode in windows 10 - windows

When render, an error pops: Quarto installation not found
But when I use quarto with cli: quarto render myfile.qmd, success
Environments:
os: windows 10 professional
quarto --version: 1.0.37
vscode Quarto extension: 1.29.0
quarto check:
[>] Checking Quarto installation......OK
Version: 1.0.37
Path: D:\Quarto\bin\
CodePage: 936
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.9.12 (Conda)
Path: D:/miniconda3/python.exe
Jupyter: 4.9.2
Kernels: julia-1.7, python3, ir
[>] Checking Jupyter engine render....OK
[>] Checking R installation...........OK
Version: 4.2.1
Path: d:/R
LibPaths:
- E:/rpkg
- D:/R/library
rmarkdown: 2.14
[>] Checking Knitr engine render......OK
Path setting of Quarto extension in vscode: D:/Quarto/bin/
In ubuntu os, I can render successfully

Related

How to make vscode-ruby to find bundler in an asdf-vm environment?

I'm trying to get the vscode-ruby running within an asdf-vm environment. It's possible to set the path to bundler in the settings. I've set it to:
bundle
/home/user/.asdf/shims/bundle
If I load a ruby file the extension complains:
/bin/sh: bundle: command not found
My environment is:
Version: 1.39.2
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-18T10:58:05.878Z
Electron: 4.2.12
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.3.8-arch1-1
How can I get it to work?

Can't update anaconda and can't run rstudio : R Error: running command status 127

I install graphviz and pydot from the anaconda console
conda install graphviz
pip install git+https://github.com/nlhepler/pydot.git
And i I was no longer able to launch Anaconda, so I type these commands
conda install anaconda-navigator
I can launch Ananconda but I am offered to update the software, i click yes and i have this message
C:\Users\user\Anaconda3\python.exe C:\Users\user\Anaconda3\Scripts\conda-script.py
install --yes --json --force-pscheck --name root anaconda-navigator=1.6.4: HTTP 000
CONNECTION FAILED for url <https://repo.continuum.io/pkgs/main/win-64/repodata.json.bz2><br>
Elapsed: -<br><br>An HTTP error occurred when trying to retrieve this URL.<br>HTTP errors are
often intermittent, and a simple retry will get you on your way.<br>ConnectionError(
MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Max retries exceeded
with url: /pkgs/main/win-64/repodata.json.bz2 (Caused by NewConnectionError('<
requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000000005F6B940>:
Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))",),)<br>
When i want to run RStudio i have this message
rstudio.exe - The procedure entry point was not found
?toLocal8Bit#QString##QEGBA?AVQByteArray##XY can not be found in the dynamic link library
C:\Users\user\Anaconda3\Library\bin\rstudio.exe
library(tensorflow)
install_tensorflow() # success i have now i folder *r-tensorflow* in *C:\Anaconda3\envs\r-tensorflow*
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] httr_1.3.1 compiler_3.4.2 R6_2.2.2 tools_3.4.2 withr_2.0.0 curl_3.0 yaml_2.1.14
[8] memoise_1.1.0 git2r_0.19.0 digest_0.6.12 devtools_1.13.4
reticulate::conda_list()
name python
1 r-tensorflow C:\\Anaconda3\\envs\\r-tensorflow\\python.exe
reticulate::py_config()
python: C:\ANACON~1\python.exe
libpython: C:/ANACON~1/python36.dll
pythonhome: C:\ANACON~1
version: 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)]
Architecture: 64bit
numpy: C:\ANACON~1\lib\site-packages\numpy
numpy_version: 1.13.3
python versions found:
C:\ANACON~1\python.exe
C:\Anaconda3\envs\r-tensorflow\python.exe
I reuninstall Rtools, in my system path: Path
C:\Anaconda3\R\bin
C:\Anaconda3\R\bin\x64
C:\Anaconda3\Scripts
C:\Rtools\bin
C:\Rtools\mingw_32\bin

Why does VSCode external links don't open and make firefox crashing

OS version: Ubuntu 17.10 x64
VSCode version:1.17.2 x64
When I click on a link in VSCode which refer to an internet URL (ex:on welcome page at startup>Help>Introductory videos) it opens 2 "Mozilla Crash Reporter" windows with "Firefox had a problem and crash"
I tried to disable all Add-ons in Firefox and VSCode, but the issue is still there.
I tried to re-install VSCode
I didn't find a way to ask VSCode to use Chrome instead of Firefox...
here is the Modzilla firefox report content:
Add-ons: sbv4-gradual-rollout%40mozilla.com:1.0.0,firefox%40getpocket.com:1.0.5,activity-stream%40mozilla.org:0.0.0,clicktoplay-rollout%40mozilla.org:1.4,followonsearch%40mozilla.com:0.9.3,aushelper%40mozilla.org:2.0,onboarding%40mozilla.org:0.1,shield-recipe-client%40mozilla.org:65,e10srollout%40mozilla.org:3.00,formautofill%40mozilla.org:1.0,webcompat%40mozilla.org:1.1,screenshots%40mozilla.org:10.12.0,langpack-en-ZA%40firefox.mozilla.org:56.0,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:56.0,langpack-en-GB%40firefox.mozilla.org:56.0,ubufox%40ubuntu.com:3.3
AddonsShouldHaveBlockedE10s: 0
BuildID: 20171003222101
CTPCohort: user-changed-from-test
ContentSandboxCapabilities: 119
ContentSandboxCapable: 1
ContentSandboxLevel: 2
CrashTime: 1510735922
DOMIPCEnabled: 1
E10SCohort: addons-set50allmpc-test
EMCheckCompatibility: true
Email: -----#gmail.com
FramePoisonBase: 9223372036600930304
FramePoisonSize: 4096
InstallTime: 1509968396
Notes: Ubuntu 17.10FP(D00-L1000-W00000000-T000) OpenGL: X.Org -- Gallium 0.4 on AMD RS880 (DRM 2.50.0 / 4.13.0-16-generic, LLVM 4.0.0) -- 3.0 Mesa 17.0.7 -- texture_from_pixmap
WR? WR-
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: release
SafeMode: 0
SecondsSinceLastCrash: 302
StackTraces:
StartupCrash: 0
StartupTime: 1510735920
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20171003222101","version":"56.0","vendor":"Mozilla","platformVersion":"56.0","xpcomAbi":"x86_64-gcc3","hotfixVersion":null},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":7727,"virtualMaxMB":null,"cpu":{"count":4,"cores":4,"vendor":"AuthenticAMD","family":16,"model":5,"stepping":3,"l2cacheKB":512,"l3cacheKB":512,"speedMHz":3100,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3"]},"os":{"name":"Linux","version":"4.13.0-16-generic","locale":"en-US"},"hdd":{"profile":{"model":null,"revision":null},"binary":{"model":null,"revision":null},"system":{"model":null,"revision":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","adapters":[{"description":"X.Org -- Gallium 0.4 on AMD RS880 (DRM 2.50.0 / 4.13.0-16-generic, LLVM 4.0.0)","vendorID":"X.Org","deviceID":"Gallium 0.4 on AMD RS880 (DRM 2.50.0 / 4.13.0-16-generic, LLVM 4.0.0)","subsysID":null,"RAM":null,"driver":null,"driverVersion":"3.0 Mesa 17.0.7","driverDate":null,"GPUActive":true}],"monitors":[],"features":{"compositor":"none","gpuProcess":{"status":"unused"}}}},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":1,"e10sCohort":"addons-set50allmpc-test","telemetryEnabled":false,"locale":"en-US","update":{"channel":"release","enabled":true,"autoDownload":true},"userPrefs":{"browser.cache.disk.capacity":358400,"browser.newtabpage.enhanced":true},"sandbox":{"effectiveContentProcessLevel":2},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":null},"profile":{},"experiments":{"clicktoplay-rollout":{"branch":"user-changed-from-test"},"e10sCohort":{"branch":"addons-set50allmpc-test"}}}
Theme: classic/1.0
ThreadIdNameMapping: 13144:"Gecko_IOThread",13145:"Timer",13146:"Link Monitor",13147:"Socket Thread",13148:"JS Watchdog",13158:"Hang Monitor",13161:"Cache2 I/O",13162:"GMPThread",13164:"SoftwareVsyncThread",13165:"Compositor",13166:"ImgDecoder #1",13167:"ImgDecoder #2",13168:"ImgDecoder #3",13169:"ImageIO",13170:"SysProxySetting",13171:"ProxyResolution",13172:"DataStorage",13173:"URL Classifier",13174:"DNS Resolver #1",13175:"DataStorage",13176:"DataStorage",13177:"HTML5 Parser",13178:"IPDL Background",13179:"Classifier Update",13182:"DOM Worker",13184:"DOM Worker",13186:"StreamTrans #5",13187:"StreamTrans #6",13188:"StreamTrans #7",13192:"ImageBridgeChild",13194:"ProcessHangMon",
Throttleable: 1
UptimeTS: 1.6526776
Vendor: Mozilla
Version: 56.0
useragent_locale: en-US
This report also contains technical information about the state of the application when it crashed.
Follow this workaround and it should be fixed:
Remove and purge the current installation using sudo apt-get remove code --purge (or in case of using snap, snap remove code).
Download and install the deb package from https://code.visualstudio.com/download
sudo dpkg -i <vscodefile>.deb
I resolved this issue by setting Chrome as "default browser" on my Ubuntu and then re-install VSCode

Installing Cairo on Mac - Could not find libpng in the pkg-config search path

checking whether cairo's PNG functions feature could be enabled... no
I have been following the setup for configuring node canvas. Cairo is needed but i am having issues trying to set it up. https://github.com/Automattic/node-canvas/wiki/Installation---OSX
If libpng fails and you get the error "error: recommended PNG functions feature could not be enabled", try installing this binary and re-running the configure step.
I followed above by installing the binaries on Mac OS 9 and run the configuration command and still no luck. I am running the install shell script in node-canvas repository:
https://github.com/Automattic/node-canvas/blob/master/install
In my /usr/local/lib I currently have:
dtrace libjpeg.8.dylib libpng.a libpng14.a
libfreetype.6.dylib libjpeg.a libpng.dylib libpng14.dylib
libfreetype.a libjpeg.dylib libpng.la libpng14.la
libfreetype.dylib libjpeg.la libpng12.0.dylib libpng15.15.dylib
libfreetype.la libpixman-1.0.dylib libpng12.0.dylib.dSYM libpng15.15.dylib.dSYM
libgif.4.1.6.dylib libpixman-1.a libpng12.a libpng15.a
libgif.4.dylib libpixman-1.dylib libpng12.dylib libpng15.dylib
libgif.a libpixman-1.la libpng12.la libpng15.la
libgif.dylib libpng.3.dylib libpng14.14.dylib node_modules
libgif.la libpng.3.dylib.dSYM libpng14.14.dylib.dSYM pkgconfig
Libpng-1.6.10 has been replaced by libpng-1.6.12.
In your install script, change
LIBPNG="http://downloads.sourceforge.net/project/libpng/libpng16/1.6.10/libpng-1.6.10.tar.gz"
to
LIBPNG="http://downloads.sourceforge.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz"
I have a set of detailed instructions for building cairo here:
https://github.com/soegaard/racket-osx-libs
There resulting libraries are here:
https://github.com/soegaard/racket-osx-libs/tree/master/lib

libpng version incompatibility in fresh installation of IPython

I used this guide to install the "scientific stack" for Python (OSX 10.9.2, brewed Python 2.7.6, IPython 2.0, matplotlib 1.3.1, libpng 1.6.10). Everything was looking good.
However, trying to run a simple plot in IPython's notebook environment with --pylab=inline gives me this error:
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/formatters.py:239: FormatterWarning: Exception in image/png formatter: Could not create write struct
FormatterWarning,
And in the terminal it says: libpng warning: Application built with libpng-1.5.17 but running with 1.6.10
I have no other libpng installed as far as I can tell. I tried deleting all files beginning with libpng from /usr/local/ and reinstalling everything, to no avail. The output from building matplotlib (pip install matplotlib) contains:
BUILDING MATPLOTLIB
matplotlib: yes [1.3.1]
python: yes [2.7.6 (default, Mar 16 2014, 15:04:47) [GCC
4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)]]
platform: yes [darwin]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.8.1]
dateutil: yes [using dateutil version 2.2]
tornado: yes [using tornado version 3.2]
pyparsing: yes [using pyparsing version 2.0.1]
pycxx: yes [Couldn't import. Using local copy.]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: yes [version 17.2.11]
png: yes [version 1.6.10]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: yes [using nose version 1.3.1]
OPTIONAL BACKEND EXTENSIONS
macosx: yes [installing, darwin]
qt4agg: yes [installing, Qt: 4.8.6, PyQt4: 4.10.4]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing, version 81008]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairo not found]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: no
latex: no
pdftops: no
So it seems to me matplotlib should be compiled against libpng 1.6.10? Can someone help me figure out what's going on?
An expansion of the answer provided by #glenn-randers-pehrson:
pip uninstall matplotlib
cd /opt/X11/include/libpng15
mv png.h _png.h
mv pngconf.h _pngconf.h
mv pnglibconf.h _pnglibconf.h
pip install matplotlib
(if needed remove the old directory or use the force option)
(now move the .h files back to their original locations)
Look for old header files beginning with "png" (png.h, pngconf.h, perhaps others) and remove them.
For the sake of documentation (following on from above comments):
Remove X11
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
sudo pkgutil --forget org.macosforge.xquartz.pkg
Then,
if you have matplotlib / python installed, run the following as appropriate:
pip uninstall matplotlib
pip uninstall ipython
Then,
pip install matplotlib
pip install ipython
If necessary, XQuartz can be re-installed from https://www.macupdate.com/app/mac/26593/xquartz.
[Note: This does re-add the /opt/X11/include/libpng15/png.h etc files, but ipython worked fine afterwards.]
While it is a bit ridiculous having multiple copies of libpng around, this problem results from the path for the pip compiler and python being different. You could also fix this problem through the path, and then recompiling, but the above solutions work too.

Resources