question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

package seedir is missing datafiles without datafile inclusion options

See original GitHub issue

Nuitka version:

$ python -m nuitka --version
0.6.15
Python: 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
Executable: C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe
OS: Windows
Arch: x86_64

Python version:

$ python --version
Python 3.8.3

Minimal reproducer(needs seedir)

import os 
import seedir as sdir
while True:
    usr_input = input(">>")
    if usr_input == 'help':
        print("help")
    elif usr_input == 'treelist':
        sdir.seedir(os.getcwd())
    else:
        print("other")              

running the executable results in

C:\Users\Administrator\Desktop\penta.buildd\Penta\minimal_ex.dist>minimal_ex.exe
Traceback (most recent call last):
  File "C:\Users\ADMINI~1\Desktop\PENTA~1.BUI\Penta\MINIMA~1.DIS\minimal_ex.py", line 2, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "C:\Users\ADMINI~1\Desktop\PENTA~1.BUI\Penta\MINIMA~1.DIS\seedir\__init__.py", line 24, in <module seedir>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "C:\Users\ADMINI~1\Desktop\PENTA~1.BUI\Penta\MINIMA~1.DIS\seedir\realdir.py", line 15, in <module seedir.realdir>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "C:\Users\ADMINI~1\Desktop\PENTA~1.BUI\Penta\MINIMA~1.DIS\seedir\folderstructure.py", line 10, in <module seedir.folderstructure>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "C:\Users\ADMINI~1\Desktop\PENTA~1.BUI\Penta\MINIMA~1.DIS\seedir\folderstructurehelpers.py", line 11, in <module seedir.folderstructurehelpers>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "C:\Users\ADMINI~1\Desktop\PENTA~1.BUI\Penta\MINIMA~1.DIS\seedir\printing.py", line 67, in <module seedir.printing>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ADMINI~1\\Desktop\\PENTA~1.BUI\\Penta\\MINIMA~1.DIS\\seedir\\words.txt'

i have to manually add a directory called seedir and words.txt ,after which the executable runs fine…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Dec 16, 2021

Since we adding yaml config for data files, I have tried your example and added a small config snippet that makes it work out of the box to factory branch, will be in next release or maybe even hotfix.

0reactions
kayhayencommented, Dec 20, 2021

Part of the current hotfix release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing PDB$SEED's Datafiles with no backup - Oracle Support
Goal. PDB$SEED datafile is missing from the filesystem and there is no backup available. This articles describes how to over come this issue ......
Read more >
nuitka Changelog - pyup.io
data inclusion option, making ``--include-package-data`` usable in many more cases, picking the only files or file types you want. You
Read more >
LJDT: RPM Package Verification and Repair - SUSE
The 'rpm' command is the interface to the RPM database which holds information ... A few of the options you should know include...
Read more >
PowerView Command Reference - Lauterbach
Message areas are the IN/OUT windows for error texts or print commands. They work like a standard scrolling terminal.
Read more >
September 27, 2019 Seema Verma Administrator Centers for ...
Further, as there is no basis for paying hospitals less than the ... CMS said it would “include in our proposed definition of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found