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

Migrate remaining python3 packages to python310 #4998

Merged
merged 23 commits into from
Jan 2, 2022

Conversation

th0ma7
Copy link
Contributor

@th0ma7 th0ma7 commented Dec 13, 2021

Motivation: Migrate remaining python3 (3.7.x) and python38 packages to python310.
Linked issues: Follow-up to #4986

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

To migrate

@publicarray
Copy link
Member

publicarray commented Dec 13, 2021

Just a kind reminder to Please check open PRs e.g salt has a major one that I think is good to merge. And bazar

@th0ma7
Copy link
Contributor Author

th0ma7 commented Dec 13, 2021

Just a kind reminder to Please check open PRs e.g salt has a major one that I think is good to merge. And bazar

Thnx, good points. I wasn't able to find bazar anywhere though.

@th0ma7 th0ma7 self-assigned this Dec 13, 2021
@smaarn
Copy link
Contributor

smaarn commented Dec 13, 2021

Just a kind reminder to Please check open PRs e.g salt has a major one that I think is good to merge. And bazar

Thnx, good points. I wasn't able to find bazar anywhere though.

Bazarr just made it to the master a couple of weeks ago.
There is one concern though: it has not been tested on Python 3.10 according to the developer's page. You may be facing unexpected issues.

@hgy59 hgy59 mentioned this pull request Dec 13, 2021
10 tasks
@publicarray
Copy link
Member

Thanks for the info. I mean this version bump #4992

@th0ma7
Copy link
Contributor Author

th0ma7 commented Dec 13, 2021

Bazarr just made it to the master a couple of weeks ago. There is one concern though: it has not been tested on Python 3.10 according to the developer's page. You may be facing unexpected issues.

@smaarn thnx for the info. I noticed the bazarr 1.0.1 pending PR (thnx to @publicarray). Similar to salt, once merged I could dive into it to prepare the migration towards python310 for you to test? I also noticed the soon to be released 1.0.2 (currently at beta6), perhaps this solves compatibility issues with python310?

@smaarn
Copy link
Contributor

smaarn commented Dec 14, 2021

Bazarr just made it to the master a couple of weeks ago. There is one concern though: it has not been tested on Python 3.10 according to the developer's page. You may be facing unexpected issues.

@smaarn thnx for the info. I noticed the bazarr 1.0.1 pending PR (thnx to @publicarray). Similar to salt, once merged I could dive into it to prepare the migration towards python310 for you to test? I also noticed the soon to be released 1.0.2 (currently at beta6), perhaps this solves compatibility issues with python310?

@th0ma7 I will be checking if it does fix any compatibility issue explicitely but either way I remain at your disposal to test upgrade.

@smaarn
Copy link
Contributor

smaarn commented Dec 18, 2021

Bazarr just made it to the master a couple of weeks ago. There is one concern though: it has not been tested on Python 3.10 according to the developer's page. You may be facing unexpected issues.

@smaarn thnx for the info. I noticed the bazarr 1.0.1 pending PR (thnx to @publicarray). Similar to salt, once merged I could dive into it to prepare the migration towards python310 for you to test? I also noticed the soon to be released 1.0.2 (currently at beta6), perhaps this solves compatibility issues with python310?

@th0ma7 I will be checking if it does fix any compatibility issue explicitely but either way I remain at your disposal to test upgrade.

@th0ma7 sorry for the delays. Just checked the changelogs for the ongoing 1.0.2 beta and it seems that the job has been started but it's not supported "as of now". I remain at your disposal to test any beta version you wish to propose (or I can start the migration in its own stream if you prefer).

@th0ma7
Copy link
Contributor Author

th0ma7 commented Dec 19, 2021

@smaarn I had a few cycles to play with it today and was able using latest 1.0.2-beta9 to get it working with python310. Mind having a try? I can provide packages as needed.

@th0ma7 th0ma7 force-pushed the python38-others branch 2 times, most recently from 2000421 to b9f5a63 Compare December 19, 2021 22:07
@th0ma7 th0ma7 changed the title [WIP] Migrate remaining python3 packages to python310 Migrate remaining python3 packages to python310 Dec 20, 2021
@th0ma7
Copy link
Contributor Author

