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

"FileNotFoundError: No such file or directory" error on startup #1624

Closed
xtechgithub opened this issue Jul 4, 2021 · 6 comments
Closed

"FileNotFoundError: No such file or directory" error on startup #1624

xtechgithub opened this issue Jul 4, 2021 · 6 comments
Labels
App Crash Something is causing the app to crash Done in next release This has been addressed in the next release

Comments

@xtechgithub
Copy link

xtechgithub commented Jul 4, 2021

BEE2 version: v4.40.1 64bit

Description of the bug: BEEmod crashes immediately when it is started on Microsoft Windows 10

Steps to reproduce: Install BEE2, along with packages, as you normally would. Start the application.

Additional information:

Traceback (most recent call last):
  File "BEE2_launch.pyw", line 50, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\BEE2.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\gameMan.py", line 35, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\optionWindow.py", line 17, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\contextWin.py", line 20, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\itemconfig.py", line 17, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\UI.py", line 25, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "app\CompilerPane.py", line 78, in <module>
  File "BEE2_config.py", line 180, in set_defaults
  File "BEE2_config.py", line 170, in save_check
  File "BEE2_config.py", line 163, in save
  File "contextlib.py", line 117, in __enter__
  File "atomicwrites\__init__.py", line 166, in _open
  File "atomicwrites\__init__.py", line 183, in get_fileobject
  File "tempfile.py", line 332, in mkstemp
  File "tempfile.py", line 251, in _mkstemp_inner
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Thomas\\AppData\\Roaming\\BEEMOD2\\config\\tmp581cx9fz'

After this error, it says "Failed to execute script BEE2_launch"


Workaround

This error only affects first time launch. Here's how to fix it manually:

  • Press WINDOWS+R or search Run in the start menu
  • Type %AppData%/BEEMOD2 and hit enter
  • Make a new folder and name it "Config"

After that BEEmod will launch.

@xtechgithub xtechgithub added the App Crash Something is causing the app to crash label Jul 4, 2021
@LautaroL20 LautaroL20 changed the title BEEmod crashes when started on Windows 10 BEEmod crash: FileNotFoundError: [Errno 2] No such file or directory: ’C:\\Users\\Thomas\\Roaming\\BEEMOD2\\config\\tmpbkj9c8e5’ Jul 4, 2021
@TeamSpen210
Copy link
Member

Does C:\Users\Thomas\Roaming\BEEMOD2\config actually exist? If not you might be able to create it to work around the issue.

@Starrysparklez
Copy link

I had the same problem and yes, creating this directory solved the problem. But after selecting the .exe file of the game and specifying the name, the application gives the following error on startup (a splash screen appears, and when the first progress bar reaches the end, this error message appears).
iOyYAA5B7N

@LautaroL20 LautaroL20 mentioned this issue Jul 18, 2021
@TeamSpen210 TeamSpen210 added the Done in next release This has been addressed in the next release label Jul 21, 2021
@LautaroL20 LautaroL20 pinned this issue Jul 27, 2021
@Konclan Konclan mentioned this issue Sep 7, 2021
@Some-Username-Available

This comment has been minimized.

@Konclan

This comment has been minimized.

@Konclan Konclan mentioned this issue Oct 1, 2021
@Konclan Konclan changed the title BEEmod crash: FileNotFoundError: [Errno 2] No such file or directory: ’C:\\Users\\Thomas\\Roaming\\BEEMOD2\\config\\tmpbkj9c8e5’ Config folder is not being generated + workaround Oct 1, 2021
@Konclan Konclan changed the title Config folder is not being generated + workaround BEEMOD2 Config folder is not being generated (FileNotFoundError: No such file or directory) + workaround Oct 1, 2021
@vrad-exe vrad-exe changed the title BEEMOD2 Config folder is not being generated (FileNotFoundError: No such file or directory) + workaround "FileNotFoundError: No such file or directory" error on startup Oct 10, 2021
@vrad-exe
Copy link
Member

Renamed so hopefully people will spot this more easily...

@Konclan
Copy link
Contributor

Konclan commented Oct 10, 2021

Edited the issue so that the image of the log is text so it might be searched easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Crash Something is causing the app to crash Done in next release This has been addressed in the next release
Projects
None yet
Development

No branches or pull requests

6 participants