mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #38] AttributeError: 'module' object has no attribute 'TemporaryDirectory' #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VogelPapaFinn on GitHub (Dec 14, 2018).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/38
After I downloaded it from GitHub, installed it and opened it, an error occured:
Traceback (most recent call last):
File "/usr/local/bin/auto-py-to-exe", line 11, in
load_entry_point('auto-py-to-exe==2.4.3', 'console_scripts', 'auto-py-to-exe')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 487, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2728, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2346, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2352, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/auto_py_to_exe-2.4.3-py2.7.egg/auto_py_to_exe/main.py", line 107, in
temporary_directory = tempfile.TemporaryDirectory()
AttributeError: 'module' object has no attribute 'TemporaryDirectory'
I installed it with "python setup.py install". I have python 2.7.15+ and python 3.6.7. I use Kali Linux 2018!
Thx
@brentvollebregt commented on GitHub (Dec 14, 2018):
Ah yes, I had assumed this new feature would work with Python 2.7 but never tested it.
tempfile.TemporaryDirectorywas added in Python 3.2 so I will need to use something a bit older to keep support for Python 2.7.@brentvollebregt commented on GitHub (Dec 15, 2018):
I believe I have fixed this issue at
6b056beand have merged the branch it was on into master.Could you please test this and verify that the temporary directory is being created and deleted when the project is closed? The temporary directory will be displayed in the output when packaging a script.
@VogelPapaFinn commented on GitHub (Dec 15, 2018):
Now another error occurs:
Traceback (most recent call last): File "/usr/local/bin/auto-py-to-exe", line 7, in <module> from auto_py_to_exe.__main__ import run File "/usr/local/lib/python2.7/dist-packages/auto_py_to_exe/__main__.py", line 21, in <module> except ModuleNotFoundError: NameError: name 'ModuleNotFoundError' is not defined@brentvollebregt commented on GitHub (Dec 15, 2018):
Are you testing using the latest on master? I thought I had fixed this quite a while ago.
@VogelPapaFinn commented on GitHub (Dec 15, 2018):
Yes
@brentvollebregt commented on GitHub (Dec 15, 2018):
In
6ef7c752d1this was fixed, the nameModuleNotFoundErrordoesn't even exist in the project anymore. Also you should have hit this error before finding theAttributeErrorrelated toTemporaryDirectoryyou found before as this check occurs before the creation of the temporary directory.@VogelPapaFinn commented on GitHub (Dec 15, 2018):
So what should I do now?
@brentvollebregt commented on GitHub (Dec 15, 2018):
Make sure you are on the master branch. What method are you using to download the project? git, pip, zip download or something else?
@brentvollebregt commented on GitHub (Dec 17, 2018):
Please note that the latest version of master has not been put on PyPI.
@VogelPapaFinn commented on GitHub (Dec 18, 2018):
fixed it by doing the installation with python2.7. But after I want to start the program the console is "loading" but nothing happen nothing. I have installed chrome with this tutorial
@brentvollebregt commented on GitHub (Dec 18, 2018):
Wasn't Python 2.7 the original issue? You now have me confused; all these tracebacks are Python 2.7.
You stating that you have to install Chrome using a tutorial is hinting to me that this cannot find your Chrome distribution. Although when using Linux, Eel picks up
google-chromeso it should be launching. Are you seeing any warnings?@VogelPapaFinn commented on GitHub (Dec 18, 2018):
Sorry that was my fault^^ I installed the program now on windows 10, there it was verry easy:)
@brentvollebregt commented on GitHub (Dec 18, 2018):
Oh that's good. I'm still a bit curious about Kali Linux though, next time I'm using it I'll try it myself.
I'll close the issue for now but if anything comes up in regards to this issue, we can open it back up.