-
Notifications
You must be signed in to change notification settings - Fork 94
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
added a new python script that could run on windows #86
base: master
Are you sure you want to change the base?
Conversation
also changed the environment to python instead of python3 (viz for mac/linux systems)
This reverts commit f41c244.
Hello @UrAmico3000, as mentioned in the pre-release notice, v2.0.0 was released today. The DeviceType Library Import script has been updated to version 2, bringing performance improvements, enhanced logging, and other upgrades. We have bumped the release by a major version due to the significant changes to the codebase. Thus, you will need to reevaluate how your PR is written and what files have been modified. I would be glad to assist if needed. Also, as a note for next time; please create a FR in the issues tab before creating a PR. This allows for better tracking and serves as a conversation place so that the PR doesn't get cluttered. Thank you. |
@danner26 I have tested it against the
Changing the file reading mode to "read bytes" seems to fix the issue, as I suggested in the slack chat. In the pre-release branch, its in the repo.py file in DTL parse_file method.
I can successfully import all the devices after the suggested modification and tested it on both mac and windows. @UrAmico3000 As for changing the shebang line, I'm not sure, if we should change it to python. For folks running this on a global env with python2 installed, that is gonna be problem. I suggest we rather update the documentation to use Since its minor change, I'm not creating a PR for now. @danner26 Let me know you want me to create an issue and close it with a PR. |
Still learning to use Github, so not sure where this would go. I was having encoding issues on my windows 11 PC and fixed it by doing the following: change line 88 of repo.py: After doing that, was able to run the script without any issues. |
python3
(viz for mac) topython
so that the script can be executed using./