Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Create Llama
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Create Llama
Commits
89b7b45e
Commit
89b7b45e
authored
1 year ago
by
Marcus Schiesser
Browse files
Options
Downloads
Patches
Plain Diff
fix(cl): improved error messages for python installation
parent
3fde4b8f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/python.ts
+8
-7
8 additions, 7 deletions
helpers/python.ts
with
8 additions
and
7 deletions
helpers/python.ts
+
8
−
7
View file @
89b7b45e
import
fs
from
"
fs/promises
"
;
import
fs
from
"
fs/promises
"
;
import
path
from
"
path
"
;
import
path
from
"
path
"
;
import
{
cyan
,
red
,
yellow
}
from
"
picocolors
"
;
import
{
cyan
,
red
}
from
"
picocolors
"
;
import
{
parse
,
stringify
}
from
"
smol-toml
"
;
import
{
parse
,
stringify
}
from
"
smol-toml
"
;
import
terminalLink
from
"
terminal-link
"
;
import
terminalLink
from
"
terminal-link
"
;
import
{
copy
}
from
"
./copy
"
;
import
{
copy
}
from
"
./copy
"
;
...
@@ -104,18 +104,19 @@ export const installPythonDependencies = (
...
@@ -104,18 +104,19 @@ export const installPythonDependencies = (
const
installSuccessful
=
tryPoetryInstall
(
noRoot
);
const
installSuccessful
=
tryPoetryInstall
(
noRoot
);
if
(
!
installSuccessful
)
{
if
(
!
installSuccessful
)
{
console
.
error
(
console
.
error
(
red
(
"
Install failed. Please install dependencies manually.
"
),
red
(
"
Installing dependencies using poetry failed. Please check error log above and try running create-llama again.
"
,
),
);
);
process
.
exit
(
1
);
process
.
exit
(
1
);
}
}
}
else
{
}
else
{
console
.
warn
(
console
.
error
(
yellow
(
red
(
`Poetry is not available in the current environment. The Python dependencies will not be installed automatically.
`Poetry is not available in the current environment. Please check
${
terminalLink
(
Please check
${
terminalLink
(
"
Poetry Installation
"
,
"
Poetry Installation
"
,
`https://python-poetry.org/docs/#installation`
,
`https://python-poetry.org/docs/#installation`
,
)}
to install poetry first, then
install the dependencies manually
.`
,
)}
to install poetry first, then
run create-llama again
.`
,
),
),
);
);
process
.
exit
(
1
);
process
.
exit
(
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment