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

Figlet is no longer working #35

Open
syrusakbary opened this issue Apr 9, 2022 · 4 comments
Open

Figlet is no longer working #35

syrusakbary opened this issue Apr 9, 2022 · 4 comments

Comments

@syrusakbary
Copy link
Member

syrusakbary commented Apr 9, 2022

Figlet is no longer working:

wapm install syrusakbary/figlet
figlet "Hello"

This should return:

 _   _      _ _       _ 
| | | | ___| | | ___ | |
| |_| |/ _ \ | |/ _ \| |
|  _  |  __/ | | (_) |_|
|_| |_|\___|_|_|\___/(_)

But it returns:

figlet: standard: Unable to open font file

(figlet was working before, I believe the clang/zig fixes might have broken it)

@syrusakbary
Copy link
Member Author

Python also stopped working:

$ wapm install python/python
$ python -c "for i in range(10): print(f'The square of {i} is {i*i}')"
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00000000 (most recent call first):

@john-sharratt
Copy link
Collaborator

Ah seems i've introduced a regress issue - will look into it - thanks

@john-sharratt
Copy link
Collaborator

Fixed

I first tried to use map_dir in wasmer for this but there appears to be a bug in there somewhere which I can't trace down - went for a compromise and only use map_dir in scenarios that I don't cover with the virtual file system.

tokera.sh:/$ wapm install syrusakbary/figlet
[INFO] Installing syrusakbary/figlet@0.0.1
Package installed successfully to wapm_packages!
tokera.sh:/$ figlet "Hello"
 _   _      _ _       
| | | | ___| | | ___  
| |_| |/ _ \ | |/ _ \ 
|  _  |  __/ | | (_) |
|_| |_|\___|_|_|\___/ 
                      
tokera.sh:/$ 

@john-sharratt
Copy link
Collaborator

Also tested the python application

tokera.sh:/$ wapm install python/python
[INFO] Installing python/python@0.1.0
Package installed successfully to wapm_packages!
tokera.sh:/$ python -c "for i in range(10): print(f'The square of {i} is {i*i}')"
The square of 0 is 0
The square of 1 is 1
The square of 2 is 4
The square of 3 is 9
The square of 4 is 16
The square of 5 is 25
The square of 6 is 36
The square of 7 is 49
The square of 8 is 64
The square of 9 is 81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants