Comments (2)
Hi Alfonso,
You need the following line at the start of your program to fix the exception handling routine:
import traceback
The problem you are hitting with 'TypeError: Can't convert 'bytes' object to str implicitly' is that a string and bytes are treated differently. Strings needed to be encoded/decoded to bytes (i.e. unicode to binary storage) but for your simple script you should be able to add the 'b' prefix to the username and password as required i.e.
username = b'user'
password = b'pass'
The original calling program uses .encode() on strings from the config and GUI as required when calling the library:
res = libautoflashgui.mainScript(self.host.get(), self.username.get().encode(), self.password.get().encode(), self.flashfirmware.get(), self.firmwarefile.get(), self.flashSleepDelay, self.methodAction.get(), self.command.get(), self.splitActive.get(), self.ddnsService.get(), self.connectRetryDelay, self.interCommandDelay)
Can you please try defining your username and password with b'' and see if it fixes your error?
Regards,
Mark.
from autoflashgui.
Closing, please re-open if you need more help. :)
Cheers,
Mark.
from autoflashgui.
Related Issues (20)
- Proposals of changes/improvements for autoflashgui HOT 1
- Multilanguage code not working HOT 1
- Code not work as expected HOT 1
- [SOLVED] Cannot install HOT 3
- struggle with dga4132 HOT 2
- Running doesn't run =( HOT 2
- [ENHANCEMENT] add support for 788VN TELMEX 17.2.0360 HOT 2
- ValueError preventing program launch HOT 7
- [ENHANCEMENT] Add support for VANT-9 and VBNT-Z (Vodafone Ultra Hub & Ultra Hub Plus) from New Zealand HOT 4
- TG799vac Xtream / VANT-W
- VBNT-K HOT 1
- [SSL: CERTIFICATE_VERIFY_FAILED]
- NameError: name 'sys' is not defined HOT 4
- .exe in repo won't start from NETPATH
- Cannot run on MacOS HOT 3
- The version of this file is not compatible HOT 1
- werkzeug import cached_property issue HOT 2
- VBNT-L no root access | Access denied! HOT 2
- Cannot run with urllib3 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 autoflashgui.