Help me to install Cubic web

Asked by Rohith Kumar

I am using Ubuntu 12.04. I want to install Cubicweb semantic webframework.
http://docs.cubicweb.org/admin/setup
http://docs.cubicweb.org/admin/setup#easyinstallinstallation
Above links shows it. But I want help in achieving this.

And need to install the required elements and optional elements as well
http://docs.cubicweb.org/admin/setup-windows.html

Kindly help.

Regards,
Rohit

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

run:

gksudo gedit /etc/apt/sources.list.d/cubic.list

add the line:

deb http://download.logilab.org/production/ squeeze/

Save the new file and close gedit. Then run:

wget -q http://download.logilab.org/logilab-dists-key.asc -O- | sudo apt-key add -
apt-get update
apt-get install cubicweb cubicweb-dev

That is from the links you gave. All I did was copy and paste the lines.....

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#2

I am getting this error.

-4720Z:~$ sudo apt-get install cubicweb cubicweb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 cubicweb : Depends: cubicweb-server (= 3.15.1-1) but it is not going to be installed
            Depends: cubicweb-twisted (= 3.15.1-1) but it is not going to be installed
 cubicweb-dev : Depends: cubicweb-server (= 3.15.1-1) but it is not going to be installed
                Depends: cubicweb-web (= 3.15.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

____________________________________________________________________

I even tried to install from (1.6. Install from source)
download cubicweb-3.15.2.tar.gz file from link: http://download.logilab.org/pub/cubicweb/

But to install that we need all the installation dependencies as mentioned in their site which links to http://docs.cubicweb.org/annexes/depends.html#installdependencies

Got any trick to do this

--- On Tue, 7/8/12, actionparsnip <email address hidden> wrote:

From: actionparsnip <email address hidden>
Subject: Re: [Question #205205]: Help me to install Cubic web
To: <email address hidden>
Date: Tuesday, 7 August, 2012, 4:31 PM

Your question #205205 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/205205

    Status: Open => Answered

actionparsnip proposed the following answer:
run:

gksudo gedit /etc/apt/sources.list.d/cubic.list

add the line:

deb http://download.logilab.org/production/ squeeze/

Save the new file and close gedit. Then run:

wget -q http://download.logilab.org/logilab-dists-key.asc -O- | sudo apt-key add -
apt-get update
apt-get install cubicweb cubicweb-dev

That is from the links you gave. All I did was copy and paste the
lines.....

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/205205/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/205205

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

If I read the installation instructions and combine that with the information that you provided, I recommend tha following:

Instead of
deb http://download.logilab.org/production squeeze
you should add
deb http://download.logilab.org/production precise
(either somewhere in /etc/apt/sources.list or as the contents of /etc/apt/sources.list.d/cubic.list )

If you have done that you have to issue the command

sudo apt-get update

If that command gives warnings or errors please copy all output and paste it into a new message of this question thread.

If the sudo apt-get update completes successfully without warnings and errors, issue the command

sudo apt-get install cubicweb cubicweb-dev

If that command ends with the same error message as ebove (dependency problem...), try adding the missing packages, e.g.

sudo apt-get install cubicweb cubicweb-dev cubicweb-server cubicweb-twisted cubicweb-web

If that still fails plase copy all output and paste it into a new message of this question thread, that we can examine the error message and try finding further recommendations.

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#4

:~$ sudo apt-get update
E: Malformed line 1 in source list /etc/apt/sources.list.d/cubic.list (dist parse)
E: The list of sources could not be read.
rohit@rohit-Aspire-4720Z:~$

:~$ sudo apt-get install cubicweb cubicweb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Malformed line 1 in source list /etc/apt/sources.list.d/cubic.list (dist parse)
E: The list of sources could not be read.
E: Unable to locate package cubicweb
E: Unable to locate package cubicweb-dev

:~$ sudo apt-get install cubicweb cubicweb-dev cubicweb-server cubicweb-twisted cubicweb-web
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cubicweb
E: Unable to locate package cubicweb-dev
E: Unable to locate package cubicweb-server
E: Unable to locate package cubicweb-twisted
E: Unable to locate package cubicweb-web

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#5

When I try source install I get this error after processing few installation files

Running pysqlite-2.6.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2R4Mm7/pysqlite-2.6.3/egg-dist-tmp-KlYvwP
In file included from src/module.c:24:0:
src/connection.h:26:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

...sudo apt-get update
E: Malformed line 1 in source list /etc/apt/sources.list.d/cubic.list (dist parse)...

Now there seems to be a syntax error in /etc/apt/sources.list.d/cubic.list, and the rest (unable to locate...) is a consequence of that error.

What are the contents of /etc/apt/sources.list.d/cubic.list ?

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#7

deb http://download.logilab.org/production precise

it got this statement

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

maybe the ending slashes are missing, change it to

deb http://download.logilab.org/production/ precise/

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#9

It worked I guess,
But when I try to check commands, I am getting this

:~/cubicweb$ cubicweb-ctl --help
Traceback (most recent call last):
  File "/usr/local/bin/cubicweb-ctl", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Twisted

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

I am happy to see that finally the packages are installed, but sorry to see that it does not work.

For me the error points towards a problem in the cooperation between cubicweb and 'twisted' (or 'Twisted' - the capital T puzzles me a bit!)
You might try reinstalling cubicweb-twisted and the python-twisted... packages, but I do not think that this will help.

Eventually you might try switching to the twisted packages from https://launchpad.net/~twisted-dev/+archive/ppa

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#11

How to use that ppa if you don't mind could you help me
--- On Wed, 8/8/12, Manfred Hampl <email address hidden> wrote:

From: Manfred Hampl <email address hidden>
Subject: Re: [Question #205205]: Help me to install Cubic web
To: <email address hidden>
Date: Wednesday, 8 August, 2012, 8:05 PM

Your question #205205 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/205205

    Status: Open => Answered

Manfred Hampl proposed the following answer:
I am happy to see that finally the packages are installed, but sorry to
see that it does not work.

For me the error points towards a problem in the cooperation between cubicweb and 'twisted' (or 'Twisted' - the capital T puzzles me a bit!)
You might try reinstalling cubicweb-twisted and the python-twisted... packages, but I do not think that this will help.

Eventually you might try switching to the twisted packages from
https://launchpad.net/~twisted-dev/+archive/ppa

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/205205/+confirm?answer_id=9

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/205205

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

see https://help.launchpad.net/Packaging/PPA/InstallingSoftware

issue the commands

sudo add-apt-repository ppa:twisted-dev/ppa
sudo apt-get update
sudo aot-get upgrade

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#13

Still the same issue which I posted with "cubicweb-ctl --help" comment. I was thinking is it related with setting up environment. Could you help me if I am doing anything wrong. Is it working for you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#14

I do not have cubicweb on my own system, so there is only little what I can help further.

What I am puzzled about is that the error message states "pkg_resources.DistributionNotFound: Twisted" with a capital T. Since Unix is case sensitive, the problem might be, that you have "twisted" installed, but cubicweb is wrongly searching for "Twisted" and cannot find it.

I searched the source tarball and spotted the string "Twisted" in __pkginfo__.py (is most probably installed in /usr/share/pyshared/cubicweb ).

What you might try is to edit the file /usr/share/pyshared/cubicweb/__pkginfo__.py (if that file is really there) and change the string in line 51 from 'Twisted': '', to 'twisted': '', and then try the cubicweb-ctl --help command again.

If that does not help, I am running out of ideas. Maybe other sources (http://www.cubicweb.org, <email address hidden>, ...) can help further.

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#15

Still the same issue which I posted with "cubicweb-ctl --help" comment. I was thinking is it related with setting up environment. Could you help me if I am doing anything wrong. Is it working for you.

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#16

I did change it. And now I get this error.

rohit@rohit-Aspire-4720Z:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  malys-revolt
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
59 not fully installed or removed.
Need to get 0 B/5,119 kB of archives.
After this operation, 5,954 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 275926 files and directories currently installed.)
Preparing to replace malys-revolt 3.3~precise (using .../malys-revolt_3.7~precise_all.deb) ...
Unpacking replacement malys-revolt ...
dpkg: error processing /var/cache/apt/archives/malys-revolt_3.7~precise_all.deb (--unpack):
 trying to overwrite '/usr/share/themes/malys-revolt-0.5/gtk-2.0/Arrows/arrow-up.png', which is also in package malys-revolt-0.5 0.5~precise
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/malys-revolt_3.7~precise_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#17

When I try to download the package, I get this issue. I think the problem is with the python package.

$python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-5787.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.7/dist-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  http://packages.python.org/distribute/easy_install.html

Please make the appropriate changes for your system and try again.

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

I think that the problem with malys-revolt is not related to the one with cubicweb.

What you are facing here is the following:
Both malys-revolt-0.5 and malys-revolt want to install a file 'usr/share/themes/malys-revolt-0.5/gtk-2.0/Arrows/arrow-up.png', and the package installation programs prevent that one package overwrites a package from another package (even if the file contents would be identical). Consequently malys-revolt-0.5 and malys-revolt cannot be installed at the same time.

As far as I can see the new package malys-revolt 3.7 contains all files from malys-revolt-0.5, so most probably you should remove malys-revolt-0.5 and the update of malys-revilt should work again.

Back to the cubicweb issue:
Have you changed the string 'Twisted' to 'twisted' in __pkginfo__.py?
What is the exact error message of the cubicweb-ctl --help command now? (still showing 'Twisted' with a capital T?)

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

I see that out messages crossed each other.

Your last problem

You might try

sudo python setup.py install

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#20

I have changed the Twisted word to twist and when i tried to upgrade I got malys-revolt error. I feel I am troubling you alot. But really appreciate your help. If possible if you are ok trying to download it and try it yourself. Kindly let me know. Hope you won't face the same situation

--- On Thu, 9/8/12, Manfred Hampl <email address hidden> wrote:

From: Manfred Hampl <email address hidden>
Subject: Re: [Question #205205]: Help me to install Cubic web
To: <email address hidden>
Date: Thursday, 9 August, 2012, 4:06 PM

Your question #205205 on apt in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/apt/+question/205205

    Status: Open => Answered

Manfred Hampl proposed the following answer:
I think that the problem with malys-revolt is not related to the one
with cubicweb.

What you are facing here is the following:
Both malys-revolt-0.5 and malys-revolt want to install a file 'usr/share/themes/malys-revolt-0.5/gtk-2.0/Arrows/arrow-up.png', and the package installation programs prevent that one package overwrites a package from another package (even if the file contents would be identical). Consequently malys-revolt-0.5 and malys-revolt cannot be installed at the same time.

As far as I can see the new package malys-revolt 3.7 contains all files
from malys-revolt-0.5, so most probably you should remove malys-
revolt-0.5 and the update of malys-revilt should work again.

Back to the cubicweb issue:
Have you changed the string 'Twisted' to 'twisted' in __pkginfo__.py?
What is the exact error message of the cubicweb-ctl --help command now? (still showing 'Twisted' with a capital T?)

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/apt/+question/205205/+confirm?answer_id=17

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/apt/+question/205205

You received this question notification because you asked the question.

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#21

I mean changed "T" to "t"

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#22

I downloaded the whole package and tried to install through that command. But got that issue.

--- On Thu, 9/8/12, Manfred Hampl <email address hidden> wrote:

From: Manfred Hampl <email address hidden>
Subject: Re: [Question #205205]: Help me to install Cubic web
To: <email address hidden>
Date: Thursday, 9 August, 2012, 4:11 PM

Your question #205205 on apt in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/apt/+question/205205

Manfred Hampl proposed the following answer:
I see that out messages crossed each other.

Your last problem

You might try

sudo python setup.py install

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+source/apt/+question/205205/+confirm?answer_id=18

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+source/apt/+question/205205

You received this question notification because you asked the question.

Can you help with this problem?

Provide an answer of your own, or ask Rohith Kumar for more information if necessary.

To post a message you must log in.