Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Webbrowser error
-
I get this error a lot in the new version of pythonista imgur
Here is the code snippet
webbrowser.open('workflow://run-workflow?name=DownTube&input='+audio+titulo)
-
Can you please put this line just above the line that has
webbrowser.open()
and then tell us what gets printed to the console?print(dir(webbrowser))
-
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/1A6C229C-4CF9-474A-A317-BE4422169DF1/Documents/webbrowser.py", line 279, in webview_did_finish_load self.set_url() File "/private/var/mobile/Containers/Shared/AppGroup/1A6C229C-4CF9-474A-A317-BE4422169DF1/Documents/webbrowser.py", line 30, in set_url addr_bar.text = self.parse_url(url) File "/private/var/mobile/Containers/Shared/AppGroup/1A6C229C-4CF9-474A-A317-BE4422169DF1/Documents/webbrowser.py", line 20, in parse_url return urlparse.urlparse(url).netloc AttributeError: 'NoneType' object has no attribute 'urlparse' Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/1A6C229C-4CF9-474A-A317-BE4422169DF1/Documents/webbrowser.py", line 279, in webview_did_finish_load self.set_url() File "/private/var/mobile/Containers/Shared/AppGroup/1A6C229C-4CF9-474A-A317-BE4422169DF1/Documents/webbrowser.py", line 30, in set_url addr_bar.text = self.parse_url(url) File "/private/var/mobile/Containers/Shared/AppGroup/1A6C229C-4CF9-474A-A317-BE4422169DF1/Documents/webbrowser.py", line 20, in parse_url return urlparse.urlparse(url).netloc AttributeError: 'NoneType' object has no attribute 'urlparse'
-
uhh, are you writing your own webbrowser.py! Don't shadow builtin module names...
Also, the error you posted isn't the same as the traceback. Do you have a link to the source of the webbrowser.py that you are using? It seems to be setting urlparse to None...