Make iso cd, Linux stretch 64 bit = problem. stretch 32 bit = no problem.

More
8 years 1 month ago #117881 by Grotius
Hi,

I cloned the build proces : github.com/michelwijnja/Linuxcnc_iso
This is for making a linuxcnc stretch iso. The output can be a cd or dvd, that can easely be installed.
Can also be usb if you like.
So important is, when i know how this work's i can make modification's to the installation.
I can add more usefull program's and so on. At the moment i am in a learning process.

Yesterday i had the output with ./do.sh a wonderfull i386 linuxcnc stretch iso cd.
But the amd64 is still a problem. This is the 64 bit version we need to run draftsight. This is a typically autocad program
from the makers of Dassault System's. In the top 50 richest company's of the world today. See youtube.
I wonder why Dassault System's only provide a 64 bit version and not a 32 bit linux version. Then they would help people around
the globe.

Is there a solution?

This is the report :
Code:
git clone https://github.com/michelwijnja/Linuxcnc_iso.git linuxcnc_iso git submodule update --init --recursive sudo apt-get install python-cliapp sudo apt-get install python-pycurl sudo apt-get install live-wrapper cd linuxcnc_iso for 32 bit, in terminal type : ./do.sh i386 For 64 bit linuxcnc type in terminal : ./do.sh amd64 For 32 & 64 bit version's in one time, 2 iso cd output's at once, this one i like : ./do.sh Be patient. Error code, only for 64 bit output iso, nearly at the end of process, finalizing the iso : File "/home/grotius/stretch-live-build/live-wrapper/lwr/apt_udeb.py", line 101, in download_package pkg.version_list.sort(apt_pkg.version_compare) # pylint: disable=no-member AttributeError: 'Package' object has no attribute 'version_list'

I tried 2 reprositories, the orginal linuxcnc reprository and the bird reprository.
github.com/LinuxCNC/stretch-live-build
github.com/jepler/stretch-live-build

Hmm. This issue is :
bugs.debian.org/cgi-bin/bugreport.cgi?bug=856628

And then i think this will not work :
salsa.debian.org/enrico/live-wrapper/com...6c4babd09dbd0844777e

How to solve ?

Sinds my investegation in the file do.sh, i have outcommented this line for testing purposes :
#--customise="$LOCATION/customise.sh" \#
When i outcommented that line and do ./do.sh amd64
What i then get for output is a 64 bit iso file output proximaticly 500mb. So in the customise.sh file script is something i need to check.
Is it the kernel version?

I will try to modificate the linuxcnc 32 bit iso a little bit for test purposes and post my comment's later on.
I want to try to change the linuxcnc background to something else. B)

Please Log in to join the conversation.

More
8 years 1 month ago #117933 by Grotius
The error code for the amd64 stretch version looks complicated to me.

I tried to find info about argument's inside the error code :
apt_pkg.version_compare()

www.programcreek.com/python/example/9806..._pkg.version_compare

My intention was up to the comment's :
1 => Installed revno is greater than supplied arg
0 => Installed revno is the same as supplied arg
-1 => Installed revno is less than supplied arg

Hmm.

The error code :
Code:
File "/home/grotius/stretch-live-build/live-wrapper/lwr/apt_udeb.py", line 101, in download_package pkg.version_list.sort(apt_pkg.version_compare) # pylint: disable=no-member AttributeError: 'Package' object has no attribute 'version_list'

Lets look at line 101 of file File "/home/grotius/stretch-live-build/live-wrapper/lwr/apt_udeb.py :
Code:
if len(pkg.versions) > 1: pkg.version_list.sort(apt_pkg.version_compare) # pylint: disable=no-member version = pkg.version_list[0] print("Multiple versions returned for %s - using newest: %s" % (name, pkg.version_list[0]))

To try out :
Code:
if len(pkg.versions) > 0: pkg.version_list.sort(apt_pkg.version_compare) # pylint: disable=no-member version = pkg.version_list[0] print("Multiple versions returned for %s - using newest: %s" % (name, pkg.version_list[0]))

It's now making the 64 bit iso. Maybe we have luck. I think not. :woohoo:
If we have no luck, we try -1.
After that we try something else.

Strange, i now passed the customize.sh succesfully.

Attachment not found



Hmm.

With disabling the customize.sh file i get a 64 iso file about 500mb. It will make a debian 9 version outside of the linuxcnc keyring's or
archive's or something like that. Maybe i will invest that option. Better is maybe to make first a clean debian 9 iso cd without
real time kernel and linuxcnc installed. If that will succeed, i can expand the function with rt kernel version first.

No succes with 0. now trying with value -1. I will try it once with value 0 again just to be sure.

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum