jpt/trifold
1
33
Fork
You've already forked trifold
1

Error when updating site #10

Closed
opened 2026年03月01日 07:48:23 +01:00 by tyee · 4 comments

Ran trifold publish and got this error -

Traceback (most recent call last):
 File "<frozen runpy>", line 198, in _run_module_as_main
 File "<frozen runpy>", line 88, in _run_code
 File "C:\Users\pt\AppData\Roaming\uv\tools\trifold\Scripts\trifold.exe\__main__.py", line 4, in <module>
 from trifold.__main__ import app
 File "C:\Users\pt\AppData\Roaming\uv\tools\trifold\Lib\site-packages\trifold\__main__.py", line 7, in <module>
 from typing_extensions import Annotated
ModuleNotFoundError: No module named 'typing_extensions'

I can get it working with -

uvx --with typing-extensions trifold publish

So how to install the typing extensions so I can remove it from the command line above?

Question - if this repo disappears will my uvx command stop working? If yes, maybe I should install trifold permanently?

Ran trifold publish and got this error - ``` Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\pt\AppData\Roaming\uv\tools\trifold\Scripts\trifold.exe\__main__.py", line 4, in <module> from trifold.__main__ import app File "C:\Users\pt\AppData\Roaming\uv\tools\trifold\Lib\site-packages\trifold\__main__.py", line 7, in <module> from typing_extensions import Annotated ModuleNotFoundError: No module named 'typing_extensions' ``` I can get it working with - ``` uvx --with typing-extensions trifold publish ``` So how to install the typing extensions so I can remove it from the command line above? Question - if this repo disappears will my uvx command stop working? If yes, maybe I should install trifold permanently?
Author
Copy link

So you fixed it, thanks. Although I fixed it today by running -

uv tool install --with typing-extensions trifold

What about my other question - Does everything download from codeberg when I run uvx? I'm no coder so I'm not too familiar with uv yet. Is there any way to create a windows exe file so nothing downloads and it just works all the time?

That above command actually installed trifold so I guess I can run it with uvx or just uv but using uv will not run in a venv as far as I know. So how to use uv to run in a venv?

So you fixed it, thanks. Although I fixed it today by running - ``` uv tool install --with typing-extensions trifold ``` What about my other question - Does everything download from codeberg when I run uvx? I'm no coder so I'm not too familiar with uv yet. Is there any way to create a windows exe file so nothing downloads and it just works all the time? That above command actually installed trifold so I guess I can run it with uvx or just uv but using uv will not run in a venv as far as I know. So how to use uv to run in a venv?
Owner
Copy link

When you run uvx it installs if it isn't there. It grabs it from PyPI.org and installs it into a local directory. It'll be there even if PyPI is down. (It isn't a Windows exe, but python.exe runs trifold.py, similar end result)

uv is for python developers, it creates a venv for dev purposes. As a non-dev uvx is the way to go here :)

When you run uvx it installs if it isn't there. It grabs it from PyPI.org and installs it into a local directory. It'll be there even if PyPI is down. (It isn't a Windows exe, but python.exe runs trifold.py, similar end result) uv is for python developers, it creates a venv for dev purposes. As a non-dev uvx is the way to go here :)
Author
Copy link

I just scanned my computer. I can't find trifold.py anywhere. Is that normal? I do have 6 instances of trifold.exe though.

I just scanned my computer. I can't find trifold.py anywhere. Is that normal? I do have 6 instances of trifold.exe though.
Owner
Copy link

Ah I was speaking imprecisely, yes that's normal.

Ah I was speaking imprecisely, yes that's normal.
Sign in to join this conversation.
No Branch/Tag specified
main
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.2.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jpt/trifold#10
Reference in a new issue
jpt/trifold
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?