Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cornobils opened this issue Dec 16, 2019 · 0 comments
Open

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

cornobils opened this issue Dec 16, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cornobils
Copy link

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 cornobils changed the title FunC #include not working FunC #include: failed to load "�.fc" Dec 17, 2019
@m-kus m-kus self-assigned this Dec 17, 2019
@m-kus m-kus added the bug Something isn't working label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants