dgrant / eyefiserver2

A standalone Eye-Fi server in Python, for Linux
GNU General Public License v3.0
140 stars 40 forks source link

QNAP Python 2.7 Package vs. Optware #21

Closed kmplngj closed 6 years ago

kmplngj commented 9 years ago

Hi,

I tried to instal 0.0.17 on my QNAP NAS.

I'm getting an error message telling that Optware is needed. I already have the Python 2.7 packages installed is that not sufficient?

Thanks Jan

EyeFiServer 0.0.17 installation failed. The following QPKG must be installed and enabled: Optware | opkg, Python >= 2.5 | OPT/python, Optware | opkg.
dukesrg commented 9 years ago

Uninstall python package, eyefi server installs all dependent packages automatically.

kmplngj commented 9 years ago

I need the Python Package for another App package. I don't like to install the Optware Package. Would it be possible to use the Python Package and not the Optware?

dukesrg commented 9 years ago

I'm not quite sure that is the issue. Try to uninstall Python 2.7 QPKG, instapp eyefiserver QPKG, check it working or not, install Python 2.7 QPKG and check eyefiserver is working again.

riker09 commented 8 years ago

On recent versions of the QNAP firmware Optware is marked as deprecated and cannot be installed anymore. At least that is what I got out of some other issues (#25) and blog posts.

I ended building the package myself. At first I thought it would require a lot of work, but turns out that it was rather easy. I installed two additional QPKG packages (Qpkgware and QDK), modified the file qpkg/qpkg.conf and issued the build command.

qpkg/qpkg.conf

QPKG_REQUIRE="Python >= 2.5 | OPT/python"

There already was a compatible python version on my Qnap NAS (SS-439), I determined this by typing:

# which python
/opt/bin/python

and

# python --version
Python 2.7.11

Please note: I haven't installed any python package as far as I remember.

Building

Once the prerequisites where met, all it took was the single build command (after cd-ing into the git folder):

# cd /share/MD0_DATA/Qdownload/eyefiserver2-master/qpkg
# qbuild

Once the command finishes the QPKG package will live inside of the build subfolder and can be installed through the webinterface. I also pushed the version number up one notch, but that's cosmetics, as far as I'm concerned.

If anybody is interested, I might file a PR, but I'm not sure if this case qualifies for one.

knightpfhor commented 8 years ago

This helped me greatly with being able to get the server installed. I think this would be a great PR, even better if you could update the QPKG_REQUIRE to reference Entware rather than Optware.