Hi,

I'm trying to make exe file from my script using command but I'm getting an 
error:
pyinstaller --clean --win-private-assemblies -F scriptName.py

I was doing that before many times (although last time was at least 1 year 
ago) and it worked without issues. I tried today and I'm getting following 
warning:
1259801 WARNING: Unable to find package for requirement greenlet from 
package gevent.
1259801 INFO: Packages required by gevent:
['cffi']

then an error:
    f"No metadata path found for distribution '{project_name}'.")
RuntimeError: No metadata path found for distribution 'greenlet'.

I tried Terminal in PyCharm and Anaconda Prompt.
I tried to reinstall greenlet, cffi and gevent packages using commands:
pip  install --ignore-installed greenlet
pip  install --ignore-installed gevent
pip  install --ignore-installed cffi

They all succeded, but I'm still getting same error.

Any ideas?

Below is full log:
4983 INFO: PyInstaller: 4.5.1
4983 INFO: Python: 3.6.5 (conda)
4984 INFO: Platform: Windows-10-10.0.18362-SP0
4991 INFO: wrote C:\Users\userName\OneDrive\Documents\!training\Python\EY 
Training\scriptName\scriptName3.spec
4996 INFO: UPX is not available.
4996 INFO: Removing temporary files and cleaning cache in 
C:\Users\userName\AppData\Local\pyinstaller
5008 INFO: Extending PYTHONPATH with paths
['C:\\Users\\userName\\OneDrive\\Documents\\!training\\Python\\EY '
 'Training\\scriptName',
 'C:\\Users\\userName\\OneDrive\\Documents\\!training\\Python\\EY '
 'Training\\scriptName']
10980 INFO: checking Analysis
10981 INFO: Building Analysis because Analysis-00.toc is non existent
10996 INFO: Initializing module dependency graph...
11032 INFO: Caching module graph hooks...
11263 INFO: Analyzing base_library.zip ...
47890 INFO: Caching module dependency graph...
48648 INFO: running Analysis Analysis-00.toc
48693 INFO: Adding Microsoft.Windows.Common-Controls to dependent 
assemblies of final executable
  required by c:\users\userName\appdata\local\continuum\anaconda3\python.exe
49419 INFO: Analyzing 
C:\Users\userName\OneDrive\Documents\!training\Python\EY 
Training\scriptName\scriptName3.py
53597 INFO: Processing pre-find module path hook distutils from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
53621 INFO: distutils: retargeting to non-venv dir 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib'
62896 INFO: Processing pre-safe import module hook six.moves from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
143351 INFO: Processing pre-find module path hook site from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
143457 INFO: site: retargeting to fake-dir 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\fake-modules'
176552 INFO: Processing pre-safe import module hook 
setuptools.extern.six.moves from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.
six.moves.py'.
422065 INFO: Processing pre-safe import module hook 
urllib3.packages.six.moves from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.si
x.moves.py'.
603370 INFO: Processing pre-safe import module hook win32com from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
842444 INFO: Processing module hooks...
842444 INFO: Loading module hook 'hook-certifi.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
842474 INFO: Loading module hook 'hook-cryptography.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
843945 INFO: Loading module hook 'hook-docutils.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
851346 INFO: Loading module hook 'hook-IPython.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
852728 INFO: Loading module hook 'hook-jedi.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
852882 INFO: Loading module hook 'hook-jinja2.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
852900 INFO: Loading module hook 'hook-jsonschema.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
852960 INFO: Loading module hook 'hook-lxml.etree.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
852972 INFO: Loading module hook 'hook-lxml.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
856010 INFO: Loading module hook 'hook-nbconvert.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
856599 INFO: Loading module hook 'hook-nbformat.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
856951 INFO: Loading module hook 'hook-notebook.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
886860 INFO: Loading module hook 'hook-openpyxl.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
887345 INFO: Loading module hook 'hook-parso.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
887407 INFO: Loading module hook 'hook-pycparser.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
887787 INFO: Loading module hook 'hook-pytest.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
895213 INFO: Loading module hook 'hook-pythoncom.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
900355 INFO: Loading module hook 'hook-pywintypes.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
903673 INFO: Loading module hook 'hook-tables.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
903687 INFO: Loading module hook 'hook-win32com.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
905054 INFO: Loading module hook 'hook-zmq.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
909638 INFO: Loading module hook 'hook-babel.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
910245 INFO: Loading module hook 'hook-difflib.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
910253 INFO: Loading module hook 'hook-distutils.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
910254 INFO: Loading module hook 'hook-distutils.util.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
910263 INFO: Loading module hook 'hook-encodings.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
910706 INFO: Loading module hook 'hook-gevent.py' from 
'c:\\users\\userName\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
911466 INFO: Determining a mapping of distributions to packages...
1259801 WARNING: Unable to find package for requirement greenlet from 
package gevent.
1259801 INFO: Packages required by gevent:
['cffi']
Traceback (most recent call last):
  File "c:\users\userName\appdata\local\continuum\anaconda3\lib\runpy.py", 
line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\userName\appdata\local\continuum\anaconda3\lib\runpy.py", 
line 85, in _run_code
    exec(code, run_globals)
  File 
"C:\Users\userName\AppData\Local\Continuum\anaconda3\Scripts\pyinstaller.exe\__main__.py",
 
line 9, in <module>
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\__main__.py",
 
line 126, in run
    run_build(pyi_config, spec_file, **vars(args))
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\__main__.py",
 
line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 815, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), 
kw.get('clean_build'))
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 762, in build
    exec(code, spec_namespace)
  File "C:\Users\userName\OneDrive\Documents\!training\Python\EY 
Training\scriptName\scriptName3.spec", line 19, in <module>
    noarchive=False)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 294, in __init__
    self.__postinit__()
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\building\datastruct.py",
 
line 159, in __postinit__
    self.assemble()
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\building\build_main.py",
 
line 473, in assemble
    self.graph.process_post_graph_hooks(self)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\depend\analysis.py",
 
line 373, in process_post_graph_hooks
    module_hook.post_graph(analysis)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\depend\imphook.py",
 
line 451, in post_graph
    self._load_hook_module()
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\depend\imphook.py",
 
line 409, in _load_hook_module
    self.hook_module_name, self.hook_filename)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\compat.py",
 
line 632, in importlib_load_source
    return mod_loader.load_module()
  File "<frozen importlib._bootstrap_external>", line 399, in 
_check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 823, in load_module
  File "<frozen importlib._bootstrap_external>", line 682, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\hooks\hook-gevent.py",
 
line 25, in <module>
    datas += copy_metadata('gevent', recursive=True)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py",
 
line 940, in copy_metadata
    dest = _copy_metadata_dest(dist.egg_info, dist.project_name)
  File 
"c:\users\userName\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py",
 
line 975, in _copy_metadata_dest
    f"No metadata path found for distribution '{project_name}'.")
RuntimeError: No metadata path found for distribution 'greenlet'.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/27205404-e635-4458-8e2c-0e28aff44e55n%40googlegroups.com.

Reply via email to