ArneBachmann / sos

Subversion Offline Solution
https://sos-vcs.net
Mozilla Public License 2.0
6 stars 1 forks source link

Error when I just get started #297

Open infoneto-shmuel opened 4 years ago

infoneto-shmuel commented 4 years ago

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 = callfunc(*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>

ArneBachmann commented 4 years ago

Hi, thanks for trying out SOS! The bug seems to be the assumption that a font is available, but isn't and needs wrapping the error.

The SOS code has developed into a state that is close to unmaintainable sadly. Using Coconut as a development language makes the development cycle very slow and the software became much too complex over time to work effectively on. I have a ton of bugs that require massive restructuring of the code.

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.

gorvin commented 4 years ago

@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.

ArneBachmann commented 4 years ago

I'm not sure what caused the error - could you try again?

pip install -U sos-vcs
sos offline