Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Python SMB Connection
-
@DavinE you cold also remove ,use_ntlm_v2 = True) in the source code of SmB_client.py
Just to check
-
@cvp
Its the same... -
Do you know what protocol Pythonista use ?
SMB1; SMB2; SMB3 ? -
@DavinE no idea.
Your code works on my NAS -
@cvp
Which on do you have ? WD or ?and do you mean on your iPad ?
-
@DavinE my NAS is a WD
I work on an iPad. WitH your code.
It also works with a flash drive connected in usb slot of my router, drive that I always reach in smb. -
Obviously, the smb module in Pythonista is old and is not identical as on your Radpberry.
-
@cvp said:
@DavinE my NAS is a WD
I work on an iPad. WitH your code.
It also works with a flash drive connected in usb slot of my router, drive that I always reach in smb.When i use my Raspi with the data i get this:
RASPBERRYPI4 Error on line 87 OperationFailure Failed to list on Ebner-Elektrotechnik: Unable to connect to shared device ==================== SMB Message 0 ==================== SMB Header: ----------- Command: 0x03 (SMB2_COM_TREE_CONNECT) Status: 0x00000000 Flags: 0x00 PID: 1563 MID: 9 TID: 0 Data: 78 bytes b'09000000480046005c005c005200410053005000420045005200520059005000490034005c00450062006e00650072002d0045006c0065006b00740072006f0074006500630068006e0069006b00' SMB Data Packet (hex): ---------------------- b'fe534d42400000000000000003000000000000000000000009000000000000001b06000000000000979d8799000000000000000000000000000000000000000009000000480046005c005c005200410053005000420045005200520059005000490034005c00450062006e00650072002d0045006c0065006b00740072006f0074006500630068006e0069006b00' ==================== SMB Message 1 ==================== SMB Header: ----------- Command: 0x03 (SMB2_COM_TREE_CONNECT) Status: 0xC0000022 Flags: 0x01 PID: 1563 MID: 9 TID: 0 Data: 9 bytes b'090000000000000000' SMB Data Packet (hex): ---------------------- b'fe534d4240000000220000c003000100010000000000000009000000000000001b06000000000000979d87990000000000000000000000000000000000000000090000000000000000' []
this is a shared folder on my Pi
Ebner-Elektrotechnik
-
@cvp said:
Obviously, the smb module in Pythonista is old and is not identical as on your Radpberry.
it looks so but it sucks.... :(
-
@DavinE smb is not a standard module of Pythonista, in site-packages, thus you could try to install there the same as on your Raspberry.
-
@cvp
smb is in the module of pysmb or ?
on my iPad an my Pi the version is the same.... 1.2.6
and i installed both withpip install pysmb
-
-
I have the same problem on another WD NAS....
-
-
-
-
-
@DavinE I normally access this NAS via FTP but I just tested it with your script and I meet the same connection error.
-
-