How to install gcp? #3

Closed
opened 2018-06-07 18:02:55 +02:00 by Floman · 17 comments

I tried to install the old original gcp from 2011 but it printed:

Traceback (most recent call last):
  File "/usr/bin/gcp", line 678, in <module>
    gcp = GCP()
  File "/usr/bin/gcp", line 190, in __init__
    sessions_bus = dbus.SessionBus()
  File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in __new__
    mainloop=mainloop)
  File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

So I browsed the net to find this repository and registered (email went to spam). So I'm kind of motivated to try Gcp after doing all of this...

But now I have no idea how to install it. It's not in the readme either

I tried to install the old original gcp from 2011 but it printed: ``` Traceback (most recent call last): File "/usr/bin/gcp", line 678, in <module> gcp = GCP() File "/usr/bin/gcp", line 190, in __init__ sessions_bus = dbus.SessionBus() File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in __new__ mainloop=mainloop) File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__ bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop) File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__ bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 ``` So I browsed the net to find this repository and registered (email went to spam). So I'm kind of motivated to try Gcp after doing all of this... But now I have no idea how to install it. It's not in the readme either
Owner

Hi, thanks for your interest. I'm being reworking gcp and its packaging, but until I release a new version on Pypi, the easiest would probably be to use pip in local mode, something like:

git clone https://code.lm7.fr/mcy/gcp.git
pip3 install --user ./gcp

You'll probably have to install some dependencies manually though.

That being said, if you're not in a hurry, I believe I have some local commits that I didn't push, I'll look into it next week.

Hi, thanks for your interest. I'm being reworking gcp and its packaging, but until I release a new version on Pypi, the easiest would probably be to use pip in local mode, something like: ``` git clone https://code.lm7.fr/mcy/gcp.git pip3 install --user ./gcp ``` You'll probably have to install some dependencies manually though. That being said, if you're not in a hurry, I believe I have some local commits that I didn't push, I'll look into it next week.
Author

I'd prefer to install it in a "cleaner" way so I can automate it with ansible (I'm using ansible with python2 I guess, and this one requires python3, pip3 etc)

Do I get notification by email?

I'd prefer to install it in a "cleaner" way so I can automate it with ansible (I'm using ansible with python2 I guess, and this one requires python3, pip3 etc) Do I get notification by email?
Owner

I won't support Python2 for future gcp releases (at least not purposely), so you'll need Python3 for sure. Re cleaner installation, stay tuned, hopefully I can release a new version with proper packaging in a few weeks.

Email notifications on Gitea are supposed to work (they work for me anyway). Maybe you need to "watch" the project?

I won't support Python2 for future gcp releases (at least not purposely), so you'll need Python3 for sure. Re cleaner installation, stay tuned, hopefully I can release a new version with proper packaging in a few weeks. Email notifications on Gitea are supposed to work (they work for me anyway). Maybe you need to "watch" the project?
mcy added the
question
label 2018-06-07 22:21:27 +02:00
Author

I received the email hehe. So I'll check back later on

And yes, normal for Python3, I'm just prudent with python lol

I received the email hehe. So I'll check back later on And yes, normal for Python3, I'm just prudent with python lol
Author

:'(

:'(
Owner

Hey, sorry to be behind. I just pushed the commits I had locally. That includes a new “Installing” section in the README, but these instructions won't work until I publish a new release on PyPI. I still have a few things to do before I can release (mainly update the doc and the translations, and update the packaging as-needed), so please be patient.

Hey, sorry to be behind. I just pushed the commits I had locally. That includes a new “Installing” section in the README, but these instructions won't work until I publish a new release on PyPI. I still have a few things to do before I can release (mainly update the doc and the translations, and update the packaging as-needed), so please be patient.
Author

Ok, the instructions are straight to the point, I'll wait for it to work!!

Ok, the instructions are straight to the point, I'll wait for it to work!!
Author

Any update? :p

Any update? :p
Owner

Hey, sorry, I still have you in a corner of my head telling me that I need to get to it, but I didn't find the time/motivation yet. By the way, the Debian package of the old version still works fine, so maybe you could use that in the meantime.

Hey, sorry, I still have you in a corner of my head telling me that I need to get to it, but I didn't find the time/motivation yet. By the way, the Debian package of the old version still works fine, so maybe you could use that in the meantime.
Author

Well I don't remember how it panned but my first issue is that:

I tried to install the old original gcp from 2011 but it printed:

So I guess I already tried :P

