Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Check-in [6f0655d209]

Overview
Comment:Cover ImportError with custom explanation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6f0655d2095f523792390e05f3bc96428e1229ac
User & Date: mario on 2020-12-12 14:16:05
Other Links: manifest | tags
Context
2020-12-12
14:17
Fix `format_exc(e)` itself causing an exception, and add explanation in `pq` wrapper which was supposed to mask import errors. check-in: ef4ea389f1 user: mario tags: trunk
14:16
Cover ImportError with custom explanation check-in: 6f0655d209 user: mario tags: trunk
2020-10-31
16:59
select: is now preparsed in pluginconf (but configwin/combobox expected tuple-list instead of dict till now; might need further changes) check-in: 8d130efe89 user: mario tags: trunk
Changes

Modified bin from [e021ede091] to [5aceecd7bb].

1
2
3
4
5
6
7
8
9
10
11

12
13







#!/usr/bin/env python
# api: cli
# type: wrapper
# title: streamtuner2
# pack: bin=/usr/bin/streamtuner2
#
# Invocation script for /usr/share/streamtuner2/st2.py

import sys, os
sys.path.insert(0, "/usr/share/streamtuner2")


import st2
st2.main()


















>
|
|
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
# api: cli
# type: wrapper
# title: streamtuner2
# pack: bin=/usr/bin/streamtuner2
#
# Invocation script for /usr/share/streamtuner2/st2.py

import sys, os
sys.path.insert(0, "/usr/share/streamtuner2")

try:
    import st2
    st2.main()
except ImportError as e:
    import traceback, re
    print(traceback.format_exc())
    name = re.findall("\w+$", e.message)[0]
    print("Alternatively try to start streamtuner2 with Python3: `python3 /usr/bin/streamtuner2`") 
    print("Else you might need to install missing modules: `pip install {}` or `pip3 install {}`\n".format(name, name))