Update from V115 to V117 Breaks Python

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
bbmak
Posts: 24
Joined: Sat Oct 03, 2015 8:25 pm

Re: Update from V115 to V117 Breaks Python

Post by bbmak »

cat /etc/network/interfaces
#/etc/network/interfaces

# Local
#auto lo
#iface lo inet loopback

# Ethernet
allow-hotplug eth0
iface eth0 inet static
metric 0
address 192.168.0.70
netmask 255.255.255.0
gateway 192.168.0.2
dns-nameservers 8.8.8.8 8.8.4.4

# Wifi
#allow-hotplug wlan0
#iface wlan0 inet static
metric 1
#address 192.168.0.70
#netmask 255.255.255.0
#gateway 192.168.0.2
#wireless-essid FuzonWifi
#wireless-key abcde12345
#wireless-mode Managed
#wireless-power off
#wpa-ssid FuzonWifi
#wpa-psk abcde12345
#dns-nameservers 8.8.8.8 8.8.4.4
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.2 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update from V115 to V117 Breaks Python

Post by Fourdee »

In /etc/network/interfaces, you need to enable the following lines:

Code: Select all

auto lo
iface lo inet loopback
Reboot then try again.

Have you manually commented out these entries? If so doing so may break dietpi-config > Networking adapters.

Code: Select all

# Wifi
#allow-hotplug wlan0
#iface wlan0 inet static
metric 1
#address 192.168.0.70
#netmask 255.255.255.0
#gateway 192.168.0.2
#wireless-essid FuzonWifi
#wireless-key abcde12345
#wireless-mode Managed
#wireless-power off
#wpa-ssid FuzonWifi
#wpa-psk abcde12345
#dns-nameservers 8.8.8.8 8.8.4.4
A disabled WiFi adapter should look like this. This will prevent dietpi-config from obtaining unexpected data:

Code: Select all

# Wifi
#allow-hotplug wlan0
iface wlan0 inet dhcp
metric 1
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
wireless-essid Not_Set
wireless-key Not_Set
wireless-mode Managed
wireless-power off
wpa-ssid Not_Set
wpa-psk Not_Set
#dns-nameservers 8.8.8.8 8.8.4.4
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
bbmak
Posts: 24
Joined: Sat Oct 03, 2015 8:25 pm

Re: Update from V115 to V117 Breaks Python

Post by bbmak »

Thank you. Following you advice, it works now.

one more question, do I need to comment the #dns-nameservers 8.8.8.8 8.8.4.4 If I do not want the wifi? In your quote, you did put a comment there.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Update from V115 to V117 Breaks Python

Post by k-plan »

Hi bbmak,
bbmak wrote:one more question,
please have a look:

Code: Select all

root@oDroid-C1-TEST:~# cat /etc/network/interfaces

Code: Select all

#/etc/network/interfaces
#Please use DietPi-Config to modify network settings.

# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth1
....
will say, if you want to alter your network settings, please use menu " 7 Network Options: Adapters " in:

Code: Select all

root@oDroid-C1-TEST:~# dietpi-config
DietPi-Config - Network Settings
DietPi-Config - Network Settings
In this menu you can as well disable WiFi adapter:
DietPi-Config - WiFi Adapter
DietPi-Config - WiFi Adapter
bbmak wrote:do I need to comment the #dns-nameservers 8.8.8.8 8.8.4.4 If I do not want the wifi?
Correct is:

Code: Select all

# Wifi
 . . .
#dns-nameservers 8.8.8.8 8.8.4.4
bbmak wrote: In your quote, you did put a comment there.
" dietpi-config " did this. Where is no need, to edit " /etc/network/interfaces " manually, to disable WiFi adapter.
But if you edit the file manually before, you have to set it now "once" by hand, so dietpi-config can work correct.

BWT: - to have one, both, fallback network adapters working at the same time, having two different gateways or subnets, working infrastructure mod, static IP or dhcp, with WiFi HotSpot, with PiHole installed and so on, is a new feature in v116/ v117: https://github.com/Fourdee/DietPi/issue ... -210905921

And yes, it was a long and stony journey for @Fourdee to get it on work. :D
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
bbmak
Posts: 24
Joined: Sat Oct 03, 2015 8:25 pm

Re: Update from V115 to V117 Breaks Python

Post by bbmak »

Thanks guys. Really appreciate your helps.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Update from V115 to V117 Breaks Python

Post by k-plan »

Hi,

do now "dietpi-config" work for you? Can you change the network settings of your adapter?

Does internet connection work after changing any settings?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
bbmak
Posts: 24
Joined: Sat Oct 03, 2015 8:25 pm

Re: Update from V115 to V117 Breaks Python

Post by bbmak »

k-plan wrote:Hi,

do now "dietpi-config" work for you? Can you change the network settings of your adapter?

Does internet connection work after changing any settings?
Yes, after following Fourdee's instruction, it works. I changed the /etc/network/interfaces back to the default setting of dietpi.
dietpi-config works, but I do not have wifi, so no option for me to disable it.
Yes, I am able to change my network setting.
Internet works fine. I can ping google.com now.

I plan to upgrade to V118 today. Hopefully no problem. Will make back up image for current setting, in case of failed.
Last edited by bbmak on Wed May 18, 2016 4:09 am, edited 1 time in total.
bbmak
Posts: 24
Joined: Sat Oct 03, 2015 8:25 pm

Re: Update from V115 to V117 Breaks Python

Post by bbmak »

Just Update to V118. I don't experience any problem so far.

here is my /etc/networks/interfaces after I upgrade.


# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth0
iface eth0 inet static
metric 0
address 192.168.0.70
netmask 255.255.255.0
gateway 192.168.0.2
dns-nameservers 8.8.8.8 8.8.4.4

# Wifi
#allow-hotplug wlan0
iface wlan0 inet static
metric 1
address 192.168.0.70
netmask 255.255.255.0
gateway 192.168.0.2
wireless-essid FuzonWifi
wireless-key abcde12345
wireless-mode Managed
wireless-power off
wpa-ssid FuzonWifi
wpa-psk abcde12345
#dns-nameservers 8.8.8.8 8.8.4.4

User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Update from V115 to V117 Breaks Python

Post by Fourdee »

bbmak wrote:Just Update to V118. I don't experience any problem so far.

here is my /etc/networks/interfaces after I upgrade.


# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth0
iface eth0 inet static
metric 0
address 192.168.0.70
netmask 255.255.255.0
gateway 192.168.0.2
dns-nameservers 8.8.8.8 8.8.4.4

# Wifi
#allow-hotplug wlan0
iface wlan0 inet static
metric 1
address 192.168.0.70
netmask 255.255.255.0
gateway 192.168.0.2
wireless-essid FuzonWifi
wireless-key abcde12345
wireless-mode Managed
wireless-power off
wpa-ssid FuzonWifi
wpa-psk abcde12345
#dns-nameservers 8.8.8.8 8.8.4.4

Looks good :), and, wlan0 is correctly disabled in this config.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply