Please Help me with this error message

65 views
Skip to first unread message

мджімe

unread,
Oct 19, 2023, 12:37:10 PM10/19/23
to autopkgr-discuss
Hello Everyone,

i'm just starting to use Autopkgr and i<ve jsut installed the software on a server.
i got this error message trying to add repos on my mac:

A Python exception occurred during the execution of autopkg, see the system log for more details. [ERROR] AttributeError: module 'autopkglib.prefs' has no attribute 'prefs'.

Any advice will be welcomed, 

thanks 

Elliot Jordan

unread,
Oct 19, 2023, 3:49:50 PM10/19/23
to мджімe, autopkgr-discuss
Hello,

Could you share what you were doing when you saw this error? Which specific recipe was running at the time? What do you see in your log output? What other troubleshooting steps have you tried?

Thank you,

Elliot


--
You received this message because you are subscribed to the Google Groups "autopkgr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkgr-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autopkgr-discuss/c8327a98-39dc-4122-80b6-36b2b9ea900bn%40googlegroups.com.

мджімe

unread,
Oct 19, 2023, 4:11:34 PM10/19/23
to autopkgr-discuss
Hello Elliot,

Thanks for your help,

i was trying to install this recipe : https://github.com/autopkg/recipes.git

i don't really know where to find the logs.

i've uninstalled Autopkgr and reinstalled but same error.
Thanks

Screen Shot 2023-10-19 at 4.08.50 PM.png

Elliot Jordan

unread,
Oct 19, 2023, 7:42:50 PM10/19/23
to мджімe, autopkgr-discuss
That URL points to a repository, so you were probably trying to add the repo instead of run a particular recipe. Whenever AutoPkgr produces an error, it's usually helpful to remove the UI from the equation and try the AutoPkg command line tool directly. So, what happens when you run this in Terminal?


Elliot

мджімe

unread,
Oct 19, 2023, 7:47:40 PM10/19/23
to Elliot Jordan, autopkgr-discuss
Hello Elliot,

When i run the command i have this result :

Traceback (most recent call last):

  File "/usr/local/bin/autopkg", line 37, in <module>

    from autopkgcmd import common_parse, gen_common_parser, search_recipes

  File "/Library/AutoPkg/autopkgcmd/__init__.py", line 15, in <module>

    from autopkgcmd.opts import common_parse, gen_common_parser

  File "/Library/AutoPkg/autopkgcmd/opts.py", line 18, in <module>

    from autopkglib import globalPreferences

  File "/Library/AutoPkg/autopkglib/__init__.py", line 1105, in <module>

    import_processors()

  File "/Library/AutoPkg/autopkglib/__init__.py", line 978, in import_processors

    globals()[name] = getattr(

AttributeError: module 'autopkglib.prefs' has no attribute 'prefs'




i have to say i'm following this video as a tutorial :

 https://www.youtube.com/watch?v=sL4xfI2Dxuo&t=1154s


Thanks for your kind help

Elliot Jordan

unread,
Oct 19, 2023, 11:00:45 PM10/19/23
to мджімe, autopkgr-discuss
What version of AutoPkg and Python do you have installed?

/usr/local/bin/autopkg version
/usr/local/autopkg/python --version

Have you tried reinstalling the latest stable release of AutoPkg (as of now, that's 2.7.2)?

Elliot


мджімe

unread,
Oct 20, 2023, 8:31:33 AM10/20/23
to Elliot Jordan, autopkgr-discuss
Hello Elliot,

I already have the 2.7.2 installed manually but autopkgr keep telling me there an update.

Even if I do the update via autopkgr.

Thanks 


image0.jpeg

Le 19 oct. 2023 à 23:00, Elliot Jordan <ell...@elliotjordan.com> a écrit :


Hello Elliot,
<Screen Shot 2023-10-19 at 4.08.50 PM.png>


Elliot Jordan

unread,
Oct 20, 2023, 12:26:44 PM10/20/23
to мджімe, autopkgr-discuss
Again, it's useful to keep AutoPkgr out of this. The error you're encountering appears to be reproducible outside of AutoPkgr, so involving AutoPkgr may only confuse the discovery of the root cause.

Please try these steps in order:
1. Install AutoPkg 2.7.2 (not using AutoPkgr).
2. Run `autopkg repo-add recipes`
3. Try running a recipe: `autopkg run -vv FirefoxSignedPkg.download`

If those don't work, please open an issue on the AutoPkg issues page with details about your issue, OS version, and other facts. Thank you,

Elliot

Reply all
Reply to author
Forward
0 new messages