-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error when I just get started #297
Comments
Hi, thanks for trying out SOS! The SOS code has developed into a state that is close to unmaintainable sadly. So I will try to provide a bug fix to let you test SOS as soon as possible. It's still a cool project but requires a lot of love to become stable. |
@infoneto-shmuel As a workaround, you can download figlet fonts from here http://www.jave.de/figlet/figletfonts40.zip and unzip it. You'll got files with extension .flf but these are actually again .zip archives. For every font that you need, rename the file to be with .zip extension and unzip it to pyfiglet fonts directory. In my case that directory was c:\programdata\python37\lib\site-packages\pyfiglet\fonts. Needed fonts were modular.flf and nscript.flf and santaclara.flf. |
I'm not sure what caused the error - could you try again?
|
I installed the project like it is explained in the basic tutorial, and it crashes with this message:
Microsoft Windows [Version 10.0.17134.1365]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\dell1\Documents\Tests\realestate-sunamount-master>sos offline
[EXIT An internal error occurred in SOS.]
Please report above message to the project maintainer at https://github.com/ArneBachmann/sos/issues via 'New Issue'.
Please state your installed version via 'sos version', and what you were doing.
modular
Traceback (most recent call last):
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\sos.py", line 1547, in parse
offline(arguments[0], arguments[1], options, remotes) # line 1296
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\sos.py", line 685, in offline
title = usage.getTitle() # type: coconut.typing.Optional[str] # line 561
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos_coconut.py", line 53, in tail_call_optimized_func
result = call_func(*args, **kwargs) # pass --no-tco to clean up your traceback
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\usage.py", line 134, in getTitle
text, font = getTitleFont(APP, width=pure.termWidth) # line 465
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\usage.py", line 122, in getTitleFont
x = sorted((t for t in [(max((len() for _ in Figlet(font=f, width=999).renderText(text).split("\n"))), f) for f in ["big", "modular", "bell", "nscript", "pebbles", "puffy", "roman", "rounded", "santaclara", "script", "small", "soft", "standard", "univers", "thin"]] if t[0] <= width)) # type: List[Tuple[int, str]] # line 457
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\usage.py", line 122, in
x = sorted((t for t in [(max((len() for _ in Figlet(font=f, width=999).renderText(text).split("\n"))), f) for f in ["big", "modular", "bell", "nscript", "pebbles", "puffy", "roman", "rounded", "santaclara", "script", "small", "soft", "standard", "univers", "thin"]] if t[0] <= width)) # type: List[Tuple[int, str]] # line 457
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\pyfiglet_init_.py", line 794, in init
self.setFont()
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\pyfiglet_init_.py", line 801, in setFont
self.Font = FigletFont(font=self.font)
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\pyfiglet_init_.py", line 126, in init
self.data = self.preloadFont(font)
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\pyfiglet_init_.py", line 147, in preloadFont
raise FontNotFound(font)
pyfiglet.FontNotFound: modular
File "C:\Users\dell1\AppData\Local\Programs\Python\Python36-32\Scripts\sos-script.py", line 11, in
load_entry_point('sos-vcs==2019.1220.3154', 'console_scripts', 'sos')()
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\sos.py", line 1586, in main
parse(vcs, cwd, cmd) # line 1325
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\sos.py", line 1566, in parse
Exit("An internal error occurred in SOS\nPlease report above message to the project maintainer at https://github.com/ArneBachmann/sos/issues via 'New Issue'.\nPlease state your installed version via 'sos version', and what you were doing.", excp=E) # line 1307
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\utility.py", line 361, in Exit
lines = (message + ("" if excp is None else ("\n" + exception(excp)))).replace("\r", "\n").split("\n") # type: List[str] # line 254
File "c:\users\dell1\appdata\local\programs\python\python36-32\lib\site-packages\sos\utility.py", line 382, in exception
return str(E) + "\n" + traceback.format_exc() + "\n" + "".join(traceback.format_list(traceback.extract_stack())) # line 274
C:\Users\dell1\Documents\Tests\realestate-sunamount-master>
The text was updated successfully, but these errors were encountered: