Seite 1 von 1

TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 20.12.2023 00:22
von JAC!
Hallo zusammen,
gibt's es sowas? Googlen hat erst mal nichts gebracht.
Viele Grüße, Peter.

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 20.12.2023 00:37
von tschak909

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 24.12.2023 01:40
von JAC!
A Linux file system driver which appears to be written in Python? I don't have too much experience with both. Do you think this can somehow be sued on Windows/macOS?

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 24.12.2023 04:43
von tschak909
There is a FUSE driver, yes, but there is also a stand-alone client (the tnfs_client.py) too.

-Thom

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 25.12.2023 21:10
von JAC!
C:\jac\system\WWW\Tools\TNFS\TNFSClient>python tnfs_client.py
File "C:\jac\system\WWW\Tools\TNFS\TNFSClient\tnfs_client.py", line 101
raise ValueError, "Wire data isn't for this command"
^
SyntaxError: invalid syntax

I assume 12 years since the last updates somehow makes it incompatible with
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 25.12.2023 22:45
von cas
JAC! hat geschrieben:
25.12.2023 21:10
C:\jac\system\WWW\Tools\TNFS\TNFSClient>python tnfs_client.py
File "C:\jac\system\WWW\Tools\TNFS\TNFSClient\tnfs_client.py", line 101
raise ValueError, "Wire data isn't for this command"
^
SyntaxError: invalid syntax

I assume 12 years since the last updates somehow makes it incompatible with
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32
Yes, your Python is too new, as the code is Python2 (not Python3) code.

In Python 2, not everything required a function call syntax, like the "print" command

print "Hello World"

In Python 3, everything has to be a function call, so the "print()" syntax is

print ("Hello World")

The tnfs_client.py code does contain "python 2" style statements, so you need to find a python 2 interpreter for your OS.

Another telling sign is the new of the (unix) interpreter found in the first line, it references "/usr/bin/python", which is usually the Python 2 interpreter, while Python3 would be "/usr/bin/python3"

Oh the joy of incompatible software upgrades :)

Greetings

Carsten

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 25.12.2023 23:02
von DjayBee
JAC! hat geschrieben:
25.12.2023 21:10
I assume 12 years since the last updates somehow makes it incompatible with
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32
Probier's mal damit:

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 26.12.2023 00:40
von JAC!
Excellent, that one works out of the box. Do you have a link for reference where it's from?
TNFS-Shell.png

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 26.12.2023 00:41
von Dinadan
# Copyright (c) 2012 Radu Cristescu
#
# Adapted to Python 3 by Thomas Meyer in 2022

Re: TNFS Client (nicht Server!) für Windows/macOS?

Verfasst: 26.12.2023 11:34
von DjayBee
JAC! hat geschrieben:
26.12.2023 00:40
Do you have a link for reference where it's from?
https://github.com/FujiNetWIFI/spectran ... ree/master