th0ma7 commented Dec 23, 2021

@smaarn friendly reminder, now updated using latest beta10 for you to test out. Again thnx in advance and happy holiday season!

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

@smaarn friendly reminder, now updated using latest beta10 for you to test out. Again thnx in advance and happy holiday season!

I will be having a look. Do you mind going for the 1.0.2-beta-11 version instead (I'm doing it locally already and can commit but don't want to interfere with your work) ?(https://github.com/morpheus65535/bazarr/releases/tag/v1.0.2-beta.11 => I actually use Addic7ed :D )

@th0ma7
Copy link
Contributor Author

th0ma7 commented Dec 24, 2021

@smaarn I was actually hoping a final release would happen before I merge. In the meantime beta11 commit done!

And? is it working all right?

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

@smaarn I was actually hoping a final release would happen before I merge. In the meantime beta11 commit done!

And? is it working all right?

@th0ma7 totally in line with the only releasing when 1.0.2 official release is there. Actually I am still trying to build on my (very old) mac so I'll be taking whichever comes first between github and my local :D Should be able to tell you if there's anything wrong by EOD.

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

@smaarn I was actually hoping a final release would happen before I merge. In the meantime beta11 commit done!

And? is it working all right?

There seems to be an issue on my end with numpy which fails loading upon start. Checking.

Fri Dec 24 15:17:58 CET 2021
Starting bazarr command env LANG=en_US.UTF-8 LC_ALL=en_US.utf8 /volume1/@appstore/bazarr/env/bin/python3 /volume1/@appstore/bazarr/share/bazarr/bazarr.py --no-update --config /volume1/@appdata/bazarr/data  
Traceback (most recent call last):
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/main.py", line 31, in <module>
    from get_series import *
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_series.py", line 12, in <module>
    from get_episodes import sync_episodes
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_episodes.py", line 12, in <module>
    from get_subtitle import episode_download_subtitles
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_subtitle.py", line 35, in <module>
    from subsyncer import subsync
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/subsyncer.py", line 3, in <module>
    from ffsubsync.ffsubsync import run, make_parser
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/../libs/ffsubsync/__init__.py", line 21, in <module>
    from .ffsubsync import main  # noqa
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 11, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
Python version greater than 3.8.x is unsupported. Current version is 3.10.0. Keep in mind that even if it works, you're on your own.
Bazarr starting...
Bazarr exited.

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

@smaarn I was actually hoping a final release would happen before I merge. In the meantime beta11 commit done!
And? is it working all right?

There seems to be an issue on my end with numpy which fails loading upon start. Checking.

Fri Dec 24 15:17:58 CET 2021
Starting bazarr command env LANG=en_US.UTF-8 LC_ALL=en_US.utf8 /volume1/@appstore/bazarr/env/bin/python3 /volume1/@appstore/bazarr/share/bazarr/bazarr.py --no-update --config /volume1/@appdata/bazarr/data  
Traceback (most recent call last):
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/main.py", line 31, in <module>
    from get_series import *
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_series.py", line 12, in <module>
    from get_episodes import sync_episodes
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_episodes.py", line 12, in <module>
    from get_subtitle import episode_download_subtitles
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_subtitle.py", line 35, in <module>
    from subsyncer import subsync
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/subsyncer.py", line 3, in <module>
    from ffsubsync.ffsubsync import run, make_parser
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/../libs/ffsubsync/__init__.py", line 21, in <module>
    from .ffsubsync import main  # noqa
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 11, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
Python version greater than 3.8.x is unsupported. Current version is 3.10.0. Keep in mind that even if it works, you're on your own.
Bazarr starting...
Bazarr exited.

https://github.com/numpy/numpy/releases/tag/v1.21.5 => We may need to upgrade numpy. Checking for more details.

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

@smaarn I was actually hoping a final release would happen before I merge. In the meantime beta11 commit done!
And? is it working all right?

There seems to be an issue on my end with numpy which fails loading upon start. Checking.

Fri Dec 24 15:17:58 CET 2021
Starting bazarr command env LANG=en_US.UTF-8 LC_ALL=en_US.utf8 /volume1/@appstore/bazarr/env/bin/python3 /volume1/@appstore/bazarr/share/bazarr/bazarr.py --no-update --config /volume1/@appdata/bazarr/data  
Traceback (most recent call last):
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/main.py", line 31, in <module>
    from get_series import *
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_series.py", line 12, in <module>
    from get_episodes import sync_episodes
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_episodes.py", line 12, in <module>
    from get_subtitle import episode_download_subtitles
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/get_subtitle.py", line 35, in <module>
    from subsyncer import subsync
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/subsyncer.py", line 3, in <module>
    from ffsubsync.ffsubsync import run, make_parser
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/../libs/ffsubsync/__init__.py", line 21, in <module>
    from .ffsubsync import main  # noqa
  File "/volume1/@appstore/bazarr/share/bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 11, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
Python version greater than 3.8.x is unsupported. Current version is 3.10.0. Keep in mind that even if it works, you're on your own.
Bazarr starting...
Bazarr exited.

https://github.com/numpy/numpy/releases/tag/v1.21.5 => We may need to upgrade numpy. Checking for more details.

... We enter uncharted territories...

===>  Compiling for numpy
setup.py:63: RuntimeWarning: NumPy 1.21.5 may not yet support Python 3.10.
  warnings.warn(

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

It seems that the current outcome for bazarr package doesn't actually work as it tries to build native wheels when installing. There must be something odd with the way the wheels are being shipped here. As it doesn't seem to "see" them.

@smaarn
Copy link
Contributor

smaarn commented Dec 24, 2021

It seems that the current outcome for bazarr package doesn't actually work as it tries to build native wheels when installing. There must be something odd with the way the wheels are being shipped here. As it doesn't seem to "see" them.

@th0ma7 to conclude (keeping in mind that I'm installing on an x64 Synology DSM 7 NAS):

  1. Python 3.10 seems to be OK (by tweaking the build and the installation process for the wheels it seemed to work)
  2. We may need to upgrade numpy but could be challenged
  3. The way wheels are being installed seem to no longer be working

Would need a little bit more time to investigate upon 3rd point. If there is no urgency I should be able to do that next week.

@th0ma7
Copy link
Contributor Author

th0ma7 commented Dec 24, 2021

It seems that the current outcome for bazarr package doesn't actually work as it tries to build native wheels when installing. There must be something odd with the way the wheels are being shipped here. As it doesn't seem to "see" them.

It's the expected outcome: pure python wheel are downloaded online (and built locally when unavailable). Only cross-compiled wheels are now provided. That being said, we can workaround that and enforce building + packaging of pure-python wheels as well.

When I tested it on kvmx64 install was all good. I'll have to double-check and I'll check as well on armv7 and armv5 to confirm the actual behavior.

@th0ma7
Copy link
Contributor Author

th0ma7 commented Jan 2, 2022

@smaarn rebased against master which now includes your latest changes. Hopefully issues are now all solved. Let me know how things turn out while re-testing bazarr. Thnx!

spk/fishnet/Makefile Outdated Show resolved Hide resolved
@smaarn
Copy link
Contributor

smaarn commented Jan 2, 2022

@smaarn rebased against master which now includes your latest changes. Hopefully issues are now all solved. Let me know how things turn out while re-testing bazarr. Thnx!

I can confirm it works like a charm !

Copy link
Contributor

@smaarn smaarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talking about the bazarr side, as far as I'm concerned, it seems to be working fine.

Co-authored-by: hgy59 <hpgy59@gmail.com>
@th0ma7
Copy link
Contributor Author

th0ma7 commented Jan 2, 2022

Talking about the bazarr side, as far as I'm concerned, it seems to be working fine.

Perfect, and thnx for your help, much appreciated!

@th0ma7 th0ma7 merged commit 95fe355 into SynoCommunity:master Jan 2, 2022
@th0ma7 th0ma7 deleted the python38-others branch January 2, 2022 21:22
@publicarray
Copy link
Member

publicarray commented Jan 2, 2022

Besides, beets have any of them been published? I'm also referring to: #4986 the label says status/published but I don't think I can find them

@publicarray
Copy link
Member

Good work on getting everything upgraded to python 3.10! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants