WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python error  (Read 5546 times)

Offline Aladin

  • Newbie
  • *
  • Posts: 40
python error
« on: March 30, 2020, 09:29:26 AM »
/usr/local/bin/python: line 1: syntax error: unexpected "("

i need help

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #1 on: March 30, 2020, 09:33:37 AM »
Which version of python are you using and what command did you issue to get that error message?

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: python error
« Reply #2 on: March 30, 2020, 09:38:48 AM »
i use python 3.6
i try to run sudo python
« Last Edit: March 30, 2020, 10:06:49 AM by Aladin »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #3 on: March 30, 2020, 10:24:46 AM »
Does "sudo python3.6" give the same result?

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: python error
« Reply #4 on: March 30, 2020, 02:33:01 PM »
yes
/usr/local/bin/python3.6: line 1: syntax error: unexpected "("

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #5 on: March 30, 2020, 11:15:46 PM »
I only have piCore 9.x on an RPi3 and piCore 11.x on an RPi4 to test and python works fine on both.

I downloaded the python3.6 extension from the piCore 10.x repo and it looks OK.

Do you get this:
Code: [Select]
$ tce-load -i file
$ file /usr/local/bin/python3.6
ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, stripped

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11229
Re: python error
« Reply #6 on: March 31, 2020, 04:25:19 AM »
Hi Juanito
I think you nailed it. I recently had a similar error pop up and I've been racking my brain try to remember the cause. I think it was
caused by a binary that didn't match my architecture.

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: python error
« Reply #7 on: March 31, 2020, 05:23:46 AM »
$ tce-load -i file
$ file /usr/local/bin/python3.6
/usr/local/bin/file: line 1: syntax error: unexpected "("

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #8 on: March 31, 2020, 05:34:51 AM »
What machine are you using and with which architecture of tinycore?

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: python error
« Reply #9 on: March 31, 2020, 06:05:26 AM »
i use Rpi3b+  with piCore-10.0beta12b

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #10 on: March 31, 2020, 07:03:54 AM »
How did you download python3.6? Did you use “tce-load -w” or did you download it manually?

I ask you get that sort of error from the incorrect architecture.

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: python error
« Reply #11 on: March 31, 2020, 07:18:32 AM »
I download it manually

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #12 on: March 31, 2020, 07:32:53 AM »
Maybe you could try deleting it and downloading with “tce-load -wil python3.6”?

Offline Aladin

  • Newbie
  • *
  • Posts: 40
Re: python error
« Reply #13 on: March 31, 2020, 08:04:17 AM »
when i try this any solution
sudo wifi.sh
No wifi devices found!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14555
Re: python error
« Reply #14 on: March 31, 2020, 08:08:51 AM »
You will need a wired connection.