Comments (10)
Thanks for the additional report. I'll change the default for macos to disable dynamic linking (i.e. set :allow_static_linking).
from evcxr.
Evcxr itself doesn't write any logs, but possibly the vscode jupyter extension does. If you look through the logs available via the UI is there one for the jupyter extension?
from evcxr.
found the log, but no specific information for debugging:
14:45:25.520 [warn] StdErr from Kernel Process Compiling libc v0.2.149
Compiling autocfg v1.1.0
14:45:25.520 [warn] StdErr from Kernel Process Compiling memchr v2.6.4
Compiling serde v1.0.190
14:45:26.051 [warn] StdErr from Kernel Process Compiling bytes v1.5.0
14:45:26.053 [warn] StdErr from Kernel Process Compiling version_check v0.9.4
Compiling typenum v1.17.0
14:45:26.055 [warn] StdErr from Kernel Process Compiling itoa v1.0.9
14:45:26.172 [warn] StdErr from Kernel Process Compiling bitflags v1.3.2
14:45:26.331 [warn] StdErr from Kernel Process Compiling slab v0.4.9
14:45:27.466 [warn] StdErr from Kernel Process Compiling jobserver v0.1.27
14:45:27.709 [warn] StdErr from Kernel Process Compiling cc v1.0.83
14:45:28.191 [warn] StdErr from Kernel Process Compiling quote v1.0.33
14:45:28.377 [warn] StdErr from Kernel Process Compiling syn v2.0.38
14:45:28.490 [warn] StdErr from Kernel Process Compiling getrandom v0.2.10
...
many warns, but no errors.
The crate in the upper dir can be compiled without error.
from evcxr.
If you can reproduce the problem with a public crate, I can take a look and see if I can determine what's wrong
from evcxr.
I can reproduce it with evcxr.
- clone evcxr
- cd evcxr
- mkdir notebook
- touch test.ipynb inside dir notebook
- select rust kernel
:dep evcxr_repl = { path = "../evcxr_repl" }
and run- get the same kind of error
from evcxr.
Thanks for the detailed steps. I tried this and unfortunately didn't see any error, so I guess it's probably something specific to the environment you're running in. Assuming that the same crate(s) build normally for you outside of evcxr, perhaps try :allow_static_linking 1
. That will disable the new dynamic linking mode that was introduced in the most recent version of evcxr.
from evcxr.
Thanks. It seems that the issue can be resolved with :allow_static_linking 1
.
from evcxr.
Glad we've got a workaround. What OS are you on? It's likely that the dynamic linking needs more work on that platform.
from evcxr.
I am using Macbook M1 with Ventura 13.3.
from evcxr.
I can confirm the same issue on:
OS: macOS 14.0 23A344 arm64
Host: MacBookPro18,3
Kernel: 23.0.0
Uptime: 7 days, 17 hours, 29 mins
Packages: 277 (brew)
Shell: zsh 5.9
Resolution: 1512x982
DE: Aqua
WM: Rectangle
Terminal: /dev/ttys010
CPU: Apple M1 Pro
GPU: Apple M1 Pro
Memory: 3115MiB / 16384MiB
The workaround seems to be working but this should be fixed nonetheless.
from evcxr.
Related Issues (20)
- i wanna install the indy-sdk on ubuntu, tried sudo apt get-update and got this
- Running on M1 with cargo install leads to "Trying to load an unsigned library" HOT 11
- RFC: Adding Support for Shell Command Execution HOT 4
- Native file rust cell support HOT 5
- Example from readme with reference to local variables do not work HOT 2
- how to trigger code auto completion HOT 2
- Can't use tch-rs in Jupyter Hub HOT 3
- Can't use tch-rs in Jupyter Hub (Part 2) HOT 3
- Can't use Burn (MNIST example) HOT 6
- Race condition between idle and iopub messages in `evcxr_jupyter`? HOT 4
- Invalid code generation when no tokio dependency is added HOT 2
- Invalid code generation when using the question mark operator directly after `.await` HOT 1
- Trying to include a local package gives a manifest error HOT 7
- Error: cannot open shared object file: No such file or directory. HOT 10
- How can I reuse a target directory from a workspace? HOT 2
- How to add :cache 500 to my ~/.config/evcxr/init.evcxr HOT 3
- shell command in evcxr jupyter HOT 1
- unresolved import `core::unicode` HOT 10
- evcxr works with atom/pulsar hydrogen HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evcxr.