Comments (13)
from torf-cli.
I don't know what "batch mode" means, but I don't think torf-cli has one. I would do it with a for loop. How to do it specifically depends on your shell, the files and what you want to do. No idea how to get torf-cli working on Windows, especially if you don't provide any error messages.
Hi @rndusr, thanks for your reply. Batch reply means, in general, what you wrote, run it with a for loop. And about the error message running in windows, you can check in my main post. But see below again...
C:>torf -i Mirc.torrent
Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 193, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\torf.exe_main.py", line 7, in
File "C:\Users\xandynho\AppData\Roaming\Python\Python38\site-packages\torfcli_init.py", line 16, in run
from . import _config, _errors, _main, _ui
File "C:\Users\xandynho\AppData\Roaming\Python\Python38\site-packages\torfcli_ui.py", line 24, in
from . import _term, _utils, _vars
File "C:\Users\xandynho\AppData\Roaming\Python\Python38\site-packages\torfcli_term.py", line 14, in
import termios
ModuleNotFoundError: No module named 'termios'
But I think the problem must be about this last line... ModuleNotFoundError: No module named 'termios'. I read that this termios module canΒ΄t be installed on Windows. Anyway, I'll keep looking for a solution to run TORF on windows.
from torf-cli.
from torf-cli.
from torf-cli.
Thanks for providing an error. (I don't get another email if you edit a comment, that's why I didn't see it.) I think I can fix this particular issue, but I can't test it, so expect more bugs.
Hey @rndusr, do you really can fix this problem? Maybe creating a patch. I can test here and give you a feedback. Please, let me know. I would like to run TORF on windows. Regards.
from torf-cli.
from torf-cli.
I think I have fixed the ModuleNotFoundError. Please install/clone the master branch on GitHub and report if it works or if you get a different error message.
Keeping the same error...
C:\Users\xandynho>Pipx install https://github.com/rndusr/torf-cli/archive/refs/heads/master.zip --force
Installing to existing venv 'torf-cli'
installed package torf-cli 3.4.0, Python 3.8.2
These apps are now globally available
- torf.exe
done! β¨ π β¨
C:\Users\xandynho>torf
Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 193, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "c:\users\xandynho.local\bin\torf.exe_main.py", line 7, in
File "C:\Users\xandynho.local\pipx\venvs\torf-cli\lib\site-packages\torfcli_init.py", line 16, in run
from . import _config, _errors, _main, _ui
File "C:\Users\xandynho.local\pipx\venvs\torf-cli\lib\site-packages\torfcli_ui.py", line 24, in
from . import _term, _utils, _vars
File "C:\Users\xandynho.local\pipx\venvs\torf-cli\lib\site-packages\torfcli_term.py", line 14, in
import termios
ModuleNotFoundError: No module named 'termios'
from torf-cli.
from torf-cli.
You're not using master. The traceback you're posting complains about line 14 in _term.py, which is "import termios", but that's not what that line says in master: https://github.com/rndusr/torf-cli/blob/master/torfcli/_term.py#L14
I am doing something wrong? Is this link (https://github.com/rndusr/torf-cli/archive/refs/heads/master.zip) correct or not for master? Any suggest? My knowledgement in linux and terminal commands is not so good, but I am trying to do my best.
from torf-cli.
Hey @rndusr, it's working normal now. I replaced the contents of the torfcli folder with the files from master.zip. Thank you so much. However, strange characters are appearing at the end of lines of text. Maybe some other module is causing this problem.
from torf-cli.
from torf-cli.
I don't know why installing master with pipx didn't work for you. I would've used this command: pipx install 'git+git://github.com/plotski/upsies.git' The strange characters are control characters for cursor movement, clearing the current line, etc. They are usually supported on Unix terminals, but your terminal doesn't seem to understand them. It's not hard to fix this in principle, but I don't know anything about the terminal you're using. I would need to know how to detect it and the control characters it supports.
Hi @rndusr, I'm using Windows 10 command prompt (cmd). If you can help me to fix these strange characters, that would be nice. And about the install command I used: pipx install https://github.com/rndusr/torf-cli/archive/refs/heads/master.zip --force. I really don't know why it didn't work. Anyway, the important thing is that it is now working normally on windows 10.
from torf-cli.
Hi @rndusr, I'm sharing a file (LinesEnd.txt) where I saved the strange characters on windows. When you have time, see if you can fix this problem. Thank you very much.
http://www.fileconvoy.com/dfl.php?id=g6398d39df890191a1000384114599c25c687db68b0
Looking on google, I found some articles that shows how to check what these strange characters represent. Perhaps these information can help you find the solution. These tests were done on Windows WSL running Ubuntu 18.04.4 LTS. Best Regards.
kdantas@LAPTOP-J2M6QHEU:/mnt/c/users/xandynho/desktop$ cat -e LinesEnd.txt
Name Mirc.torrent^[[K^M$
Info Hash f8ebd04c5e10ee5c32564c6ca6b8ec342f3c2016^[[K^M$
Size 3.35 KiB^[[K^M$
Created 2021-10-12 22:19:20^[[K^M$
Created By torf 3.4.0^[[K^M$
Piece Size 16 KiB^[[K^M$
Piece Count 1^[[K^M$
File Count 1^[[K^M$
Files Mirc.torrent [3.35 KiB]^[[K^M$
Magnet magnet:?xt=urn:btih:f8ebd04c5e10ee5c32564c6ca6b8ec342f3c2016&dn=Mirc.torrent&xl=3431^[[K
kdantas@LAPTOP-J2M6QHEU:/mnt/c/users/xandynho/desktop$ cat -v LinesEnd.txt
Name Mirc.torrent^[[K^M
Info Hash f8ebd04c5e10ee5c32564c6ca6b8ec342f3c2016^[[K^M
Size 3.35 KiB^[[K^M
Created 2021-10-12 22:19:20^[[K^M
Created By torf 3.4.0^[[K^M
Piece Size 16 KiB^[[K^M
Piece Count 1^[[K^M
File Count 1^[[K^M
Files Mirc.torrent [3.35 KiB]^[[K^M
Magnet magnet:?xt=urn:btih:f8ebd04c5e10ee5c32564c6ca6b8ec342f3c2016&dn=Mirc.torrent&xl=3431^[[K
kdantas@LAPTOP-J2M6QHEU:/mnt/c/users/xandynho/desktop$ file LinesEnd.txt
LinesEnd.txt: ASCII text, with CRLF line terminators, with escape sequences
kdantas@LAPTOP-J2M6QHEU:/mnt/c/users/xandynho/desktop$ file -k LinesEnd.txt
LinesEnd.txt: ASCII text, with CRLF line terminators, with escape sequences\012- data
from torf-cli.
Related Issues (20)
- Override piece size algorithm when specified over 16MiB HOT 2
- Error Creating new torrent HOT 15
- [v3.1.0] Test failure HOT 8
- [3.2.0] Test failure HOT 3
- Differentiate adding trackers via CSV and -t HOT 15
- Feature Request : Remove files from .torrent HOT 1
- PackageNotFoundError HOT 4
- Feature Request: Control number of hashing threads HOT 1
- Feature Request: Get tracker via a URL(trackerslist) HOT 3
- Editing arbitrary key value pairs HOT 6
- [Request] Add Support For Creating Hybrid Torrents HOT 1
- torf: Unrecognized arguments
- Torf fails to create torrent if symlink exists in target directory HOT 2
- Append the name of the torrent file created with the profile name. HOT 1
- Allow specifying piece size HOT 9
- question: any way to reuse a torrent that gives error ['info']['piece length'] is invalid HOT 2
- timezone error?default date use UTC time while os use CST (Asia/Shanghai)
- [Question] Is it possible to set entropy field to a random number? HOT 2
- Exclude hidden files by default HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torf-cli.