WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python error  (Read 7163 times)

Offline Aladin

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

i need help

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: python error
« Reply #1 on: March 30, 2020, 12:33:37 PM »
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, 12:38:48 PM »
i use python 3.6
i try to run sudo python
« Last Edit: March 30, 2020, 01:06:49 PM by Aladin »

Offline Juanito

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

Offline Aladin

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: python error
« Reply #5 on: March 31, 2020, 02:15:46 AM »
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: 11701
Re: python error
« Reply #6 on: March 31, 2020, 07: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, 08: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: 14851
Re: python error
« Reply #8 on: March 31, 2020, 08: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, 09:05:26 AM »
i use Rpi3b+  with piCore-10.0beta12b

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: python error
« Reply #10 on: March 31, 2020, 10: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, 10:18:32 AM »
I download it manually

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: python error
« Reply #12 on: March 31, 2020, 10: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, 11:04:17 AM »
when i try this any solution
sudo wifi.sh
No wifi devices found!

Offline Juanito

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