View Single Post
Old 12-26-2014, 12:53 PM   #1
Raimond
Member
Raimond began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Nov 2010
Device: Sony PRS-600, Kindle Paperwhite
Strange compiling error @ odroid

Hi @ all,

I'm trying to get calibre running on an odroid board (running ubuntu 14.04LTS)

All dependencies are installed and working correctly (as far as I was able to test it).

Running the command
Code:
sudo python setup.py install
(command according to calibre website)
leads to the following error (no compilation, the error occures directly)
Code:
Traceback (most recent call last):
  File "setup.py", line 13, in <module>
    import setup.commands as commands
  File "/home/odroid/Documents/calibre-2.14.0/setup/commands.py", line 28, in <module>
    from setup.translations import POT, GetTranslations, Translations, ISO639, ISO3166
  File "/home/odroid/Documents/calibre-2.14.0/setup/translations.py", line 14, in <module>
    from setup.parallel_build import parallel_check_output
  File "/home/odroid/Documents/calibre-2.14.0/setup/parallel_build.py", line 13, in <module>
    from setup.build_environment import cpu_count
  File "/home/odroid/Documents/calibre-2.14.0/setup/build_environment.py", line 84, in <module>
    qraw = subprocess.check_output([QMAKE, '-query']).decode('utf-8')
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
But running the command without sudo strangely compiles all of calibre.

Of course the whole thing breaks at the end when calibre tries to install the created files into the system:

Code:
Installing binary: /usr/bin/ebook-device
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/home/odroid/Documents/calibre-2.14.0/setup/__init__.py", line 181, in run_all
    self.run_cmd(self, opts)
  File "/home/odroid/Documents/calibre-2.14.0/setup/__init__.py", line 178, in run_cmd
    cmd.run(opts)
  File "/home/odroid/Documents/calibre-2.14.0/setup/install.py", line 135, in run
    self.write_templates()
  File "/home/odroid/Documents/calibre-2.14.0/setup/install.py", line 168, in write_templates
    self.write_template(name, mod, func)
  File "/home/odroid/Documents/calibre-2.14.0/setup/install.py", line 190, in write_template
    open(path, 'wb').write(script)
IOError: [Errno 13] Permission denied: '/usr/bin/ebook-device'
Running the command with sudo leads to the same error as before.

Any hint for solving this problem?
It sounds very strange for me that the whole system breaks when i use sudo.

(Until now I didn't want to try it with "sudo su").
A possible workaround would be of course to copy the files manually, but that's not realy a nice way...


Rai
Raimond is offline   Reply With Quote