-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Build from source fails (Void Linux xbps template file) #165
Comments
Thanks for testing and sharing the logs. Python 3.12 (today) is the latest version and early release. wxPython (wxWidgets) recently fixed some issue with cython and sip Try compile only wxPython from the source in GitHub in your GNU/Linux OS Other alternative is find the binary wheel of wxPython for your default Python in your system If you look in the README.md Notes can see how compile wxPython in other distros |
@oleksis I have these packages at my disposal from the repo. Can any of these help?
|
Can help…
Try in your distro. If have some issues please try compile |
OK, will try all of what you mentioned, will report back. |
@oleksis OK, I managed to get wheel for wxPython 4.2.1 built from source after I did a few more modifications to the template file (patches to source files). I went this route since I thought it's probably the most painless one, regarding template changes and all that. Plus, I believe it should work. And it seemed like an almost win 😆, but it failed, right at the end it seems 😄 .
Any suggestions? |
@MechDR Thanks for the feedback. From the logs look like when run tool for linting Is in the plans for the next release test the code base with the new tools 🧰 |
@oleksis I managed to fix those syntax errors as well, so now, wheel for wxPython 4.2.1 builds successfully. But, I have other problems now... Successfully built pyyaml wxpython
Installing collected packages: distlib, typing-extensions, tokenize-rt, pyyaml, pypubsub, pyproject-api, pyflakes, pycodestyle, pluggy, platformdirs, pipdeptree, pillow, pathspec, nodeenv, mypy-extensions, mccabe, lxml, isort, iniconfig, identify, filelock, coverage, colorama, chardet, cfgv, cachetools, attrs, wxpython, virtualenv, pyupgrade, pytest, pip-tools, mypy, flake8, black, tox, pytest-cov, pre-commit
Attempting uninstall: pip-tools
Found existing installation: pip-tools 7.3.0
Uninstalling pip-tools-7.3.0:
Successfully uninstalled pip-tools-7.3.0
Successfully installed attrs-23.1.0 black-23.1.0 cachetools-5.3.2 cfgv-3.4.0 chardet-5.2.0 colorama-0.4.6 coverage-7.3.4 distlib-0.3.8 filelock-3.13.1 flake8-6.0.0 identify-2.5.33 iniconfig-2.0.0 isort-5.12.0 lxml-4.9.4 mccabe-0.7.0 mypy-1.0.0 mypy-extensions-1.0.0 nodeenv-1.8.0 pathspec-0.12.1 pillow-10.1.0 pip-tools-6.12.2 pipdeptree-2.3.3 platformdirs-4.1.0 pluggy-1.3.0 pre-commit-3.0.4 pycodestyle-2.10.0 pyflakes-3.0.1 pyproject-api-1.6.1 pypubsub-4.0.3 pytest-7.2.1 pytest-cov-4.0.0 pyupgrade-3.3.1 pyyaml-5.3.1 tokenize-rt-5.2.0 tox-4.4.4 typing-extensions-4.9.0 virtualenv-20.25.0 wxpython-4.2.1
python3 -m black .
All done! ✨ 🍰 ✨
39 files left unchanged.
python3 -m flake8
python3 -m pytest --cov-report term-missing --cov=youtube_dl_gui tests/ -vv
============================= test session starts ==============================
platform linux -- Python 3.12.1, pytest-7.2.1, pluggy-1.3.0 -- /builddir/yt-dlg-1.8.5/youtube-dl-gui-1.8.5/venv/bin/python3
cachedir: .pytest_cache
rootdir: /builddir/yt-dlg-1.8.5/youtube-dl-gui-1.8.5
plugins: cov-4.0.0
collecting ... collected 131 items
tests/test_1_ClipDialog.py::TestClipDialog::test_clean_options FAILED [ 0%]
tests/test_1_ClipDialog.py::TestClipDialog::test_clean_options_extra_args FAILED [ 1%]
tests/test_1_ClipDialog.py::TestClipDialog::test_get_timespans FAILED [ 2%]
tests/test_1_ClipDialog.py::TestClipDialog::test_get_timespans_no_exist FAILED [ 3%]
tests/test_1_ClipDialog.py::TestClipDialog::test_get_timespans_no_numbers FAILED [ 3%]
tests/test_2_ButtonsChoiceDialog.py::TestButtonsChoiceDialog::test_init_dark FAILED [ 4%]
tests/test_3_MessageDialog.py::TestMessageDialog::test_init_dark FAILED [ 5%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_append FAILED [ 6%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_append_items FAILED [ 6%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_clear FAILED [ 7%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_delete FAILED [ 8%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_get_value FAILED [ 9%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_init FAILED [ 9%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_is_list_empty_false FAILED [ 10%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_is_list_empty_true FAILED [ 11%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_is_text_empty_false FAILED [ 12%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_is_text_empty_true FAILED [ 12%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_set_selection_header FAILED [ 13%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_set_selection_item FAILED [ 14%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_set_string_selection_header FAILED [ 15%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_set_string_selection_invalid_string FAILED [ 16%]
tests/test_CustomComboBox.py::TestCustomComboBox::test_set_string_selection_item FAILED [ 16%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_add_header FAILED [ 17%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_add_item_with_prefix FAILED [ 18%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_add_item_without_prefix FAILED [ 19%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_add_items_with_prefix FAILED [ 19%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_add_items_without_prefix FAILED [ 20%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_append FAILED [ 21%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_append_items FAILED [ 22%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_clear FAILED [ 22%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_delete FAILED [ 23%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_find_string_header_found FAILED [ 24%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_find_string_header_not_found FAILED [ 25%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_find_string_item_found FAILED [ 25%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_find_string_item_not_found FAILED [ 26%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_get_string_header FAILED [ 27%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_get_string_item FAILED [ 28%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_get_string_item_negative_index FAILED [ 29%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_get_string_item_not_found FAILED [ 29%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_get_string_selection FAILED [ 30%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_get_string_selection_empty FAILED [ 31%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_insert_items FAILED [ 32%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_selection_header FAILED [ 32%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_selection_item_invalid_index FAILED [ 33%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_selection_item_valid_index FAILED [ 34%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_string_header FAILED [ 35%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_string_item FAILED [ 35%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_string_selection_header FAILED [ 36%]
tests/test_ListBoxWithHeaders.py::TestListBoxWithHeaders::test_set_string_selection_item FAILED [ 37%]
tests/test_ditem.py::TestItemInit::test_init PASSED [ 38%]
tests/test_ditem.py::TestGetFiles::test_get_files PASSED [ 38%]
tests/test_ditem.py::TestGetFiles::test_get_files_no_data PASSED [ 39%]
tests/test_ditem.py::TestItemComparison::test_equal_false PASSED [ 40%]
tests/test_ditem.py::TestItemComparison::test_equal_true PASSED [ 41%]
tests/test_ditem.py::TestSetItemStage::test_set_stage_invalid PASSED [ 41%]
tests/test_ditem.py::TestSetItemStage::test_set_stage_valid PASSED [ 42%]
tests/test_ditem.py::TestUpdateStats::test_update_stats PASSED [ 43%]
tests/test_ditem.py::TestUpdateStats::test_update_stats_empty_strings PASSED [ 44%]
tests/test_ditem.py::TestUpdateStats::test_update_stats_invalid_input PASSED [ 45%]
tests/test_ditem.py::TestUpdateStats::test_update_stats_not_string PASSED [ 45%]
tests/test_ditem.py::TestDownloadItemPrivate::test_calc_post_proc_size FAILED [ 46%]
tests/test_ditem.py::TestDownloadItemPrivate::test_set_stage PASSED [ 47%]
tests/test_ditem.py::TestReset::test_reset_active_stage PASSED [ 48%]
tests/test_ditem.py::TestReset::test_reset_completed_stage PASSED [ 48%]
tests/test_ditem.py::TestReset::test_reset_error_stage PASSED [ 49%]
tests/test_ditem.py::TestReset::test_reset_paused_stage PASSED [ 50%]
tests/test_dlist.py::TestInit::test_init PASSED [ 51%]
tests/test_dlist.py::TestInit::test_init_empty PASSED [ 51%]
tests/test_dlist.py::TestInit::test_init_invalid_args PASSED [ 52%]
tests/test_dlist.py::TestInsert::test_insert PASSED [ 53%]
tests/test_dlist.py::TestRemove::test_remove PASSED [ 54%]
tests/test_dlist.py::TestRemove::test_remove_active PASSED [ 54%]
tests/test_dlist.py::TestRemove::test_remove_not_exist PASSED [ 55%]
tests/test_dlist.py::TestFetchNext::test_fetch_next PASSED [ 56%]
tests/test_dlist.py::TestFetchNext::test_fetch_next_empty_list PASSED [ 57%]
tests/test_dlist.py::TestMoveUp::test_move_up PASSED [ 58%]
tests/test_dlist.py::TestMoveUp::test_move_up_already_on_top PASSED [ 58%]
tests/test_dlist.py::TestMoveUp::test_move_up_not_exist PASSED [ 59%]
tests/test_dlist.py::TestMoveDown::test_move_down PASSED [ 60%]
tests/test_dlist.py::TestMoveDown::test_move_down_already_on_bottom PASSED [ 61%]
tests/test_dlist.py::TestMoveDown::test_move_down_not_exist PASSED [ 61%]
tests/test_dlist.py::TestGetItem::test_get_item PASSED [ 62%]
tests/test_dlist.py::TestGetItem::test_get_item_not_exist PASSED [ 63%]
tests/test_dlist.py::TestGetLength::test_get_length PASSED [ 64%]
tests/test_dlist.py::TestGetLength::test_get_length_empty_list PASSED [ 64%]
tests/test_dlist.py::TestHasItem::test_has_item_false PASSED [ 65%]
tests/test_dlist.py::TestHasItem::test_has_item_true PASSED [ 66%]
tests/test_dlist.py::TestGetItems::test_get_items PASSED [ 67%]
tests/test_dlist.py::TestGetItems::test_get_items_empty_list PASSED [ 67%]
tests/test_dlist.py::TestClear::test_clear PASSED [ 68%]
tests/test_dlist.py::TestChangeStage::test_change_stage PASSED [ 69%]
tests/test_dlist.py::TestChangeStage::test_change_stage_id_not_exist PASSED [ 70%]
tests/test_dlist.py::TestIndex::test_index PASSED [ 70%]
tests/test_dlist.py::TestIndex::test_index_not_exist PASSED [ 71%]
tests/test_dlist.py::TestSynchronizeDecorator::test_synchronize PASSED [ 72%]
tests/test_downloaders.py::TestDownloaders::test_extract_data_playlist PASSED [ 73%]
tests/test_downloaders.py::TestDownloaders::test_extract_data_video PASSED [ 74%]
tests/test_downloadmanager.py::TestDownloadManager::test_downloadmanager PASSED [ 74%]
tests/test_downloadmanager.py::TestDownloadManager::test_init_check_sig PASSED [ 75%]
tests/test_logmanager.py::TestLogManager::test_init PASSED [ 76%]
tests/test_logmanager.py::TestLogManager::test_log PASSED [ 77%]
tests/test_optionsmanager.py::TestOptionsManager::test_init PASSED [ 77%]
tests/test_optionsmanager.py::TestOptionsManager::test_save_to_file PASSED [ 78%]
tests/test_parsers.py::TestParse::test_parse_cmd_args_with_quotes PASSED [ 79%]
tests/test_parsers.py::TestParse::test_parse_to_audio_requirement_bug PASSED [ 80%]
tests/test_updatemanager.py::TestUpdateThread::test_downloadmanager PASSED [ 80%]
tests/test_updatemanager.py::TestUpdateThread::test_init_check_sig PASSED [ 81%]
tests/test_utils.py::TestUtils::test_decode_tuple PASSED [ 82%]
tests/test_utils.py::TestUtils::test_encode_tuple PASSED [ 83%]
tests/test_utils.py::TestUtils::test_get_config_path PASSED [ 83%]
tests/test_utils.py::TestUtils::test_get_encoding SKIPPED (cp65001 encoding is only available on Windows) [ 84%]
tests/test_utils.py::TestUtils::test_get_encoding_error PASSED [ 85%]
tests/test_utils.py::TestUtils::test_get_key PASSED [ 86%]
tests/test_utils.py::TestUtils::test_get_time PASSED [ 87%]
tests/test_utils.py::TestToBytes::test_to_bytes_bytes PASSED [ 87%]
tests/test_utils.py::TestToBytes::test_to_bytes_gigabytes PASSED [ 88%]
tests/test_utils.py::TestToBytes::test_to_bytes_kilobytes PASSED [ 89%]
tests/test_utils.py::TestToBytes::test_to_bytes_megabytes PASSED [ 90%]
tests/test_utils.py::TestToBytes::test_to_bytes_terabytes PASSED [ 90%]
tests/test_utils.py::TestFormatBytes::test_format_bytes_bytes FAILED [ 91%]
tests/test_utils.py::TestFormatBytes::test_format_bytes_gigabytes FAILED [ 92%]
tests/test_utils.py::TestFormatBytes::test_format_bytes_kilobytes FAILED [ 93%]
tests/test_utils.py::TestFormatBytes::test_format_bytes_megabytes FAILED [ 93%]
tests/test_utils.py::TestFormatBytes::test_format_bytes_terabytes FAILED [ 94%]
tests/test_utils.py::TestBuildCommand::test_build_command_with_spaces_linux PASSED [ 95%]
tests/test_utils.py::TestBuildCommand::test_build_command_with_spaces_windows PASSED [ 96%]
tests/test_utils.py::TestBuildCommand::test_build_command_without_spaces_linux PASSED [ 96%]
tests/test_utils.py::TestBuildCommand::test_build_command_without_spaces_windows PASSED [ 97%]
tests/test_utils.py::TestGetDefaultLang::test_get_default_lang PASSED [ 98%]
tests/test_utils.py::TestGetDefaultLang::test_get_default_lang_empty PASSED [ 99%]
tests/test_utils.py::TestGetDefaultLang::test_get_default_lang_none PASSED [100%] Do you think any of this is related to wxPython 4.2.1, as opposed to using 4.2.0? Here is the rest of the build log (too long for just a code tag).
|
Good work! Thanks 🙏🏾 Next iteration is test all the development tools and |
@oleksis If you'd like, I can post the template, the source corrections are there. |
That will great and if you can open a PR related to this issue 👍🏾 |
@oleksis OK. Some are related to general syntax issues, others to syntax changes in python 3.12 and above... maybe it's best if I split them up in a few (most probably 2) PRs? Also, I'll try and use terminal git (still learning), but is it OK if I just use the web UI if things get too hairy? |
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like that [x])WARNING
All invalid issues will be rejected!!
Before going further
If your problem is a bug with youtube-dl or a request for new site support please report it here
Make sure you are using the latest yt-dlg version (Click the
Settings
icon and thenAbout
to view the current version)Make sure you are using the latest youtube-dl version (Click the
Settings
icon and thenUpdate
to update to the latest youtube-dl version)Make sure you searched the bugtracker for similar issues including closed ones
Make sure to read the FAQs file
What is the purpose of your issue?
Please remove any sections between (---) if they are not related to your issue
What operating system do you use ?
Void Linux
List of actions to perform to reproduce the problem:
What is the expected behaviour ?
It should build from source if all dependencies are present, which I believe they are (correct me if wrong).
What happens instead ?
It doesn't build...
So, I managed to get a working template with all dependencies satisfied (correct me if I'm wrong).
There are also some minor bugs in the current makefiile/build process, but that's beside the point. The point is, it doesn't build...
Here is the error log (truncated).
This seems like a build code issue to me... once again, correct me if I'm wrong.
The text was updated successfully, but these errors were encountered: