Comments (9)
I just said that you should use python2, because there is no support for python3.
You got it working, so everything is fine, right?
from libmpsse.
Hello,
Did you resolve this issue? If so how? Running into the same problem myself.
from libmpsse.
Hello,
Did you resolve this issue? If so how? Running into the same problem myself.
@Brets0150 The error says it clearly. Just install the missing library ;)
python2 -m pip install libmpsse
from libmpsse.
I don't remember exactly what I did but I think I switched over to using flashrom
for firmware extraction. @whoot's solution seems simple enough if it works.
from libmpsse.
Hi guys, i would like to re-open this topic, after a lot of adaptation for the spiflash.py script, to make it work with python3, like:
1- add () for all print""
2- change the exception try from (except GetoptError, e:) to be (except getopt.GetoptError as e:)
Then i tried to run the script and i got this error:
After many search i didn't succeed to install the libmpss:
any suggestion please ? i am using kali linux 2023.2
thx
from libmpsse.
As far as I know there is no Python 3 version of libmpsse.
However, you could try this patch here: #10
from libmpsse.
@whoot thanks, well in that case i believe the best approach is to make the script run with python2 on latest kali version (in my case kali 2023.2)
These are my steps that can be a fix for this issue:
1- Change python version system-wide with update-alternatives python to temporary force it on python2 while using the spiflash.py script:. (Note: don't forget to switch back to your default python version once you finish using the script since your system packages will probably based on the lasted python version.)
2- Then i installed the missing library libmpsse (you need to install first the pip for python2):
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
python2 -m pip install libmpsse
3- Libmpsse requires swig as well as the libftdi and python development packages. as mentioned here.
in case you are using latest debian version like kali 2023.2, this command may not work:
To fix this as well : please added (import getopt) to the spiflash.py code
like that:
from libmpsse.
@whoot thanks, well in that case i believe the best approach is to make the script run with python2 on latest kali version (in my case kali 2023.2)
These are my steps that can be a fix for this issue:
1- Change python version system-wide with update-alternatives python to temporary force it on python2 while using the spiflash.py script:. (Note: don't forget to switch back to your default python version once you finish using the script since your system packages will probably based on the lasted python version.)
This should not be necessary. Kali has python2 already installed.
from libmpsse.
@whoot Yes its necessary, and my steps not about installing python2. You have to read with attention my steps. But i will explain:
1- new version kali linux once you install, dominate python3. and in case you need to use python2 you need to update-alternative (sometime)
2- pip for python2 not installed by default on new kali version, you have to install.
None of my steps was without a POC (you can see the screenshoot ! )
The best thing you can do is to install kali linux 2023.2 VM and try with python2 to run the spiflash script directly without my steps and you will understand the struggle i passed.
from libmpsse.
Related Issues (20)
- Multiple Definition of fast_rw_buf
- FastTransfer failing on build_block_buffer
- compilation warnings
- random parallel compilation failures (-j4) HOT 4
- I2c HMC5883L connection issue to FT2232H
- Problems with libmpsse on OSX 10.11
- Input pins are set to output type, buggy and/or dangerous if using inputs HOT 1
- modified version HOT 4
- Is devttys0/libmpsse the de facto upstream for libmpsse? HOT 7
- dual MPSSE support? HOT 1
- including mpsse.h in projects can cause "duplicate symbol" linker errors HOT 1
- Problems with i2c Read()
- FT232 UART device gets disconnected when an SPI device is run HOT 4
- Error while running C examples HOT 2
- Integrating with OSS-Fuzz
- Erroneous clock frequency HOT 8
- Python 3 support HOT 2
- error: missing fdtdi1 library HOT 2
- Is library up to date? Relationship to FTDI's LibMPSSE 1.0.3 release of August 16, 2022?
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 libmpsse.