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

Possible conflict of versions in requirements.txt? #4

Open
rylincoln opened this issue Apr 29, 2021 · 4 comments
Open

Possible conflict of versions in requirements.txt? #4

rylincoln opened this issue Apr 29, 2021 · 4 comments

Comments

@rylincoln
Copy link

rylincoln commented Apr 29, 2021

Hi. Thanks for writing this software. I set it up years ago for a team and they love it. I was migrating the tool over to a new server (Windows 2019 Datacenter) and I couldn't get the first command we run after initial setup to execute. python manage recreate_db would always return an AttributeError can't set attribute coming from flask.

I ended up resolving it by updating versions of flask-sqlalchemy and sqlalchemy to latest versions than what are defined in the requirements.txt file.

Just wanted to put this out there if someone else runs into this issue.

Cheers

@ishiland
Copy link
Owner

@rylincoln thanks for the report. Unfortunately I don't have access to a license server so its difficult for me to reproduce the issue. If your change passes the tests, ill gladly accept a PR.

@rylincoln
Copy link
Author

Sure thing, - i'll work on running the tests and repot back once i get lmutil.exe talking to the license server (pretty sure this is an internal IT issue).

@geographic-technologies-group

@rylincoln & @ishiland - I also experienced the "AttributeError can't set attribute" error described. This was on a Windows 2019 server and a License Manager at version 2020.0.

Updating the versions of flask-sqlalchemy and sqlalchemy to latest versions also resolved the issue for me.

I'm going to log another issue as I believe there have been changes to the structure of the FlexNet response that cause the app to improperly identify the License Server as being down.

@tylerschlachter
Copy link
Contributor

With Flask-SQLAlchemy==2.4.1:

SQLAlchemy==1.4.41 fails with AttributeError can't set attribute

SQLAlchemy == 1.3.24 works

@geographic-technologies-group - I agree that the FlexNet response has likely changed. I made a PR with a slightly more flexible app.read_licenses.parse_server_info that may fix the issue for you.

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