Well I don't remember how it panned but my first issue is that: > I tried to install the old original gcp from 2011 but it printed: So I guess I already tried :P
Author

Ok I tried this pip install git+https://code.lm7.fr/mcy/gcp.git --user and got:

    configure: error: Package requirements (dbus-1 >= 1.8) were not met:
    
    No package 'dbus-1' found

...........

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1egwzidw/dbus-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-meylbspl/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-1egwzidw/dbus-python/

Ok I tried this `pip install git+https://code.lm7.fr/mcy/gcp.git --user` and got: ``` configure: error: Package requirements (dbus-1 >= 1.8) were not met: No package 'dbus-1' found ........... Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1egwzidw/dbus-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-meylbspl/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-1egwzidw/dbus-python/ ```
Author

(Can't edit previous message, there is a bug with the button)

Do i just need to install these to fix it


    libdbus-1-dev
    libdbus-glib-1-dev
    libgirepository1.0-dev
    libcairo2-dev
    python3-cairo-dev

(Can't edit previous message, there is a bug with the button) Do i just need to install these to fix it ``` libdbus-1-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev python3-cairo-dev ```
Owner

Yes, it should be enough (if something is still missing, please tell me so I add it to the list in the README).

Yes, it should be enough (if something is still missing, please tell me so I add it to the list in the README).
Author

For each package:

Could not find a version that satisfies the requirement libdbus-1-dev (from versions: )
No matching distribution found for libdbus-1-dev

I just tried to install them all like pip install libdbus-1-dev --user

For each package: Could not find a version that satisfies the requirement libdbus-1-dev (from versions: ) No matching distribution found for libdbus-1-dev I just tried to install them all like `pip install libdbus-1-dev --user`
Owner

Okay I see that what I wrote in the README may be unclear, I'll fix that. These packages should be installed on your system, they are (mainly) C libraries, not Python modules that you can install with pip. These are the names for Debian, but on another distro they may be different.

Okay I see that what I wrote in the README may be unclear, I'll fix that. These packages should be installed *on your system*, they are (mainly) C libraries, not Python modules that you can install with pip. These are the names for Debian, but on another distro they may be different.
Author

Ok, not the first time I confuse.

Well

The following packages have unmet dependencies:
 libdbus-1-dev : Depends: libdbus-1-3 (= 1.6.18-0ubuntu4.4) but 1.6.18-0ubuntu4.5 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libdbus-1-dev [Not Installed]                      



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Downgrade the following packages:                                                  
1)     libdbus-1-3 [1.6.18-0ubuntu4.5 (now) -> 1.6.18-0ubuntu4.4 (trusty-security)]     
2)     libdbus-1-3:i386 [1.6.18-0ubuntu4.5 (now) -> 1.6.18-0ubuntu4.4 (trusty-security)]

I really try to avoid downgrading and screwing up my system, I guess I'll wait when I upgrade my ubuntu or when you release it someday. Too risky to downgrade

Ok, not the first time I confuse. Well ``` The following packages have unmet dependencies: libdbus-1-dev : Depends: libdbus-1-3 (= 1.6.18-0ubuntu4.4) but 1.6.18-0ubuntu4.5 is installed. The following actions will resolve these dependencies: Keep the following packages at their current version: 1) libdbus-1-dev [Not Installed] Accept this solution? [Y/n/q/?] n The following actions will resolve these dependencies: Downgrade the following packages: 1) libdbus-1-3 [1.6.18-0ubuntu4.5 (now) -> 1.6.18-0ubuntu4.4 (trusty-security)] 2) libdbus-1-3:i386 [1.6.18-0ubuntu4.5 (now) -> 1.6.18-0ubuntu4.4 (trusty-security)] ``` I really try to avoid downgrading and screwing up my system, I guess I'll wait when I upgrade my ubuntu or when you release it someday. Too risky to downgrade
Owner

I'm happy to announce that I just released gcp 0.2.0 on PyPi! See https://pypi.org/project/gcp/. Now pip3 install gcp should work.

You will still need to install the dependencies though. Are you sure your system is up-to-date? This is a package you should be able to install without any issue…

Anyway, I'm closing this now, finally!

I'm happy to announce that I just released gcp 0.2.0 on PyPi! See <https://pypi.org/project/gcp/>. Now `pip3 install gcp` should work. You will still need to install the dependencies though. Are you sure your system is up-to-date? This is a package you should be able to install without any issue… Anyway, I'm closing this now, finally!
mcy closed this issue 2018-10-14 23:07:14 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mcy/gcp#3
No description provided.