Comments (4)
I believe there was an open pull request in the same vein (#68); my concern with what is proposed in the StackOverflow thread is that it doesn't cover all operating systems; taking a look at psutil
, they have multiple different implementations of pid_exists()
depending on the flavour of *nix, the flavour of Windows, or if you're on OSX. However, since this has been asked more than once, I think adding a install option that allows one to use it without psutil
might make sense; something like an install option
; this would require updating the setup.py
, and adding in the pid_exists()
code (probably from #68) with a try-catch
of sorts. E.g.
# util.py
def _pid_exists():
# internal implementation
def pid_exists(pid):
try:
import psutil
return psutil.pid_exists(pid)
except ImportError:
return _pid_exists(pid)
from pylink.
I think it is acceptable, this makes pylink easy to install.
from pylink.
Hi there @hkpeprah was there any progress on this?
I used the pylink
library a lot in our internal and external tooling, but since it requires our Windows users to perform a huge install of Visual Studio C++ IDE and its build tools etc, I have unfortunately had to drop it and opt for commander scripts instead.
This would be a great feature if added. It seems 'broken' to have to install such large prerequisites.
from pylink.
Hi @FARLY7, sorry about that. I currently don't have the bandwidth to work on this, but would gladly accept a modification of #68 that doesn't completely drop psutil
, but instead allows for the package to be installed without psutil
via some sort of install command option.
from pylink.
Related Issues (20)
- Tests fail on some architectures (using unittest.mock) HOT 2
- Pylink locks up on connect command HOT 2
- nRF5340 flashing issue: Failed to prepare for programming. Could not preserve target memory. HOT 6
- RTT Autodetect works with J-Link RTT Viewer, but for pylink I have to explicitly provide the address HOT 1
- AttributeError: module 'pylink' has no attribute 'JLink'. HOT 9
- Loading library on Aarch64 fails because pylink attempts to load 32-bit library HOT 2
- pylink.errors.JLinkFlashException: Could not write target memory when trying to flash a .hex file. HOT 1
- Error when programming or erasing Kinetis microcontrollers HOT 3
- pylink.errors.JLinkException: Could not find supported CPU HOT 24
- pylink.JLink.rtt_read blocks indefinitely when no data is available? HOT 1
- Specify JLinkScript file HOT 1
- CORESIGHT_AddAP doesn't execute HOT 6
- Can support C-JTAG HOT 14
- Unlocking STM32L0 HOT 1
- custom ResetTarget function in pylink HOT 7
- Error "Failed to perform RAMCode-sided Prepare()" Fail "JLinkFlashException: Unspecified error." HOT 2
- rtt_write only working when I have JLink RTT viewer open HOT 8
- Downloading Firmware image to Cortex Fails HOT 2
- 1.2.0: Some tests are incompatible with Python 3.12 HOT 2
- Do I need to use jlink.connect before doing jlink.rtt_start? HOT 2
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 pylink.