Error when deploying: Could not create bundle

Question:
Hello everyone, this is probably an easy fix, but I am new, I get the error Could not create bundle when trying to deploy with reserved vm, does anyone know what the problem is (and yes, i did check troubleshooting, i didnt seem to find anything) If i press the run button at the top, everything works fine but i need it to be running 24/7 as it is a discord bot for one of my servers and i dont know why it is not working. Help is appreciated!

Replit Profile: https://replit.com/@player925sal

Hi @player925sal , welcome to thr forums!
Are you using Background worker for the Reserved VM?

Yes, I am using the Background Worker setting for Reserved VM

After it says β€œCreated Repl Layer” it says Could not create bundle and fails.

I am experiencing this same or similar issue since over 3days now

2024-01-15T22:22:24Z info: Deployment: c8059c59-0f10-44f6-bcd6-b869ba688033
2024-01-15T22:22:24Z info: Build: cf38b090-05ff-4bf1-938e-3a8bcb0e4672
2024-01-15T22:22:24Z info: Connecting to builder
2024-01-15T22:22:26Z info: Builder connected
2024-01-15T22:22:26Z info: Installing packages
--> poetry lock --no-update

Skipping virtualenv creation, as specified in config file.

Resolving dependencies...

Writing lock file

--> poetry install

Skipping virtualenv creation, as specified in config file.

Installing dependencies from lock file

Package operations: 
  β€’ Updating pycparser (2.21 /home/runner/c8059c59-0f10-44f6-bcd6-b869ba688033/.pythonlibs/lib/python3.10/site-packages -> 2.21)

  β€’ Updating toolz (0.12.0 /home/runner/c8059c59-0f10-44f6-bcd6-b869ba688033/.pythonlibs/lib/python3.10/site-packages -> 0.12.0)


  CalledProcessError

  at /nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/subprocess.py:526 in run

       522β”‚             # We don't call process.wait() as .__exit__ does that for us.
       523β”‚             raise

       525β”‚         if check and retcode:


  EnvCommandError


      350β”‚                 output = subprocess.check_output(

      351β”‚                     cmd, stderr=stderr, env=env, text=True, **kwargs
      352β”‚                 )

      350β”‚                 output = subprocess.check_output(
      351β”‚                     cmd, stderr=stderr, env=env, text=True, **kwargs


Cannot install toolz.


exit status 1


see the error on the deployment log

2024-01-15T22:03:34Z info: Deployment: c8059c59-0f10-44f6-bcd6-b869ba688033
2024-01-15T22:03:34Z info: Build: 99a50491-74cc-481b-8c18-6a48a1fb22c8
2024-01-15T22:03:34Z info: Connecting to builder
2024-01-15T22:03:36Z info: Builder connected
2024-01-15T22:03:36Z info: Installing packages
--> poetry lock --no-update

Skipping virtualenv creation, as specified in config file.

Resolving dependencies...


Writing lock file

--> poetry install

Skipping virtualenv creation, as specified in config file.

Installing dependencies from lock file


Package operations: 14 installs, 122 updates, 0 removals


  β€’ Updating toolz (0.12.0 /home/runner/c8059c59-0f10-44f6-bcd6-b869ba688033/.pythonlibs/lib/python3.10/site-packages -> 0.12.0)


  CalledProcessError

  Command '['/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/bin/python3', '/home/runner/c8059c59-0f10-44f6-bcd6-b869ba688033/.pythonlibs/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/pip-23.3.1-py3-none-any.whl/pip', 'uninstall', 'pycparser', '-y']' returned non-zero exit status 1.

    β†’  526β”‚             raise CalledProcessError(retcode, process.args,

Cannot install toolz.

exit status 1

I have fixed my issue (yay!) Basically, I just made a new project and transferred my data and updated some outdated things i found, and it started working and now it is deployed for whatever reason, making a new project fixed it.

2 Likes

congratulation thinking of doing same, thanks for sharing

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.