Sunday, 24 November 2024

Screwed by Auto import

 import _tkinter # If this fails your Python may not be configured for Tk 

Got this mysterious error while deploying my frappe app in production. Was wondering why the hell is tkinter coming up, as it has no place on the app code. Then found this even mysterious line in MY code:

from idlelib.browser import file_open

Wondering where it came from, as I never typed it in. The culprit was Auto import feature of the editor in Pycharm. Typing file_o shows an autocomplete menu, and pressing tab / enter to complete using it results in the above import line being added to the top of the file, least where one is able to easily notice. 

I have turned off Auto Import in the IDE now. Did you also face such issue? Drop a comment...

Thursday, 3 October 2024

requirements.txt garbled or looks corrupt? Here is the fix

 When running pip freeze > requirements.txt from PowerShell (which is the default terminal on IDEs like PyCharm),  you might see the output properly in Windows but may not work properly on Linux. This is because the file is encoded as UTF-16LE and not as UTF-8. To do it properly, the following command works:

 pip freeze | Out-File -Encoding utf8 requirements.txt

Tuesday, 13 February 2024

Autodesk Vault Server - Backup to S3

I recently installed Autodesk Vault Basic 2024 Server and Clients. It seems to be an 'OK' piece of software. Not something like git, just basic check out, check-in and versions. Needed a reliable way to backup the data in it. There is a menu option in the GUI to do just that.



But I wanted precise control over things and wanted to upload to AWS S3. So I decided to write a python code that does just that! Vault server has a command line option to do backups too, that could be used: 

Example

Connectivity.ADMSConsole.exe -Obackup -BC:\Backup -VUadministrator -VPadmin -VAL -LC:\Backup\BackupLog.txt

Pls check out my code at https://github.com/smtwkla/pyAutoDeskVaultBackup 



Friday, 2 February 2024

Amazon Site-To-Site VPN to Sonicwall : No Traffic

 Configured my SonicWall TZ 370 to connect to AWS Site-To-Site VPN. Does not work even after extensive checking. Not able to ping the VPN even though the tunnel is up and shows up as green. removed all manual config and let the SonicWall firmware's AWS configurator setup the connection. Does not work even then. 

Then turned on Asymmetric Route Support in the interfaces T1 and T2 created, in the 'Advanced' tab. Works immediately!



Thursday, 16 November 2017

My experience with ERPNext

ERPNext is simply amazing!!! I am going for on-site installation and it is very interesting!!!

Thursday, 30 March 2017

MXGuardDog

We are testing the online spam protection service MXGuardDog. Setup seems pretty straight forward. Interface is clutter free and clean. It also seams to work without fuss. Looks good. Check it out: MXGuardDog Anti spam service

Tuesday, 7 March 2017

Gopuram Brand Clay Flooring Tiles

Who makes the best clay flooring tile in Tamilnadu? Obviously, Sree Murugan Tile works, Pavoorchatram!!! Our Gopuram brand of clay tiles are great value for money and have the best durability. Please check our website.