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

AttributeError: module 'enum' has no attribute 'IntFlag' #13

Closed
gopinath6 opened this issue Feb 11, 2018 · 3 comments
Closed

AttributeError: module 'enum' has no attribute 'IntFlag' #13

gopinath6 opened this issue Feb 11, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@gopinath6
Copy link

Thanks old issue fixed.any though below 2 error?

367 INFO: checking Analysis
367 INFO: Building Analysis because out00-Analysis.toc is non existent
367 INFO: Initializing module dependency graph...
373 INFO: Initializing module graph hooks...
377 INFO: Analyzing base_library.zip ...
Traceback (most recent call last):
File "", line 41, in
File "", line 13, in walk_packages
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\pkgutil. py", line 127, in iter_modules
for name, ispkg in iter_importer_modules(i, prefix):
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\pkgutil. py", line 146, in _iter_file_finder_modules
import inspect
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\inspect. py", line 41, in
import linecache
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\linecach e.py", line 11, in
import tokenize
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\tokenize .py", line 33, in
import re
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\re.py", line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'

12236 INFO: Loading module hook "hook-encodings.py"...
Traceback (most recent call last):
File "", line 41, in
File "", line 13, in walk_packages
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\pkgutil.py", line 127, in iter_modules
for name, ispkg in iter_importer_modules(i, prefix):
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\pkgutil.py", line 146, in _iter_file_finder_modules
import inspect
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\inspect.py", line 41, in
import linecache
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\linecache.py", line 11, in
import tokenize
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\tokenize.py", line 33, in
import re
File "c:\users\kandasam\appdata\local\programs\python\python36-32\lib\re.py", line 142, in
class RegexFlag(enum.IntFlag):

@vincentcox vincentcox added the bug Something isn't working label Feb 11, 2018
@vincentcox
Copy link
Owner

Can you try unset PYTHONPATH?

If that doesn't work, you can try pip3 uninstall enum34. (https://stackoverflow.com/questions/43124775/why-python-3-6-1-throws-attributeerror-module-enum-has-no-attribute-intflag)

@gopinath6
Copy link
Author

Thanks it solved,

8623 INFO: Updating manifest in C:\Users\kandasam\AppData\Roaming\pyinstaller\bincache00_py36_32bit_sqlite3.pyd
18624 INFO: Updating resource type 24 name 2 language 1033
18731 INFO: Updating manifest in C:\Users\kandasam\AppData\Roaming\pyinstaller\bincache00_py36_32bit\sqlite3.dll
18732 INFO: Updating resource type 24 name 2 language 1033
21201 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
21207 INFO: Bootloader c:\users\kandasam\appdata\local\programs\python\python36-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
21207 INFO: checking EXE
21207 INFO: Building EXE because out00-EXE.toc is non existent
21207 INFO: Building EXE from out00-EXE.toc
21213 INFO: SRCPATH [('icon.ico', None)]
21213 INFO: Updating icons from ['icon.ico'] to C:\Users\kandasam\AppData\Local\Temp\tmpd7_w_l3y
21311 INFO: Writing RT_GROUP_ICON 0 resource with 90 bytes
21311 INFO: Writing RT_ICON 1 resource with 17778 bytes
21311 INFO: Writing RT_ICON 2 resource with 67624 bytes
21311 INFO: Writing RT_ICON 3 resource with 16936 bytes
21311 INFO: Writing RT_ICON 4 resource with 9640 bytes
21311 INFO: Writing RT_ICON 5 resource with 4264 bytes
21311 INFO: Writing RT_ICON 6 resource with 1128 bytes
21410 INFO: Appending archive to EXE C:\Users\kandasam\Dropbox\bug\Tools\MOBILE ANALYSIS\StaCoAn-master\StaCoAn-master\dist\stacoan.exe
21428 INFO: Building EXE from out00-EXE.toc completed successfully.

When i double click the stacoan,exe from above location, prompt is opening and closing.

OS: Windows 7

@vincentcox
Copy link
Owner

This is because no input file is given. If you drag and drop an APK file to it, you will see that it will start working.

I will make an improvement that keeps the console open for a few seconds. Thanks for your input and testing!

vincentcox added a commit that referenced this issue Feb 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants