Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] TypeError: attrib() got an unexpected keyword argument 'factory' #159

Closed
radub7 opened this issue Apr 22, 2020 · 6 comments
Closed

Comments

@radub7
Copy link

radub7 commented Apr 22, 2020

I run Ubuntu 18.04.4 and I've downloaded the 2.8.0 tarball. When I try to run it , I get the errors below:

PySolFC: WARNING: config file: validation error: section: "general", key: "language"
Traceback (most recent call last):
  File "./pysol.py", line 41, in <module>
    sys.exit(main(sys.argv))
  File "/home/radub7/PySolFC-2.8.0/pysollib/main.py", line 422, in main
    r = pysol_init(app, args)
  File "/home/radub7/PySolFC-2.8.0/pysollib/main.py", line 237, in pysol_init
    import pysollib.games
  File "/home/radub7/PySolFC-2.8.0/pysollib/games/__init__.py", line 23, in <module>
    from . import acesup  # noqa: F401
  File "/home/radub7/PySolFC-2.8.0/pysollib/games/acesup.py", line 23, in <module>
    from pysollib.game import Game
  File "/home/radub7/PySolFC-2.8.0/pysollib/game/__init__.py", line 266, in <module>
    class StackGroups(NewStruct):
  File "/home/radub7/PySolFC-2.8.0/pysollib/game/__init__.py", line 267, in StackGroups
    dropstacks = attr.ib(factory=list)
TypeError: attrib() got an unexpected keyword argument 'factory'```
@shlomif
Copy link
Owner

shlomif commented Apr 22, 2020

Hi @radub7 ! You likely need to upgrade attrs. Try running pip3 install --user --upgrade attrs.

@radub7
Copy link
Author

radub7 commented Apr 22, 2020

Yes, that was the problem! Thank you @shlomif

@radub7 radub7 changed the title TypeError: attrib() got an unexpected keyword argument 'factory' [SOLVED] TypeError: attrib() got an unexpected keyword argument 'factory' Apr 22, 2020
@radub7 radub7 closed this as completed Apr 22, 2020
@shlomif
Copy link
Owner

shlomif commented Apr 22, 2020

I'm reopening this issue due to the first tip in this essay - the one about fixing user problems permanently.

@shlomif shlomif reopened this Apr 22, 2020
shlomif added a commit that referenced this issue Apr 22, 2020
See: #159 . Thanks to
@radub7 for the report.
shlomif added a commit that referenced this issue May 6, 2020
See: #159 . Thanks to
@radub7 for the report.
@sergiomb2
Copy link
Contributor

Hello,
I hit this problem on Centos 7 , I don't think I can update python-attrs on EPEL 7 , because EL7 is near EOL (more or less in 2 years) and people don't want hear about it .
So can we workaround PySolFC-2.15.0 to not use factory and just use it on EL 7 ? or should I go back to PySolFC-2.14.0 on EPEL 7 ?

Thank you

https://src.fedoraproject.org/rpms/python-attrs/commits/epel7

@sergiomb2
Copy link
Contributor

huch , I just checked and PySolFC-2.8.0-2.el7 already requires python-attrs 18.2.0

@joeraz
Copy link
Collaborator

joeraz commented Jul 16, 2022

This looks like it's been fixed with the attrs version requirement, so closing this for now.

@joeraz joeraz closed this as completed Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants