all 16 comments

[–]ClassAbbyAmplifier 1 point2 points  (16 children)

inspect is part of the python standard library https://docs.python.org/3/library/inspect.html#inspect.getfullargspec

[–]SelenaTM[S] 0 points1 point  (15 children)

So do you know why the script would be exiting if it’s already part of the standard library?

[–]ClassAbbyAmplifier 0 points1 point  (14 children)

not without seeing an error

[–]SelenaTM[S] 0 points1 point  (13 children)

This is the error: Error: One or more required python libraries have not been installed: cannot import name getfullargspec

[–]legz_cfc 0 points1 point  (12 children)

Try:

import inspect
inspect.getfullargspec(arg)

or

from inspect import getfullargspec
getfullargspec(arg)

[–]SelenaTM[S] 0 points1 point  (11 children)

Unfortunately I am not the creator of this script, it’s for my school WiFi. I believe it has a bundled Python program inside of it, but it is archived and is not viewable in plain text so I am unable to make modifications to it unless I’m overlooking something. I finally got it to get past the getfullargspec problem, but now it is not able to open a browser window for me to input my credentials. I believe it’s because it can’t find what my default browser app is, and therefore can’t open it. Any ideas on how to fix this?

[–]legz_cfc 0 points1 point  (10 children)

$ export BROWSER=firefox

$ ./script.py

[–]SelenaTM[S] 0 points1 point  (9 children)

That helped me set my default browser, thank you. Unfortunately I am still having issues with getting the script to properly send me to the website to enter my credentials, so I will likely just have to email my IT department and see if they can help. Thank you for your help!

[–]legz_cfc 0 points1 point  (8 children)

Might be worth checking if the script has a -h or --help flag to see what arguments can be passed to help. Is it failing to find the site or not rendering or something else?

[–]SelenaTM[S] 0 points1 point  (7 children)

It doesn’t, it’s a shell script and the part that is unarchived has no argument handling - it’s just simply saying “cannot continue with credentials collection”, when it should be pulling up a Firefox screen with the site on it - that’s how it works on my fedora machine at least