xeus-fift icon indicating copy to clipboard operation
xeus-fift copied to clipboard

FunC #include: failed to load "�.fc"

Open cornobils opened this issue 4 years ago • 0 comments

When I try to run #include "stdlib.fc", I have this error in console: failed to load "�.fc". Also when I try enter full path to the .fc file, I receive failed to load "�dmitry/Coding/ton/ton/crypto/smartcont/stdlib.fc".

Full Jupyter execution log:

[I 18:53:05.556 NotebookApp] Serving notebooks from local directory: /home/dmitry/Coding/ton
[I 18:53:05.556 NotebookApp] The Jupyter Notebook is running at:
[I 18:53:05.556 NotebookApp] http://localhost:8888/?token=9d1f0beab14cefd0dfd85ea4ca8a248191a2ad62f725da40
[I 18:53:05.557 NotebookApp]  or http://127.0.0.1:8888/?token=9d1f0beab14cefd0dfd85ea4ca8a248191a2ad62f725da40
[I 18:53:05.557 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:53:05.575 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/dmitry/.local/share/jupyter/runtime/nbserver-32055-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=9d1f0beab14cefd0dfd85ea4ca8a248191a2ad62f725da40
     or http://127.0.0.1:8888/?token=9d1f0beab14cefd0dfd85ea4ca8a248191a2ad62f725da40
[W 18:53:13.236 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20191216185305 (127.0.0.1) 10.79ms referer=http://localhost:8888/notebooks/Untitled.ipynb
[I 18:53:13.431 NotebookApp] Kernel started: e41dde80-5145-4a41-8de3-47a292325869
[W 18:53:14.945 NotebookApp] 404 GET /api/kernels/21074eaf-4e5c-454c-b395-0cdb5de35d09/channels?session_id=a7e1ed1fc4c24e76885b954743034700 (127.0.0.1): Kernel does not exist: 21074eaf-4e5c-454c-b395-0cdb5de35d09
[W 18:53:14.947 NotebookApp] 404 GET /api/kernels/21074eaf-4e5c-454c-b395-0cdb5de35d09/channels?session_id=a7e1ed1fc4c24e76885b954743034700 (127.0.0.1) 4.87ms referer=None
[I 18:53:21.117 NotebookApp] Starting buffering for e41dde80-5145-4a41-8de3-47a292325869:1849a1eb68b24253802c1a48566e22de
[I 18:53:21.426 NotebookApp] Kernel shutdown: e41dde80-5145-4a41-8de3-47a292325869
[I 18:53:21.463 NotebookApp] Kernel started: 4d8f280f-8732-4d27-a299-c415382cdfc3
failed to load `�.fc`
Found 1 function declarations
function print : Forall (A) A -> ()
new type of function print : Forall (A) A -> ()
Starting xeus-func kernel...

If you want to connect to this kernel from an other client, you can use the /home/dmitry/.local/share/jupyter/runtime/kernel-4d8f280f-8732-4d27-a299-c415382cdfc3.json file.
Run with XEUS 0.23.2
[W 18:53:47.949 NotebookApp] Replacing stale connection: 21074eaf-4e5c-454c-b395-0cdb5de35d09:a7e1ed1fc4c24e76885b954743034700
[W 18:53:56.957 NotebookApp] 404 GET /api/contents/myfunc.ipynb?content=0&_=1576515116009 (127.0.0.1): No such file or directory: myfunc.ipynb
[W 18:53:56.957 NotebookApp] No such file or directory: myfunc.ipynb
[W 18:53:56.957 NotebookApp] 404 GET /api/contents/myfunc.ipynb?content=0&_=1576515116009 (127.0.0.1) 1.15ms referer=http://localhost:8888/notebooks/myfunc.ipynb
[I 18:53:56.964 NotebookApp] Uploading file to /myfunc.ipynb
failed to load `�dmitry/Coding/ton/ton/crypto/smartcont/stdlib.fc`
ERROR: during execute_request
[json.exception.type_error.316] invalid UTF-8 byte at index 17: 0x01
[I 18:55:13.967 NotebookApp] Saving file at /Untitled.ipynb

.zshrc looks like this:

export FUNCPATH=/home/dmitry/Coding/ton/ton/crypto/smartcont:/home/dmitry/Coding/ton/ton/build/crypto

Tried also with $HOME instead of full home directories. Fift kernel with example commands from repository readme looks like are working. Kubuntu 19.10, .deb install, tried versions 0.2.5 and 0.2.1. In Jupyter about window I have Python 3.7.5, notebook version 6.0.2

cornobils avatar Dec 16 '19 17:12 cornobils