Code Monkey home page Code Monkey logo

Comments (8)

carlosperate avatar carlosperate commented on May 26, 2024

Hi Rubens,

I'm unable to replicate this issue in windows 7 32 bit running on a virtual machine. Could you give me a bit more info about your python instillation?
Where does the RESTART message come from? are you running the python interpreter inside some IDE (like visual studio)? What COM ports are available in your computer? (you can use the Arduino IDE to check that)

from ardublockly.

RubensQRZ avatar RubensQRZ commented on May 26, 2024

Hi Carlos,

I will try to answer some of these questions tomorow, because i don't have acces to that machine now. I'm working with ArduBlockly in two machines with windows 7 64bits and I had no problem like that. I used the same procedure in all machines: I Installed python 2.7.8, after that I downloaded ArduBlockly and closure-library from github, unziped this into my users directory (I have admin rights in all these machines) and run start.py.

Thank you.

Rubens.

from ardublockly.

RubensQRZ avatar RubensQRZ commented on May 26, 2024

Hi Carlos,

The only COM port avaiable in the machine is COM1 (that's what the arduino IDE shows me)

I will describe what did i do to workaround (i dont know if that is the write word to "escape the problem for now")

I changed the "string buffer" in "list_ports_windows.py" to this:


def string(buffer):
s = []
return ''.join(s)


I Know that this doesn't solve the problem, but I can go on with my work for now in this machine.

Thanks.

from ardublockly.

RubensQRZ avatar RubensQRZ commented on May 26, 2024

Hi Carlos.

I "asked" the program to print each "c in buffer", using this line command:

    print (chr(c & 0xff))

And that's what o got:

Settings will be set to the default values.
L
P
T
1
A
C
P
I

P
N
P
0
4
0
1

4
&
E
5
A
C
E
E
3
&
0
L
P
T
1
P
o
r
t
a

d
e

I
m
p
r
e
s
s
o
r
a

E
C
P

(
L
P
T
1
)
C
O
M
1
A
C
P
I

P
N
P
0
5
0
1

1
C
O
M
1
P
o
r
t
a

d
e

c
o
m
u
n
i
c
a
รง
รฃ
o

(
C
O
M
1
)

from ardublockly.

carlosperate avatar carlosperate commented on May 26, 2024

I was finally able to get around to look into this, thank you for all the information provided. Could you check if the latest commit to master fixes this issue for you?

from ardublockly.

carlosperate avatar carlosperate commented on May 26, 2024

There has been some changes in the python code that might (hopefully not) affect your testing.
I'd recommend to check commit 452fafd first in case master gives you an unrelated problem.

You can download the code directly from this link (however, the closure library submodule will be empty and needs to be added if you want to test it properly), or if you are using git you can do:

git fetch origin
git checkout 452fafd161655ba91adae155a1d0a11f62abec29 

from ardublockly.

carlosperate avatar carlosperate commented on May 26, 2024

This should be fixed from commit caeac62, however I will wait until more testing can be done before I close the issue.

from ardublockly.

carlosperate avatar carlosperate commented on May 26, 2024

Since we've moved to use Python 3 for the executables this should no longer be an issue. Please do let me know if you still encounter this using Python 2.

from ardublockly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.