Installation has changed

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Installation has changed

Rolf Sander
Hello,

There has been a recent update of the graph-tool installation
instructions for Debian & Ubuntu (i.e. also for Linux Mint):

https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#gnulinux

For my Linux Mint 19.2 (Tina) system, I adjusted /etc/apt/sources.list
accordingly:

deb http://downloads.skewed.de/apt bionic main

Unfortunately, apt-get update produces the following error:

   N: Skipping acquire of configured file 'main/binary-i386/Packages' as
   repository 'http://downloads.skewed.de/apt bionic InRelease' doesn't
   support architecture 'i386'

Next, I tried to install graph-tool on another computer which has Linux
Mint 18.3 (Sylvia) on it. For this I would need DISTRIBUTION = xenial.
Unfortunately, it seems that graph-tool does not support xenial anymore
:-(

Any help is appreciated...

Best regards
Rolf

--
-----------------------------------------------------------------------
   Rolf Sander                              phone: [+49] 6131/305-4610
   Max-Planck Institute of Chemistry        email: [hidden email]
   PO Box 3060, 55020 Mainz, Germany     homepage: www.rolf-sander.net
-----------------------------------------------------------------------
               https://www.encyclopedia-of-geosciences.net
             https://www.geoscientific-model-development.net
-----------------------------------------------------------------------
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

Tiago Peixoto
Administrator
Am 06.04.20 um 18:40 schrieb Rolf Sander:

> Hello,
>
> There has been a recent update of the graph-tool installation
> instructions for Debian & Ubuntu (i.e. also for Linux Mint):
>
> https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#gnulinux
>
>
> For my Linux Mint 19.2 (Tina) system, I adjusted /etc/apt/sources.list
> accordingly:
>
> deb http://downloads.skewed.de/apt bionic main
>
> Unfortunately, apt-get update produces the following error:
>
>   N: Skipping acquire of configured file 'main/binary-i386/Packages' as
>   repository 'http://downloads.skewed.de/apt bionic InRelease' doesn't
>   support architecture 'i386'
I have re-organized the apt repository to simplify and automatize the
package generation, and I have decided to drop the i386 architecture
since I didn't think anyone was using that any longer, and that saves a
lot of time and effort.

But it seems I was wrong... Are you really using a 32 bit i386 CPU in 2020?

> Next, I tried to install graph-tool on another computer which has Linux
> Mint 18.3 (Sylvia) on it. For this I would need DISTRIBUTION = xenial.
> Unfortunately, it seems that graph-tool does not support xenial anymore
> :-(
>

Xenial is super old and does not compile graph-tool due to a lack of
compiler with C++17 support.

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

Rolf Sander
In reply to this post by Rolf Sander
Hello Tiago,

Thanks for your reply!

 > Are you really using a 32 bit i386 CPU in 2020?

No, I have 64 bit:

dpkg --print-architecture --> amd64

I think I found the solution:

https://unix.stackexchange.com/questions/272908/apt-looking-for-i386-files-even-though-architecture-is-amd64

Now it works fine. If other users face the same problem, maybe you could
mention the following fix for /etc/apt/sources.list:

deb [ arch=amd64 ] http://downloads.skewed.de/apt DISTRIBUTION main

 > Xenial is super old and does not compile graph-tool due to a lack of
 > compiler with C++17 support.

It's really a pity that you face problems with the C++ compiler. I think
that Ubuntu Xenial is still widely used. It is supported until April
2021:

https://wiki.ubuntu.com/Releases

(I would upgrade if I could but the hardware on that computer doesn't
allow it)

Best regards
Rolf

--
-----------------------------------------------------------------------
   Rolf Sander                              phone: [+49] 6131/305-4610
   Max-Planck Institute of Chemistry        email: [hidden email]
   PO Box 3060, 55020 Mainz, Germany     homepage: www.rolf-sander.net
-----------------------------------------------------------------------
               https://www.encyclopedia-of-geosciences.net
             https://www.geoscientific-model-development.net
-----------------------------------------------------------------------
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

Tiago Peixoto
Administrator
Am 07.04.20 um 14:04 schrieb Rolf Sander:

> Hello Tiago,
>
> Thanks for your reply!
>
>> Are you really using a 32 bit i386 CPU in 2020?
>
> No, I have 64 bit:
>
> dpkg --print-architecture --> amd64
>
> I think I found the solution:
>
> https://unix.stackexchange.com/questions/272908/apt-looking-for-i386-files-even-though-architecture-is-amd64
>
>
> Now it works fine. If other users face the same problem, maybe you could
> mention the following fix for /etc/apt/sources.list:
>
> deb [ arch=amd64 ] http://downloads.skewed.de/apt DISTRIBUTION main
Thanks, I will add this to documentation.

>> Xenial is super old and does not compile graph-tool due to a lack of
>> compiler with C++17 support.
>
> It's really a pity that you face problems with the C++ compiler. I think
> that Ubuntu Xenial is still widely used. It is supported until April
> 2021:
>
> https://wiki.ubuntu.com/Releases

It's out of my hands. That release is frozen in time, and it includes
only GCC 5, where we need version 7 or above.

> (I would upgrade if I could but the hardware on that computer doesn't
> allow it)

I don't believe the hardware requirements have changed from xenial to
bionic.

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

Rolf Sander
In reply to this post by Rolf Sander
Hello Tiago,

> I don't believe the hardware requirements have changed from xenial to
> bionic.

That was just a guess. I have really no idea why the upgrade didn't
work.

> It's out of my hands. That release is frozen in time, and it includes
> only GCC 5, where we need version 7 or above.

OK, I see. I will then simply work with the frozen version of graph-tool
which I currently have on that computer.

Thanks again for your help and for providing graph-tool!

Best regards
Rolf

--
-----------------------------------------------------------------------
   Rolf Sander                              phone: [+49] 6131/305-4610
   Max-Planck Institute of Chemistry        email: [hidden email]
   PO Box 3060, 55020 Mainz, Germany     homepage: www.rolf-sander.net
-----------------------------------------------------------------------
               https://www.encyclopedia-of-geosciences.net
             https://www.geoscientific-model-development.net
-----------------------------------------------------------------------
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

tshpak
Hello everyone,

I also start to have a problem with graphtool installation.
I use it in google colab and have to install the library everytime.

I use the following code:
!echo "deb http://downloads.skewed.de/apt/bionic bionic universe" >>
/etc/apt/sources.list
!sudo apt-key adv --keyserver keys.openpgp.org --recv-key 612DEFB798507F25
!sudo apt-get update
!sudo apt-get install python3-graph-tool

This code does not work anymore. Error that I've got:
E: The repository 'http://downloads.skewed.de/apt/bionic bionic Release'
does not have a Release file.

I kindly ask you to give me an advice how I can solve this issue.

Best regards



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

Kambiz Tavabi
unsubscribe
Kambiz Tavabi PhD
Research Scientist
_____________________________________________________
T: +1 206 685 6173
M: +1 215 688 1763
[hidden email] 

Institute for Learning & Brain Sciences

1715 Columbia Road N

Portage Bay Building

Box 357988

University of Washington

Seattle, WA 98195-7988


Confidentiality Notice: Because email is not secure, please be aware that we cannot guarantee the confidentiality of information sent by email. If you are not the intended recipient of this email, please notify the sender by reply email, and then destroy all copies of the message and any attachments.


 

On April 8, 2020 at 8:29:01 AM, tshpak ([hidden email]) wrote:

Hello everyone,

I also start to have a problem with graphtool installation.
I use it in google colab and have to install the library everytime.

I use the following code:
!echo "deb http://downloads.skewed.de/apt/bionic bionic universe" >>
/etc/apt/sources.list
!sudo apt-key adv --keyserver keys.openpgp.org --recv-key 612DEFB798507F25
!sudo apt-get update
!sudo apt-get install python3-graph-tool

This code does not work anymore. Error that I've got: br/>E: The repository 'http://downloads.skewed.de/apt/bionic bionic Release'
does not have a Release file.

I kindly ask you to give me an advice how I can solve this issue.

Best regards



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Installation has changed

Tiago Peixoto
Administrator
In reply to this post by tshpak
Am 08.04.20 um 17:27 schrieb tshpak:
> !echo "deb http://downloads.skewed.de/apt/bionic bionic universe"

The line should be:

   deb http://downloads.skewed.de/apt bionic main

as is specified in the documentation.

Best,
Tiago



--
Tiago de Paula Peixoto <[hidden email]>
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

graph_tool.draw.interactive_window

Rolf Sander
In reply to this post by Rolf Sander
Hello,

The function graph_tool.draw.interactive_window is great for exploring a
graph interactively. Often I just need some part of a graph, for which I
can easily define a filter (or view). My question is: Is it possible to
switch between the full graph and a filtered subset of the graph
interactively? I tried something like the code below but it didn't work:

def my_key_press_callback(self, g, keyval, picked, pos, vprops, eprops):
     if (chr(keyval)=='1'):
         self.g = g1
         self.queue_draw()
     if (chr(keyval)=='2'):
         self.g = g2
         self.queue_draw()

g1 = gt.load_graph("mygraph.xml.gz")
g2 = gt.GraphView(g1, vfilt=SOMEFILTER)
gt.interactive_window(g1, key_press_callback=my_key_press_callback)

Any suggestions are appreciated.

Best regards
Rolf

--
-----------------------------------------------------------------------
   Rolf Sander                              phone: [+49] 6131/305-4610
   Max-Planck Institute of Chemistry        email: [hidden email]
   PO Box 3060, 55020 Mainz, Germany     homepage: www.rolf-sander.net
-----------------------------------------------------------------------
               https://www.encyclopedia-of-geosciences.net
             https://www.geoscientific-model-development.net
-----------------------------------------------------------------------
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool