Sparkle установка linux mint

Installation / Setup¶

The easiest way to get sparkle, and to get more stable releases, is to download from PyPI using pip .

Alternatively, to get the bleeding-edge version of sparkle, or to help with development, you need to get a copy of the source code repository from Github.

Either way, if applicable, also see Installing to Record Data . (You can do this before or after installing sparkle)

Installing to Record Data¶

If you are installing Sparkle on a machine where you want to record, not just review data, you must have the hardware DAQmx drivers installed from National Instruments. Download and install according to their directions.

Install from PyPI¶

Install Python + Tools¶

It is strongly recommended to install the free Anaconda python distribution instead of the download from python.org. This is because it comes with a lot of the 3rd party scientific packages you need in one easy download and install process. If you are on Windows, it will save a lot of headaches when installing packages.

Install Sparkle¶

After you install Anaconda, open up a command terminal and enter:

Windows (need admin rights):

Run Sparkle¶

Then you should be able to call sparkle from the command line:

Creating a shortcut (Windows 7):¶

You can also find sparkle under the start menu, type sparkle into the search bar, and it should come up. You can run it from here. To create a shortcut, drag the start menu entry onto the desktop.

Install from Github¶

If you know what you are doing, the source is on Github.

Get Git¶

Download and install Git using the installer downloaded from the Git website, or using your package manager (Unix).

Downloading SPARKLE¶

Once you have git, use your command line (Git bash recommended for Windows) to navigate to where you want the SPARKLE source code to live.

Copy the url from Github, and clone it to your local machine, (or, if you want to contribute, you can fork sparkle, and clone your fork) e.g. for HTTPS (recommended):

$ git clone https://github.com/portfors-lab/sparkle.git

This will create a directory sparkle in your current directory.

Читайте также:  Linux open write permission

Install Python and packages¶

Install Using Anaconda¶

It is strongly recommended to install the free Anaconda python distribution instead of the download from python.org. This is because it comes with a lot of the 3rd party scientific packages you need in one easy download and install process. If you are on Windows, it will save a lot of headaches when installing packages.

In fact, you will only need one or two (if recording) additional packages, which you can get by the command (Git bash or powershell):

If you installed the device drivers to record data, also install the python wrappers via the command:

Install Dependencies Manually¶

If you did not install Anaconda (for example you want to use a virtualenv), you will need to install a few things from their various sources.

If you are on Unix, you should already have python installed by default on your machine. Make sure it is some subversion of python 2.7:

If you get something other than Python 2.7. , you will need to install python 2.7 from the Python website.

If you are on Windows, you will need to install python 2.7 from the Python website.

You will also need to install:

After that you can install the rest of sparkle by running:

$ cat sparkle/requirements.txt | xargs pip install

Installing in a Virtualenv¶

Virtualenv is not necessary to run SPARKLE. If you don’t know what it is, don’t worry about it for now.

For the most part, the above instructions still apply if you want to use a virtualenv. Windows is a pain in my experience. Installing anaconda will give you the virtualenv and pip packages, but you will need to find out how to install things via pip or easy_install to get the correct packages into the virtualenv.

For notes on setting this up in windows, and for installing the non-pip installable packages, see Virtualenv notes.

Running SPARKLE¶

Setting the PYTHONPATH¶

To run sparkle with python from anywhere outside of the sparkle root directory you will need to set the pythonpath.

or for Windows (on Git bash):

Run¶

Once you have all the dependencies installed, now you can actually run SPARKLE! Via the command line, change directory into the root folder of SPARKLE (this is the first ‘sparkle’ folder, not ‘sparkle/sparkle’). You can now run:

Читайте также:  Linux mint владелец файлов

This should launch a dialog asking you to choose a data file. See the guideindex .

Creating a shortcut (Windows):¶

To create a shortcut on the desktop (or anywhere really) to launch Sparkle from source, first create a plain text file, and let’s call it ‘sparkle.bat’. In this file add the following two lines, replacing as necessary:

set PYTHONPATH=C:\shared\sparkle C:\Python27\python C:\shared\sparkle\sparkle\gui\run.py

Then you can create a shortcut to that script by right clicking and selecting Create Shortcut . Move the shortcut to the desktop (or other desired location). There is an .ico file in the sparkle/resources folder intended to be used as the icon for this shortcut, which you can set through the shortcut properties.

Building the documentation locally¶

You may need additional packages to build the doc, install via pip as necessary.

Versions latest Downloads pdf htmlzip epub On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.

Источник

Установка Sparkle на Linux Mint 18.1

Доброго времени суток, форумчане. Когда-то давно, уже более пары лет назад, пересел я с Win 7 на Linux mint. Для большинства программ находил аналоги и инструкции по их установке, реже разбирался сам, когда инструкций не было, а недавно захотелось посмотреть пару фильмов, и тут до меня дошло, что привычной мне Zona для линуха нет.

