Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 A question about python in Raspberry
#1
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
Quote
#2
can you show your code?
Quote
#3
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
Quote
#4
I don't know what comes from your barcode scaner, but read this:
https://python-forum.io/Thread-Python3-2...-raw-input
to understand the difference between input() in python2 and python3
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Basic coding question with Python Than999 3 664 Jul-17-2019, 04:36 PM
Last Post: jefsummers
  Raspberry - Python 3.7 - Installation trouble madjo1983 2 192 Jul-07-2019, 02:06 AM
Last Post: DeaD_EyE
  Raspberry pi simpel coding mike3001 2 205 May-22-2019, 03:38 PM
Last Post: mike3001
  Install Python on Raspberry Pi 3 B+ loren41 4 518 May-03-2019, 03:13 PM
Last Post: loren41
  Newb question: Debugging + Linting Python in Visual Studio Code Drone4four 1 197 Apr-15-2019, 06:19 AM
Last Post: perfringo
  Enabling I2C on Raspberry Pi DJBuck 1 180 Mar-28-2019, 08:53 PM
Last Post: Larz60+
  Serial communication with raspberry pi 3B and Xbee kj7 0 283 Mar-25-2019, 03:39 AM
Last Post: kj7
  Gamepad vibration in raspberry pi with Python don't work sleepwalk 0 296 Mar-07-2019, 10:24 PM
Last Post: sleepwalk
  Python Beacon positioning and animation with Raspberry pi matplotlib joefreedy 1 354 Feb-14-2019, 08:47 PM
Last Post: joefreedy
  I love the simplicity of Python but have a question Jeff_Waldrop 6 403 Feb-04-2019, 10:26 AM
Last Post: Jeff_Waldrop

Forum Jump:


Users browsing this thread: 1 Guest(s)