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

Incompatible with python 3.10.0 (UPDATED) #205

Closed
sandbands opened this issue Oct 18, 2021 · 14 comments
Closed

Incompatible with python 3.10.0 (UPDATED) #205

sandbands opened this issue Oct 18, 2021 · 14 comments

Comments

@sandbands
Copy link

I got this issue with auto-py-to-exe and i noticed it uses pyinstaller, so i tried pyinstaller (and yes my pip and pyinstaller were up to date) and pyinstaller had the exact same error;

  File "C:\Users\myuser\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1711, in _find_head_package
    raise ImportError("No module named " + target_package_name)
ImportError: No module named _bootlocale

Project output will not be moved to output folder
Complete.

which means its not an issue with auto-py-to-exe, but an issue with pyinstaller. so unfortunately you guys cant do anything about it, just thought id let you know

@brentvollebregt
Copy link
Owner

auto-py-to-exe will not support Python 3.10.0 until PyInstaller does.

Unfortunately, I expect to see this support take quite some time again due to the lack of funding on the project.

@madtatu-development
Copy link

oh, so funding is an issue again? because it had been solved in july (PyInstaller is no longer in urgent need of funding, having an active volunteer development team (@Legorooj, @bwoodsend, @rokm).):

pyinstaller/pyinstaller#4404

regarding to the bootlocal issue, some extra information:

pyinstaller/pyinstaller#5693

and if someone ran into the same problem I did (IndexError: tuple index out of range):

pyinstaller/pyinstaller#6301

@Legorooj
Copy link

Legorooj commented Nov 2, 2021

Funding on PyInstaller is not an issue currently. Not been an issue for many months now (way before July actually, just didn't think to close that ticket till then.)

As for Python 3.10, it's supported now (v4.6+) - though there are indeed a few bugs. pyinstaller/pyinstaller#6301 is a bug in CPython not PyInstaller.

@madtatu-development
Copy link

@Legorooj : Awesome, thanks for the heads up from first hand!
@brentvollebregt : Since its confirmed that pyinstaller support Python 3.10, any chance you could have a look at it ?

BIG thanks to all of you !!

@bwoodsend
Copy link

As for Python 3.10, it's supported now (v4.6+) - though there are indeed a few bugs. pyinstaller/pyinstaller#6301 is a bug in CPython not PyInstaller.

I really would like to emphasise that issue though. With it I'd honestly say that we don't yet support Python 3.10.

@madtatu-development
Copy link

madtatu-development commented Nov 3, 2021

Oh, I see, Thank you for the clarification. The we hold tight and fingers crossed for the soonest possible fixes.

@brentvollebregt
Copy link
Owner

Thanks, heaps for coming over guys - I hadn't noticed PyInstaller 4.6 was released a few days ago.

I'll get PyInstaller 4.6 into auto-py-to-exe as there are new arguments that need to be categorised.

brentvollebregt added a commit that referenced this issue Nov 3, 2021
This also gives support for Python 3.10 however it does appear Python 3.10 is not fully supported.
@madtatu-development
Copy link

madtatu-development commented Nov 3, 2021

@brentvollebregt

Thanks to Your amazing support !!!!!!!!

One more thing: I am not sure it is related, but allow me to report it here as it is "new":

Background:

  • after I couldnt create the EXE after updating to Python 3.10,0, I had decided to go back to 3.9.7
  • since I am using ssd image base backup, I simply restored an earlier OS image where python wasnt installed at all to ensure there is no garbage left e.g. from an uninstall proces.
  • I installed python 3.9.7 x64 on windows 10 latest version, just as it was before.

Problem:

  • for some reason, the EXACT SAME code with the EXACT same json settings file, which was perfectly compiled to exe and executed earlier, now, throws the following error during execution:
    ImportError: Module 'pythoncom' isn't in frozen sys.path ['C:\Users\Master\AppData\Local\Temp\_MEI47642\base_library.zip', 'C:\Users\Master\AppData\Local\Temp\_MEI47642\lib-dynload', 'C:\Users\Master\AppData\Local\Temp\_MEI47642']

  • All required dirs are added.

  • All modules and submodules are imported.

  • Cache emptied.

  • Both python and python/scripts added to os syst path variable

Still not work. what previously worked like a charm.

  • I am sure the problem is on my side, eventhough it is same evironment, code and process, but there is no miracle, something must had been changed what i overlook otherwise it would not give an error.

May I ask if you could guide me, what he heck could be the problem ?

@brentvollebregt
Copy link
Owner

@madtatu-development could you create a new issue for this? Keeping each issue in their own GitHub issue helps keep things on track and stops people from getting notified about something not on topic.

@brentvollebregt
Copy link
Owner

auto-py-to-exe 2.11.0 has just been released to PyPI which contains support for PyInstaller 4.6 🎉

@madtatu-development
Copy link

@madtatu-development could you create a new issue for this? Keeping each issue in their own GitHub issue helps keep things on track and stops people from getting notified about something not on topic.

Sure thing! I just wasnt sure if this problem is related to this or not, so I thought if it is separate, github allows you to move it as new issue. Create it right away, sorry for the trouble.

@madtatu-development
Copy link

auto-py-to-exe 2.11.0 has just been released to PyPI which contains support for PyInstaller 4.6 🎉

You are SUPER AWESOME! BIG THANKS !!!!!!!!!!

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jan 4, 2022
@bwoodsend
Copy link

You can probably close this now anyway. Python 3.10.1 contained a fix for the tuple index issue so we're good to go.

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

5 participants