Comments (19)
Hello @vprithiviraj , can you tell me on which file is this error? Unfortunately I don't have any windows machine around and I cannot debug this.
from cclib.
here with i attached which are all the lines the terminal is showing like that. i tried to run in cygwin terminal. there i didn't get the detailed information about those things. so i did wite the MS command prompt and gave you as a screenshot.
from cclib.
Ok, it looks that there is a system exception somewhere and the error message is not on english. I guess you are using a non-english windows system?
For a quick solution, I would say to open cc_info.py
, go to line 30 and change what's in the print parenthesis with:
("uERROR: %s" % unicode(e))
let me know if this helps
from cclib.
python 2.7.11 is recommended only know?
I have to install that package first dude..
from cclib.
Yes, I could spend some time to make this code compatible with python 3.x there is not much work needed. Thanks for reporting this ๐
from cclib.
thanks for your patience. Actually it took some time for installation of python 2.7.11. now the different error came comparing before. i hope u can understand by below screenshot
from cclib.
It looks you are missing the serial
python module. Make sure to run the following in the project folder in order to install everything:
pip install -r requirements.txt
Ps. Check this section on the readme: https://github.com/wavesoft/CCLib#2-prepare-your-software
from cclib.
i have installed the pyserial using the above mentioned command before only. but still that error is coming.
i downloaded separate pyserial as exe format and installed after that also same error.
from cclib.
It sounds like PYTHONPATH
is not defined in your environment, so python doesn't know where to look for modules. Have a look here: https://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7
from cclib.
NO.. it is not happening now also dude. same error of last screenshot i shared you
it is telling only about the module named as serial is not available. so will i be able to clear the output by adding the python script in the folder where i copied all these cc debugging python scripts.
is there any particular location i should keep all the cc debugging python scripts for make the serial to get detected??
i tried with cygwin terminal also after doing all this for observing error it is giving like that. so there i found different like in the screenshot i attached above
from cclib.
can you respond for this when you are free?
from cclib.
Hey @vprithiviraj , it seems that something is going wrong with your python installation. From a quick google search I found this, which I am not sure it's helpful : http://stackoverflow.com/questions/18946286/python3-installed-successfully-but-cannot-be-opened-in-terminal
So, one thing to check is that your PYTHONPATH
variable points to the same version of the directory that your python version. Ex. dont use the Python 3.x modules when running Python 2.x.
One last thing that you could try is to use virtualenv
to create an isolated environment with only what you want, properly installed:
- Go to the project folder and type
virtualenv env
- This will create a folder
env
that contains a sandboxed version of the python modules - Activate that environment, typing
env\Scripts\activate
- Install again the correct modules typing
pip install -r requirements.txt
- Try to run the scripts again (try also running them like
python ci_info.py COM12
) - When you are done, close the window or type
deactivate
to deactivate the sandbox
from cclib.
today i cleared all my python errors araised. but not it is telling could not read from the serial port. So what can be possibilities for this??
from cclib.
A few things:
- First the obvious, make sure it's correctly connected and you see the COM port in the windows devices.
- Make sure you are using the correct port (use the arduino IDE -> Open the Serial Monitor and see if it succeeds).
- Make sure you have flashed the correct thing to your arduino.
Also, can you paste a screenshot with the error. I want to see if this is an exception or an error with your set-up.
from cclib.
Hi, i was not able to get back to my work bcoz of festival holidays. now i have shared the screenshot of the error. kindly look into that.
when i didn't connect the arduno Uno, the com port the error will look like the second response
And also i'm doubtful that i'm using HM-10 breakout module for this work. if any inbulit HM-10 firmware is dumped in the breakout board. then whether it will make any restrictions to read the information from the Chip???
from cclib.
Hi Mr.wavesoft, Can you look into my problem? is there any possibility problem with the arduino sketch i dumped in Arduino Uno. Please let me know if you found any solution for this.
Thanks in advance.
from cclib.
Hello @vprithiviraj . From both of these errors it looks that there is something wrong with the communication between your PC and your Arduino. Unfortunately I haven't tested this code on windows and I am not 100% sure that this is not purely a library issue.
What I see is the following:
- The
cc_info.py
opens the COM11 port successfully - The program sends a PING message. From the looks of it, the transmission succeeded
- Then it tries to read a response, but it reads nothing (perhaps the other end closed the port?). That's why you see the
Could not read from the serial port!
error. - Then either the library doesn't close the port properly, or the Arduino board has some failure and when it tries to open the port again, it fails with
Could not open port COM11
error.
Just to confirm, you have flashed the CCLib_proxy
example to your Arduino right?
Something else you can try is to close the Arduino IDE before trying to run the cc_info.py
, just in case it keeps some COM port open.
from cclib.
Hey @vprithiviraj , did you have any success eventually? I will get access to a windows computer soon, so I can properly debug this on windows tool. Otherwise, I will close this issue.
from cclib.
did you have any success eventually?
no I have not got any success. COM port error only use to come for me always
i bought the module from
https://www.fasttech.com/products/0/10004051/3875400-cc2541-bluetooth-4-0-ble-transparent-serial-data
this module is having inbuilt HM-10 firmware. Will that firmware disturb our operation. actually before i thought our process will erase and write our new program inside. but, now i'm suspecting that one may create the issue of COM port error. @wavesoft
from cclib.
Related Issues (20)
- support for CC2530 HOT 5
- Problem with CClib proxy HOT 29
- Start linear address in hex file HOT 3
- flashing TI CC2531 stick with TI Zstack ZNP firmware HOT 1
- Suggestion to change cc_delay to make it MCU speed agnostic HOT 1
- Testing CC2541
- Testing CC2531 HOT 9
- Windows support HOT 4
- ะกะก2530 Connect problem (ChipID always 0x0) HOT 3
- Flashing CC2531 with approx 250 KB firmware takes 2 hours
- cc_write_flash.py ERROR: IOError: Line 514: Unknown record type 05 HOT 6
- CC2531: Resistors issue HOT 8
- Wrong flash size read if chip is DEBUG_LOCKED HOT 3
- CC2531 license
- Support for cc2640
- ERROR: Could not detect a CCLib_proxy connected on any serial port
- Add support for python 3.x HOT 1
- trying to read the firmware of a cc2541 0x41.. would return all bytes as 0xFF HOT 8
- CC2530 support HOT 6
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 cclib.