Первый же запрос в гугл показал, что есть некий проект Sparkle, который является аналогом «зоны». Еще пара запросов показала, что инструкций по установке «для чайников» нет, да еще и несколько раз натыкался на сообщения вида «проект заброшен» итп. К этому моменту была испробована некая странная связка файлов: sparkle-repository_1-1_all.deb и бинарный файл sparkle-install, которая, в общем-то, не дала результата в виде установленного sparkle, но я получил некий установленный репозиторий, из-за которого команда

начинала ругаться на неподписанный репозиторий. Репозиторий выпилил, но программы-то так и нет. Полез искать дальше. Спустя полчаса и изучив несколько веток на различных форумах в итоге вышел на то, что нужны .deb файлы sparkle-vlc, sqlite3-unicodesn, tufao и собственно sparkle, но вот где их взять было загадкой. Дальнейший поиск вывел меня на репозиторий sparkle, в котором лежали сразу все нужные файлики. Скачиваю, начинаю устанавливать, и после установки sparkle-vlc, sqlite3-unicodesn, tufao попытка установить сам sparkle успехом не увенчалась: часть зависимостей не была удовлетворена. Полез внутрь deb пакета, и пришел к выводу что для установки и работы нужны gksu (у меня уже был установлен), libqt5quickparticles5, libtinyxml2-2v5, qml-module-qtgraphicaleffects и qml-module-qtquick-particles2. Установил нужные пакеты командой

sudo apt-get install libqt5quickparticles5 libtinyxml2-2v5 qml-module-qtgraphicaleffects qml-module-qtquick-particles2

и после этого установился sparkle.deb, перезагружаю линух, запускаю sparkle из списка приложениий и… ничего не происходит. Точнее, получаю список ошибок, большинство которых ссылаются на «недостаточно прав». Ладно, вытягиваю ярлык на рабочий стол, в «Свойствах» ярлыка команду для запуска меняю с

Читайте также:  Linux at deny file

и пробую запустить. Ноут секунд десять думает и открывает sparkle, который просит принять условия лицензионного соглашениия, подгружает какие-то необходимые файлы и наконец-то работает.

Надеюсь, кому-нибудь будет полезным.

Источник

Установка Sparkle на Linux Mint 18.1

Доброго времени суток, форумчане. Когда-то давно, уже более пары лет назад, пересел я с Win 7 на Linux mint. Для большинства программ находил аналоги и инструкции по их установке, реже разбирался сам, когда инструкций не было, а недавно захотелось посмотреть пару фильмов, и тут до меня дошло, что привычной мне Zona для линуха нет.

Первый же запрос в гугл показал, что есть некий проект Sparkle, который является аналогом «зоны». Еще пара запросов показала, что инструкций по установке «для чайников» нет, да еще и несколько раз натыкался на сообщения вида «проект заброшен» итп. К этому моменту была испробована некая странная связка файлов: sparkle-repository_1-1_all.deb и бинарный файл sparkle-install, которая, в общем-то, не дала результата в виде установленного sparkle, но я получил некий установленный репозиторий, из-за которого команда

начинала ругаться на неподписанный репозиторий. Репозиторий выпилил, но программы-то так и нет. Полез искать дальше. Спустя полчаса и изучив несколько веток на различных форумах в итоге вышел на то, что нужны .deb файлы sparkle-vlc, sqlite3-unicodesn, tufao и собственно sparkle, но вот где их взять было загадкой. Дальнейший поиск вывел меня на репозиторий sparkle, в котором лежали сразу все нужные файлики. Скачиваю, начинаю устанавливать, и после установки sparkle-vlc, sqlite3-unicodesn, tufao попытка установить сам sparkle успехом не увенчалась: часть зависимостей не была удовлетворена. Полез внутрь deb пакета, и пришел к выводу что для установки и работы нужны gksu (у меня уже был установлен), libqt5quickparticles5, libtinyxml2-2v5, qml-module-qtgraphicaleffects и qml-module-qtquick-particles2. Установил нужные пакеты командой

sudo apt-get install libqt5quickparticles5 libtinyxml2-2v5 qml-module-qtgraphicaleffects qml-module-qtquick-particles2

и после этого установился sparkle.deb, перезагружаю линух, запускаю sparkle из списка приложениий и… ничего не происходит. Точнее, получаю список ошибок, большинство которых ссылаются на «недостаточно прав». Ладно, вытягиваю ярлык на рабочий стол, в «Свойствах» ярлыка команду для запуска меняю с

и пробую запустить. Ноут секунд десять думает и открывает sparkle, который просит принять условия лицензионного соглашениия, подгружает какие-то необходимые файлы и наконец-то работает.

Надеюсь, кому-нибудь будет полезным.

Источник

Оцените статью
Adblock
detector