Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 A question about python in Raspberry
Good day community! this is my first post and i need to say something before start: I'm not a native English speaker, so, let me say sorry at this moment for my grammar mistakes.

Well the thing is:
I'm working on a python script that reads code bars in Colombian's ID, I'm using a simple input function, a code bar scanner and a i'm working on a Raspberry Pi 3 b+.
So, my problem is:
When I run the script using python2 the input function returns my codebar information with a tab separation between numerID and name, that's really useful for the goal that I tried to achieve, but when I run it with python3 the tab separation doesn't appear and I need to work with python3 for libs issues...
Why is this happening? theres some way to fix it?

Hope you have a wonderful life and thanks for reading :3
can you show your code?
it's just:
x = input('Ingrese el numero de cedula')

I'd love to show my command prompt output but it shows my personal information and I don't thing that it could be a good idea
I don't know what comes from your barcode scaner, but read this:
to understand the difference between input() in python2 and python3

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Raspberry Pi Python Rest Post madaxe 0 133 Nov-01-2019, 07:30 PM
Last Post: madaxe
  Raspberry - Python 3.7 - Installation trouble madjo1983 2 473 Jul-07-2019, 02:06 AM
Last Post: DeaD_EyE
  Install Python on Raspberry Pi 3 B+ loren41 4 939 May-03-2019, 03:13 PM
Last Post: loren41
  Gamepad vibration in raspberry pi with Python don't work sleepwalk 0 538 Mar-07-2019, 10:24 PM
Last Post: sleepwalk
  Python Beacon positioning and animation with Raspberry pi matplotlib joefreedy 1 563 Feb-14-2019, 08:47 PM
Last Post: joefreedy
  Python version 3 that seems to be ignored by the system on a Raspberry Pi Discret68 3 610 Dec-28-2018, 06:42 PM
Last Post: Gribouillis
  Python Idea Assist.: BerryIMU & Raspberry Pi 3 Audio Mapping StephLeber 0 667 Dec-09-2018, 10:43 AM
Last Post: StephLeber
  async question on raspberry pi baukeplugge 2 459 Nov-07-2018, 07:58 PM
Last Post: baukeplugge
  No route to host error when using in python on raspberry pi mariummalik22 0 1,598 Jan-06-2018, 08:34 PM
Last Post: mariummalik22

Forum Jump:

Users browsing this thread: 1 Guest(s)