Can't Build Application in Ubuntu 24.04
Step 3 of the Instructions: Set up the environment with pipenv install
Output: `Creating a virtualenv for this project... Pipfile: /home/user/tubesync/tubesync/Pipfile Using default python from /usr/bin/python3 (3.12.3) to create virtualenv... ⠼ Creating virtual environment...created virtual environment CPython3.12.3.final.0-64 in 268ms creator CPython3Posix(dest=/home/user/.local/share/virtualenvs/tubesync-X_k7L6sf, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/home/user/.local/share/virtualenv) added seed packages: pip==24.0 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment! Virtualenv location: /home/user/.local/share/virtualenvs/tubesync-X_k7L6sf Pipfile.lock not found, creating... Locking [packages] dependencies... Building requirements... Resolving dependencies... ✘ Locking Failed! ⠹ Locking...False ERROR:pip.subprocessor:Getting requirements to build wheel exited with 1 [ResolutionFailure]: File "/usr/lib/python3/dist-packages/pipenv/resolver.py", line 645, in _main [ResolutionFailure]: resolve_packages( [ResolutionFailure]: File "/usr/lib/python3/dist-packages/pipenv/resolver.py", line 612, in resolve_packages [ResolutionFailure]: results, resolver = resolve( [ResolutionFailure]: ^^^^^^^^ [ResolutionFailure]: File "/usr/lib/python3/dist-packages/pipenv/resolver.py", line 592, in resolve [ResolutionFailure]: return resolve_deps( [ResolutionFailure]: ^^^^^^^^^^^^^ [ResolutionFailure]: File "/usr/lib/python3/dist-packages/pipenv/utils/resolver.py", line 918, in resolve_deps [ResolutionFailure]: results, hashes, internal_resolver = actually_resolve_deps( [ResolutionFailure]: ^^^^^^^^^^^^^^^^^^^^^^ [ResolutionFailure]: File "/usr/lib/python3/dist-packages/pipenv/utils/resolver.py", line 691, in actually_resolve_deps [ResolutionFailure]: resolver.resolve() [ResolutionFailure]: File "/usr/lib/python3/dist-packages/pipenv/utils/resolver.py", line 448, in resolve [ResolutionFailure]: raise ResolutionFailure(message=str(e)) [pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies. You can use $ pipenv run pip install <requirement_name> to bypass this mechanism, then run $ pipenv graph to inspect the versions actually installed in the virtualenv. Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: Getting requirements to build wheel exited with 1
Traceback (most recent call last):
File "/usr/bin/pipenv", line 8, in
There's not enough information here to find the root cause of the failure. This is the top level "pipenv failed to install" error and not the actual error message on what library failed to install.
However, this is almost certainly due to not having some required dev packages installed (for example https://github.com/meeb/tubesync/blob/main/Dockerfile#L100). Python packages like libsass require a bunch of C dev packages to be installed or they fail.
Try running pipenv install with --verbose to see if you can get the actual error message, if it's about some C module failing to compile you'll need to install whatever the missing required packages are.
Unless you're trying to set up a local development environment to make modifications or similar it would be highly advisable to run tubesync in the supplied container, it's a bundle of quite a few services and can be complex to run stand-alone.
Ok, I got to Step 5, but got this. Is there a list of dependencies (and the command to install them) that you can share?
./manage.py migrate
Traceback (most recent call last):
File "/home/user/tubesync/tubesync/tubesync/./manage.py", line 18, in
That would imply that django-background-tasks is not installed. Try pipenv install --verbose django-background-tasks and see what happens. If you get a "package not found" or similar error then it's likely the pinned version of django-background-tasks isn't available for whatever version of Python you're running.
I'll close this for now, please open a new issue if you still experience problems.