Re: [Tutor] No module named uno in virtual environment

2018-09-08 Thread Mats Wichmann
On September 8, 2018 5:46:46 PM MDT, Jim wrote: >On 09/08/2018 05:26 PM, Mats Wichmann wrote: >> On 09/07/2018 03:10 PM, Jim wrote: >>> Mint 18.1 >>> System python3 3.5.2 >>> >>> Python3-uno is available to the system python3. How can I make it >>> available to python 3.6.5 in a virtual

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Cameron Simpson
On 08Sep2018 11:40, Alan Gauld wrote: On 08/09/18 03:15, Chip Wachob wrote: Ideally, I'd like to take the slice_size chunks that have been read and concatenate them back togetjer into a long MAX_LOOP_COUNT size array to pass back to the rest of my code. Eg: You need to create a list of

Re: [Tutor] No module named uno in virtual environment

2018-09-08 Thread Jim
On 09/08/2018 05:26 PM, Mats Wichmann wrote: On 09/07/2018 03:10 PM, Jim wrote: Mint 18.1 System python3 3.5.2 Python3-uno is available to the system python3. How can I make it available to python 3.6.5 in a virtual environment I installed using venv? with your virtualenv activated, just

Re: [Tutor] No module named uno in virtual environment

2018-09-08 Thread Mats Wichmann
On 09/07/2018 03:10 PM, Jim wrote: > Mint 18.1 > System python3 3.5.2 > > Python3-uno is available to the system python3. How can I make it > available to python 3.6.5 in a virtual environment I installed using venv? with your virtualenv activated, just install it. python -m pip install uno

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Cameron Simpson
On 08Sep2018 20:01, Cameron Simpson wrote: So, if I'm understanding the transfer() function correctly, the function takes and returns a bytearray type. It would be good to see the specification for the transfer function. They we can adhere to its requirements. Can you supply a URL? I see

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Alan Gauld via Tutor
On 08/09/18 03:15, Chip Wachob wrote: > my function's main pieces are: It would probably be better to post the entire function, a partial code sample like this just gives us an inkling of what you are trying to do but not enough to be sure of where the errors lie. > def transfer_byte_array(): >

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Alan Gauld via Tutor
On 08/09/18 03:15, Chip Wachob wrote: > Admin, please remove my earlier messages. No can do, once the emails are sent by the server they are out there on the net, stored in people's mailboxes and in various internet archives. When using a mailing list always check before sending, there's no

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Alan Gauld via Tutor
On 08/09/18 04:57, Chip Wachob wrote: > was my attempt at 'setting' the type of the variable. A variable in Python is just a name. It has no type. Only values have types. So you can set (or change) the type of a value but not of a variable. > Coming from a 'C' background, I find the lack of

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Cameron Simpson
Please try to adopt the inline reply style; we prefer it here. It lets us reply point by point and makes messages read like conversations. Anyway... On 07Sep2018 23:57, Chip Wachob wrote: Point taken on 'bytes'.. thanks. the scratch_ary = bytearray() was my attempt at 'setting' the type of

Re: [Tutor] Additionally

2018-09-08 Thread Steven D'Aprano
On Fri, Sep 07, 2018 at 10:16:38PM -0400, Chip Wachob wrote: > Thank you. > > I sent a message with the contents of both previous messages. > > Hopefully the admin can just delete the two previous messages > > Thanks for bearing with me. I'm used to posting on forum boards, not via > email.

Re: [Tutor] Help with building bytearray arrays

2018-09-08 Thread Chip Wachob
Point taken on 'bytes'.. thanks. the scratch_ary = bytearray() was my attempt at 'setting' the type of the variable. I had hoped that it would help resolve the error messages telling me that the types didn't go together. Coming from a 'C' background, I find the lack of typing in Python to be

[Tutor] Help with building bytearray arrays

2018-09-08 Thread Chip Wachob
Admin, please remove my earlier messages. This message is a properly 'self contained' message. Hello, I've been struggling with this for the last day or so and I can't seem to figure out how to make it work. I'll start out by saying that if there's a better approach, then I'm all ears. I'm