Giter Site home page Giter Site logo

Comments (13)

rndusr avatar rndusr commented on May 25, 2024

from torf-cli.

kdantas avatar kdantas commented on May 25, 2024

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.

rndusr avatar rndusr commented on May 25, 2024

from torf-cli.

rndusr avatar rndusr commented on May 25, 2024

from torf-cli.

kdantas avatar kdantas commented on May 25, 2024

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.

rndusr avatar rndusr commented on May 25, 2024

from torf-cli.

kdantas avatar kdantas commented on May 25, 2024

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'
⚠️ Note: torf.exe was already on your PATH at c:\users\xandynho\appdata\roaming\python\python38\scripts\torf.exe
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.

rndusr avatar rndusr commented on May 25, 2024

from torf-cli.

kdantas avatar kdantas commented on May 25, 2024

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.

kdantas avatar kdantas commented on May 25, 2024

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.
Strange Character

from torf-cli.

rndusr avatar rndusr commented on May 25, 2024

from torf-cli.

kdantas avatar kdantas commented on May 25, 2024

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.

kdantas avatar kdantas commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.