Having Difficulty to Deploy a Project

Hello, I am trying to deploy a new project and i am getting a error which i dont know how to resolve, I have not used vercel before., I am a beginner, please help me resolve the error and deploy it.

Here is the build log error which i got:

[19:57:26.546] Running build in Washington, D.C., USA (East) – iad1
[19:57:28.125] Cloning GitHub - Prawin1966/gd (Branch: main, Commit: a512f1b)
[19:57:28.621] Cloning completed: 494.236ms
[19:57:28.783] Previous build cache not available
[19:57:29.249] Running “vercel build”
[19:57:30.213] Vercel CLI 35.2.3
[19:57:30.597] WARN! Due to builds existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: Error List
[19:57:30.644] Installing required dependencies…

[19:57:39.287] Failed to run “pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt”
[19:57:39.287] Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt
[19:57:39.287] error: subprocess-exited-with-error
**[19:57:39.287] **
[19:57:39.287] × Getting requirements to build wheel did not run successfully.
[19:57:39.287] │ exit code: 1
[19:57:39.287] ╰─> [5 lines of output]
[19:57:39.287] :114: SyntaxWarning: invalid escape sequence ‘.’
[19:57:39.287] :67: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 72.2.0.post20240808 documentation
[19:57:39.287] Building lxml version 4.7.1.
[19:57:39.287] Building without Cython.
[19:57:39.287] Error: Please make sure the libxml2 and libxslt development packages are installed.
[19:57:39.287] [end of output]
**[19:57:39.287] **
[19:57:39.287] note: This error originates from a subprocess, and is likely not a problem with pip.
[19:57:39.287] error: subprocess-exited-with-error

Hi and welcome to the community, @prawin1966!

From what I can see in your error logs, it looks like you’ll need to take a look at your requirements.txt file to get to the root of the issue.

Failed to run “pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt”

Do you have these packages installed?

Error: Please make sure the libxml2 and libxslt development packages are installed.

Thanks for the reply first.
No I have not installed those packages, how do i install them? Help me with that please.

I will attach the screenshot of the “requirements.txt” file here, have a look at it and tell me what i should change to deploy my project.

Screenshot 2024-08-09 172728

I’m going on some guesses here, but maybe you could change “lxml==4.7.1” to “lxml”? I wonder if this is related to specifying versions that don’t have libxml2 and libxslt?

I tried to change "lxml==4.7.1” to “lxml” and I got lot of errors. It didn’t work.
I dont know what changes i must do, i tried to lot of different changes but nothing is working.
i just want to clone a github repo and deploy it in vercel.
Can you please try cloning them without any errors and tell me what exactly should I do so that I can replicate what you did.
I can share you the github repository link if you want to help me out.

I don’t understand what I should do exactly it is confusing.
I just want to clone a github repo and deploy it in vercel.
Can you please try cloning them without any errors and tell me what exactly should I do so that I can replicate what you did.
I can share you the github repository link if you want to help me out.

Heyo, did you solve this at all?

I am having what appears to be the same issue…

[19:57:39.287] Failed to run “pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt”
[19:57:39.287] Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r

Edit: my error appears to be related to:
File “/tmp/pip-build-env-bnngoxpn/overlay/lib/python3.12/site-packages/setuptools/init.py”, line 10, in
16:17:43.703 import distutils.core
16:17:43.703ModuleNotFoundError: No module named ‘distutils’

And a quick search shows that python 3.12 does not have that module anymore. Umm. I’ll wait a day or two and see if this gets responded to and if not I’ll make a new thread.

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