I've been using Win7 to develop in Julia, and I've got a method called loadAll() which runs an include(x) on all relevant files (I'm simultaneously working on a bunch of scripts and I cant be bothered to write the full path for every specific file that I update
When I try running this method using a Linux mint computer it returns the error "ERROR: invalid redefinition of constant Model", where Model is a type which I've re-written on the win7 machine
I attempted to work around this by adding workspace() (crude, I know) but it returned "ERROR: workspace not defined"
Additionally, if I exclude the script that loads the Model type (and all the other types) I get the error "ERROR: #doc not defined"
I would have posted this in the Julia forum but this seems like possibly something that might have to do with the OS rather than the Julia language itself, as I'm sure that if stuff like workspace() and #doc were malfunctioning it would already been solved
Has anybody had this experience that might understand what the problem is? Any help is greatly appreciated, as I would deeply prefer to be able to use Linux instead of windows
EDIT:
Further removing stuff, I removed all the #doc occurrences, and another error came along "ERROR: AbstractString not defined"
Related
I am using Julia 1.8.4 in Jupyter, however, I get the following error message when I start it up.
[code_prettify] Sorry, can't use kernel language julia.
Configurations are currently only defined for the following languages: python, r, javascript
See readme for more details.
If I click "Ok", I am able to run the code in the cells but Jupyter does not highlight Julia code. It continues highlighting Python code and syntax. Is there a way I can fix this?
Or could someone refer me to the documentation?
Like the error message indicates, code_prettify only has configurations inbuilt for Python, Javascript, and R. From the docs:
Example implementations are provided for prettifiers for ipython, ir and ijavascript kernels which should work out of the box ...
Other languages may be added as defaults in the future
Support for Julia is yet to be added, hence the error message.
That said, code_prettify is only needed if you want to reformat your code (semi-)automatically. Syntax highlighting should work regardless, without any extension, and based on my testing, it does. Loading a notebook with a Julia kernel, the error message appears in the console, but the code is syntax-highlighted as usual.
So, if the syntax highlighting problem persists across notebook restarts, the issue must be with some other part of your notebook setup.
I am executing an R script as ms-sql stored procedure. I'm trying to use the "geosphere" package, however when I execute the stored procedure, I'm getting the error "Invalid BXL stream" and the execution halts. The package is already installed on the machine and simply loading the package causes this error i.e library("geosphere") causes the error.
I can however, use this package independently with R Studio, so there doesn't seem to be any issue with the package.
I know this question is dated but I've run into the same issue multiple times so I wanted to leave my results here.
What I've found in using sp_execute_external_script to run R and Python scripts in MS-SQL 2016/17 is that the BXL error comes for 2 different reasons
Bad data types - Often, SQL doesn't understand the data types being sent out of the script. Usually explicitly casting the data as a certain datatype helps here.
Bad package configuration - Certain packages in the R and Anaconda distributions don't sync well with the stored procedure since the database blocks certain dependencies in these packages. Try reinstalling the package in the SQL installed instance of R or Python.
It seems that your problem falls in the latter category. I hope that helped!
Had a similar issue today but with a different package. Getting "invalid BXL stream from MSSQL stored procedure. However, i found that If i opened up Rterm.exe and typed the command 'require(packagename)' then Rterm crashes with "Rterm frontend has stopped working". This looks like a memory issue - which has also been suggested causes the "invalid BXL stream" error.
However, my issue turned out to be the fact that the dependencies for the packages had not been installed correctly (perhaps you are working through a proxy?).
I basically removed all the library packages that had been created when I first installed the problem package and did a install.packages("packagename"). All started working!
Apologies - just noticed that you stated that the package worked independently with R studio - this is probably an issue with R Memory allocation with SQL - See http://henkvandervalk.com/introducing-microsoft-sql-server-2016-r-services
I am working on a project on Rstudio and something wired has become to happen: each time I write something into a script Rstudio automatically writes the following error into the console:
Error in rep.int(vectorNames[i], length(vector[[i]])) :
unimplemented type 'NULL' in 'rep3'
and a label appears under the cursor: "R code execution error".
Appart form this visual bug, everything is working properly. Does anyone have the same issue ?
I've just experienced this issue. In my case, I guess it must be related to the NAMESPACE file from the package.
I can see a discussion about this subject here on R Studio support site.
Citation from the source mentioned above:
There are two times when we run the code that could be emitting this error:
When attempting to retrieve completions from the package's NAMESPACE file,
When attempting to retrieve completions for native routines (e.g. for within a '.Call()' call).
Can you recall if you had been editing the package's NAMESPACE file before seeing this error? Alternatively, have you been using 'devtools::load_all()' or other similar machinery?
And to clearly answer your question:
Yes! I am having the same issue! (Damn it! :) )
LATER EDIT:
I've got rid of the problem by closing the project and reopening it again.
I recently began a project that consists of running simulations of cells. I am very new to programming and completely new to julia. I have to run this code written in julia. I downloaded the language in the juno bundle found here. I am running windows 8.1. I had previously installed the python anaconda bundle, and later installed python 3.5 because I read that it julia compiled in 3+ versions of python.
The problem is that when I attempt to use the code (use the evaluate or evaluate all commands), none of the files I run make the program do what it is supposed to. Often something is not defined, which I can sometimes fix if I run the files that define whatever wasn't defined, but I also get a bounds error (running the cell test file) and assorted other errors. I know that the code does work if run properly.
My question is: am I handling the code wrong and if so how should I run it, or is there something else going on that I am missing?
I run Julia on Windows with the julia.bat file given in the zip archive. I have a couple of basic questions. This launches a DOS console.
When typing a plot() command Julia returns plot not defined. How to use the plot() function ? Is there a graphical interface available ?
When typing help I get:
What does it mean ?
There is also the launch-julia-webserver.bat file in the zip archive. When running this file two DOS windows open but nothing else happens. What can we do with this file and how ?
By the way I do not find any documentation answering such basic questions... of course if you know where to find such a documentation it would be an ideal answer.
To answer your immediate question, help is implemented as a function, and functions must be called with parentheses. Try help(), or to get help for a particular function in the standard library supply it as an argument; i.e., help(help).
When you enter a function name without the parentheses, the default is to print all of the implementations with their argument types.
The main Julia documentation is available online at http://docs.julialang.org/. We also have a mailing list at https://groups.google.com/forum/#!forum/julia-dev.
The webserver is pretty rough, especially on Windows. You should be able to open up http://localhost:2000/ with it running and access a web-based command environment. But you'll probably just want to stick to the normal command line.
Another contributor highlighted the response to help as a potential issue for new users and we've opened a bug on it at https://github.com/JuliaLang/julia/issues/1320. It's a new language and there's still plenty of rough edges, so thanks for helping us file those down!
To use launch-julia-webserver.bat, after you double-click it and the two DOS windows open, one of them should say "Connect to http://localhost:2000/ for the web REPL". If you open a web browser to http://localhost:2000/, you should be greeted with a welcome page that asks for your name and a session name.