Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneFichierCom premium account not detected #3254

Closed
baubi opened this issue Oct 26, 2018 · 56 comments
Closed

OneFichierCom premium account not detected #3254

baubi opened this issue Oct 26, 2018 · 56 comments
Labels
question Further information is requested

Comments

@baubi
Copy link

baubi commented Oct 26, 2018

Hello,
I subscribed a premium account on Onefichier.com today but it's not valid on my pyload.

"ERROR | ACCOUNT OneFichierCom: Could not login user bob******* | (35, 'error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version')"

What is my problem ?
Thanks a lot
Bob

@GammaC0de
Copy link
Member

See #3250

@GammaC0de GammaC0de added the question Further information is requested label Oct 26, 2018
@baubi
Copy link
Author

baubi commented Oct 29, 2018

Thank you but it doesn't work :(
i have got a good version pycurl but i haven't got openSSL version !!
I look for tomorrow

@GammaC0de
Copy link
Member

i have got a good version pycurl but i haven't got openSSL version !!

If you don't have pycurl openSSL version, it is not good..

@baubi
Copy link
Author

baubi commented Nov 4, 2018

hi
I think it's ok now but my account identification doesn't work.
In log, i have :

04.11.2018 03:27:10 INFO ACCOUNT OneFichierCom: Updating account info for user bobgrang@gmail.com...
109 04.11.2018 03:27:10 INFO ACCOUNT OneFichierCom: Relogin user None...
110 04.11.2018 03:27:10 ERROR ACCOUNT OneFichierCom: Could not login user None | 'login'

It's strange..
Have you got a idea ?
Thanks a lot.

@baubi
Copy link
Author

baubi commented Nov 4, 2018

No,
I just do it. and it's the same problem

114 04.11.2018 03:41:46 ERROR ACCOUNT OneFichierCom: Could not login user Bob******* | (35, 'error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version')

However,
This is my ipkg list installed :
 
[/] # ipkg list-installed
ipkg: unknown sub-command list-installed
ipkg version 0.99.163
usage: ipkg [options...] sub-command [arguments...]
where sub-command is one 
[/] #                    ipkg list_installed
bzip2 - 1.0.6-1 - Very high-quality data compression program
freetype - 2.3.6-1 - Free truetype library
libcurl - 7.24.0-1 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libgmp - 4.3.2-1 - GNU Multiple Precision Arithmetic Library.
libidn - 1.25-1 - GNU Libidn is an implementation of the Stringprep, Punycode and IDNA specifications defined by the IETF Internationalized Domai
libjpeg - 6b-3 - collection of jpeg tools
libpng - 1.2.44-1 - Portable Network Graphics Libraries
libstdc++ - 6.0.3-6 - Standard C++ library, needed for dynamically linked C++ programs
libtiff - 3.9.5-1 - Tag Image File Format Libraries
nano - 2.2.6-1 - A pico like editor
ncurses - 5.7-3 - NCurses libraries
ncursesw - 5.7-2 - NCurses libraries with wide char support
openssl - 0.9.8v-2 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
ossp-js - 1.6.20070208-1 - a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla.
py25-crypto - 2.1.0-2 - Python Cryptography Toolkit.
py25-curl - 7.19.0-1 - PycURL is a Python interface to libcurl.
py25-django - 1.1.2-1 - A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
py25-openssl - 0.10-1 - Python wrapper around a small subset of the OpenSSL library.
py25-pil - 1.1.7-1 - The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter.
python - 2.5-1 - This is a package that sets up the default python.
python25 - 2.5.6-2 - Python is an interpreted, interactive, object-oriented programming language.
readline - 6.1-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
sqlite - 3.8.1-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
tesseract-ocr - 2.03-3 - An OCR Engine
tesseract-ocr-lang-eng - 2.03-3 - An OCR Engine, eng language files
unrar - 5.0.12-1 - unrar is an application that can decompress files and archives created using the RAR compression scheme
unzip - 6.0-2 - A (de)compression library for the ZIP format
wget-ssl - 1.12-2 - A network utility to retrieve files from the Web
zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system.
Successfully terminated.
[/] # 

@GammaC0de
Copy link
Member

@baubi
What is the output of:

python
import pycurl
pycurl.version

?

@baubi
Copy link
Author

baubi commented Nov 5, 2018

Thanks for your come back,

[~] # python
Python 2.5.6 (r256:88840, Feb 16 2012, 05:11:54) 
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

 import pycurl
 pycurl.version
'libcurl/7.24.0 OpenSSL/0.9.8v zlib/1.2.5'
 

@GammaC0de
Copy link
Member

Why are you using python 2.5?

@baubi
Copy link
Author

baubi commented Nov 5, 2018

Because I read :

Note: You need at least Python 2.5 or at most Python 2.7 to run pyLoad and its required software dependencies.

@baubi
Copy link
Author

baubi commented Nov 5, 2018

But i can try with Python 2.6
I don't know if librarys are out of date with my nas version !

@GammaC0de
Copy link
Member

Can you use Optware-ng?

@baubi
Copy link
Author

baubi commented Nov 6, 2018

I think no.
I have a qnap 109 pro 2 and i don't use the QTS 4.2 firmware. ☹

@GammaC0de
Copy link
Member

What is the output of which ipkg?

Dou you have optware/entware installed?

@baubi
Copy link
Author

baubi commented Nov 7, 2018

I finally broke my ipkg with Opware-ng because now i can't run ipkg :
[/] # ipkg update
-sh: /opt/bin/ipkg: cannot execute binary file

i try to repair but it's not easy

@baubi
Copy link
Author

baubi commented Nov 7, 2018

i have Optware_0.99.163_arm-x09 normally :D

@GammaC0de
Copy link
Member

Which version of Opware-ng have you tried to install?

i don't use the QTS 4.2 firmware

Why not?

@baubi
Copy link
Author

baubi commented Nov 7, 2018

I finally broke my ipkg with Opware-ng because now i can't run ipkg :
[/] # ipkg update
-sh: /opt/bin/ipkg: cannot execute binary file

i try to repair but it's not easy

ok, it's work ! :)

Why not?

because my Qnap is a 109 pro2 and his firmware is out of date (qts : 3.3.2 ! )

@baubi
Copy link
Author

baubi commented Nov 7, 2018

About ssl,
i haven't got libcurl4-openssl-dev :

[/] # ipkg list | grep ssl
alac-decoder - 0.1.0-2 - A decoder for the apple lossless file format
flac - 1.2.1-1 - FLAC is a free lossless audio codec. This package contains the codec libraries and the command-line tools flac and metaflac.
openssl - 0.9.8v-2 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
openssl-dev - 0.9.8v-2 - openssl native development files
perl-crypt-openssl-random - 0.03-1 - Crypt-OpenSSL-Random - Routines for accessing the OpenSSL pseudo-random number generator
perl-crypt-openssl-rsa - 0.24-1 - Crypt-OpenSSL-RSA - RSA encoding and decoding, using the openSSL libraries
perl-crypt-ssleay - 0.55-1 - OpenSSL glue that provides LWP https support.
perl-io-socket-ssl - 0.999-1 - IO-Socket-SSL - Nearly transparent SSL encapsulation for IO::Socket::INET
perl-net-ssleay - 1.30-1 - Net_SSLeay - Perl extension for using OpenSSL
py25-openssl - 0.10-1 - Python wrapper around a small subset of the OpenSSL library.
py26-openssl - 0.10-1 - Python wrapper around a small subset of the OpenSSL library.
sslwrap - 206-1 - sslwrap is a simple Unix service that sits over any simple TCP service such as POP3, IMAP, SMTP, and encrypts all of the data o
ucl - 1.03-1 - UCL is a portable lossless data compression library written in ANSI C.
wavpack - 4.50.1-1 - WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression m
wget-ssl - 1.12-2 - A network utility to retrieve files from the Web

I'm lost

@baubi
Copy link
Author

baubi commented Nov 7, 2018

In Log of pyload, when i add a account, i read :

08.11.2018 00:38:52 INFO pyLoad is up and running
08.11.2018 00:38:58 INFO ADDON ClickNLoad: Proxy listening on 0.0.0.0:9666
08.11.2018 00:39:24 INFO ACCOUNT OneFichierCom: Adding user bob*******...
08.11.2018 00:39:24 DEBUG ACCOUNT OneFichierCom: Reached login timeout for user bob*******
08.11.2018 00:39:24 INFO ACCOUNT OneFichierCom: Login user bob*******...
08.11.2018 00:39:24 DEBUG ACCOUNT OneFichierCom: LOAD URL https://1fichier.com/login.pl?lg=en | redirect=True | decode=True | cookies=True | get={} | req=None | just_header=False | post={'purge': 'off', 'mail': 'bob*******', 'valider': 'Send', 'It': 'on', 'pass': '**********'} | ref=https://1fichier.com/login.pl?lg=en | multipart=False
08.11.2018 00:39:24 ERROR ACCOUNT OneFichierCom: Could not login user bob******* | (35, 'error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version')

is it normal ?
why have got "**" instead my mail adress ?
is there a track ?

@GammaC0de
Copy link
Member

GammaC0de commented Nov 8, 2018 via email

@baubi
Copy link
Author

baubi commented Nov 8, 2018

Ok,
I have just test with python2.6
but it dosn't work :(

@baubi
Copy link
Author

baubi commented Nov 8, 2018

what should be the version of pycurl ? and openSSL ?

@GammaC0de
Copy link
Member

This is from my system:

python
>>> import pycurl
>>> pycurl.version
'PycURL/7.43.0.2 libcurl/7.60.0 OpenSSL/1.1.0h zlib/1.2.11 c-ares/1.14.0 WinIDN libssh2/1.8.0 nghttp2/1.32.0'
>>>

Where from did you get Optware_0.99.163_arm-x09?

@baubi
Copy link
Author

baubi commented Nov 9, 2018

Optware 0.99.163_ arm is extension of my nas for use package and library linux.
Normally, it's up to date.

@GammaC0de
Copy link
Member

Optware 0.99.163_ arm is extension of my nas for use package and library linux.

Where to download it from? I want to check..

@baubi
Copy link
Author

baubi commented Nov 10, 2018

http://pool.qnapclub.pl/projects/packages/optware/
arm-x09 version
Thanks :)

@GammaC0de
Copy link
Member

What is the output of uname -a?

@baubi
Copy link
Author

baubi commented Nov 10, 2018

uname -a
[~] # uname -a
Linux ANGEBOB-NAS 2.6.12.6-arm1 #1 Sun Sep 18 01:42:37 CST 2011 armv5tejl unknown

@GammaC0de
Copy link
Member

GammaC0de commented Nov 10, 2018

So which flavor of optware-ng have you tried?

I recommend you to try:

wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armv5eabi-ng-legacy-bootstrap.sh | sh

If this does not work,
Your only option is to build libcurl and openssl packages from the source code (and this might also be impossible because of old kernel)

@baubi
Copy link
Author

baubi commented Nov 11, 2018

Yes,
I have try:

https://forum.qnap.com/viewtopic.php?f=124&t=137710

But i don't know if it's ok with my kernel version! (2.6.12.6-arm1)

I have got after install : segmentation fault.
Why ?

@GammaC0de
Copy link
Member

Try installing these packages and then issue:

python
import pycurl
pycurl.version

and post the results.

libcurl.zip

@GammaC0de GammaC0de added the feedback wanted User attention is needed label Nov 11, 2018
@baubi
Copy link
Author

baubi commented Nov 12, 2018

But how to do from ipk?

@GammaC0de
Copy link
Member

ipkg install ./somepackage.ipk

@baubi
Copy link
Author

baubi commented Nov 13, 2018

[/] # python
Python 2.5.6 (r256:88840, Feb 16 2012, 05:11:54)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import pycurl
Traceback (most recent call last):
File "", line 1, in
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

@GammaC0de
Copy link
Member

GammaC0de commented Nov 13, 2018

More packages (install the 25 flavors in your case):
py-curl.zip

@GammaC0de
Copy link
Member

Here is python 2.7 for you:
python27.zip

@baubi
Copy link
Author

baubi commented Nov 13, 2018

Ok but it's strange, i can't run python or python27 :
[/] # python
-sh: python: command not found
[/] # python27
-sh: python27: command not found
[/] #

while the package are installed :

[/] # ipkg list_installed
bzip2 - 1.0.6-1 - Very high-quality data compression program
freetype - 2.3.6-1 - Free truetype library
libcurl - 7.40.0-1 -
libdb - 4.2.52-3 - Berkeley DB Libraries
libgmp - 4.3.2-1 - GNU Multiple Precision Arithmetic Library.
libjpeg - 6b-3 - collection of jpeg tools
libpng - 1.2.44-1 - Portable Network Graphics Libraries
libstdc++ - 6.0.3-6 - Standard C++ library, needed for dynamically linked C++ programs
libtiff - 3.9.5-1 - Tag Image File Format Libraries
nano - 2.2.6-1 - A pico like editor
ncurses - 5.7-3 - NCurses libraries
ncursesw - 5.7-2 - NCurses libraries with wide char support
openssl - 1.0.1a-2 -
ossp-js - 1.6.20070208-1 - a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla.
py25-crypto - 2.1.0-2 - Python Cryptography Toolkit.
py25-curl - 7.19.0-1 - PycURL is a Python interface to libcurl.
py25-django - 1.1.2-1 - A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
py25-openssl - 0.10-1 - Python wrapper around a small subset of the OpenSSL library.
py25-pil - 1.1.7-1 - The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter.
py27-crypto - 2.1.0-2 -
py27-curl - 7.19.0-2 -
py27-mercurial - 1.9-1 - A fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects.
py27-openssl - 0.10-2 -
py27-pil - 1.1.7-1 -
py27-redis - 2.7.2-1 - The Python interface to the Redis key-value store
py27-setuptools - 0.6c11-2 - Tool to build and distribute Python packages, enhancement to distutils.
python25 - 2.5.6-2 - Python is an interpreted, interactive, object-oriented programming language.
python27 - 2.7.3-1 - Python is an interpreted, interactive, object-oriented programming language.
readline - 6.1-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
sqlite - 3.8.1-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
termcap - 1.3.1-2 - Terminal emulation library
tesseract-ocr - 2.03-3 - An OCR Engine
tesseract-ocr-lang-eng - 2.03-3 - An OCR Engine, eng language files
zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system.
Successfully terminated.

@GammaC0de
Copy link
Member

/opt/bin/python2.7

@baubi
Copy link
Author

baubi commented Nov 13, 2018

If i install python again, i recognise python 2.5
and impossible to start python27 but python25

ipkg install python
Installing python (2.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/python_2.5-1_arm.ipk
Configuring python
Successfully terminated.
[/] # python
Python 2.5.6 (r256:88840, Feb 16 2012, 05:11:54)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import libcurl
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named libcurl
import pycurl
Traceback (most recent call last):
File "", line 1, in
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

[/] # python27
-sh: python27: command not found
[/] # python

or

[/] # ipkg install python
Installing python (2.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/python_2.5-1_arm.ipk
Configuring python
Successfully terminated.
[/] # python
Python 2.5.6 (r256:88840, Feb 16 2012, 05:11:54)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import libcurl
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named libcurl
import pycurl
Traceback (most recent call last):
File "", line 1, in
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

[/] # python27
-sh: python27: command not found
[/] # python
[/] # ipkg remove python
Removing package python from root...
Successfully terminated.
[/] # cd /share/HDA_DATA/.qpkg/
[/share/HDA_DATA/.qpkg] # cd python27/
[/share/HDA_DATA/.qpkg/python27] # ls
py27-crypto_2.1.0-2_arm.ipk py27-openssl_0.10-2_arm.ipk python27_2.7.3-1_arm.ipk
py27-curl_7.19.0-2_arm.ipk py27-pil_1.1.7-1_arm.ipk
[/share/HDA_DATA/.qpkg/python27] # ipkg install python27_2.7.3-1_arm.ipk
Installing python27 (2.7.3-1) to root...
Nothing to be done
Successfully terminated.
Collected errors:
Package python27 md5sum mismatch. Either the ipkg or the package index are corrupt. Try 'ipkg update'.
[/share/HDA_DATA/.qpkg/python27] # python
-sh: python: command not found
[/share/HDA_DATA/.qpkg/python27] #

@GammaC0de
Copy link
Member

you start it with /opt/bin/python2.7 (notice the dot in 2.7)

@baubi
Copy link
Author

baubi commented Nov 13, 2018

Yeah ! it's ok :
[/opt] # python2.7
Python 2.7.3 (default, Apr 12 2012, 12:17:48)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import pycurl
pycurl.version
'libcurl/7.40.0 OpenSSL/1.0.1a zlib/1.2.5'

But about installing python, have you got : python27 md5sum because :
[/opt] # ipkg install /opt/python27/python27_2.7.3-1_arm.ipk
Installing python27 (2.7.3-1) to root...
Nothing to be done
Successfully terminated.
Collected errors:
Package python27 md5sum mismatch. Either the ipkg or the package index are corru pt. Try 'ipkg update'.

Where have you find the packages ? :)

@GammaC0de
Copy link
Member

Is seems that python27 is already installed so ignore those messages.

Now type:

/opt/bin/python2.7
import pycurl
pycurl.version

And post the output here.

Now how exactly do you starts pyload?

@baubi
Copy link
Author

baubi commented Nov 13, 2018

ok ok

Is seems that python27 is already installed so ignore those messages.
Now type:
/opt/bin/python2.7
import pycurl
pycurl.version

python2.7
Python 2.7.3 (default, Apr 12 2012, 12:17:48)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import pycurl
pycurl.version
'libcurl/7.40.0 OpenSSL/1.0.1a zlib/1.2.5'

and

Now how exactly do you starts pyload?

python2.7 /opt/pyload-stable/pyload-stable/pyLoadCore.py
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
Traceback (most recent call last):
File "/opt/pyload-stable/pyload-stable/pyLoadCore.py", line 54, in
from module.database import DatabaseBackend, FileHandler
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/database/init.py", line 5, in
from UserDatabase import UserMethods
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/database/UserDatabase.py", line 19, in
from hashlib import sha1
ImportError: cannot import name sha1

@GammaC0de
Copy link
Member

GammaC0de commented Nov 13, 2018

does pyload works now with python 2.5?

Also issue:

python2.7 
import hashlib
dir(hashlib)

What is the output?

@baubi
Copy link
Author

baubi commented Nov 13, 2018

no :
python2.5 /opt/pyload-stable/pyload-stable/pyLoadCore.py
Traceback (most recent call last):
File "/opt/pyload-stable/pyload-stable/pyLoadCore.py", line 48, in
from module.network.RequestFactory import RequestFactory
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/network/RequestFactory.py", line 22, in
from Browser import Browser
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/network/Browser.py", line 6, in
from HTTPRequest import HTTPRequest
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/network/HTTPRequest.py", line 21, in
import pycurl
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

python2.5
Python 2.5.6 (r256:88840, Feb 16 2012, 05:11:54)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import pycurl
Traceback (most recent call last):
File "", line 1, in
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

@GammaC0de
Copy link
Member

What is the output of:

ls -l /opt/lib/libssl.*

And:

python2.7 
import hashlib
dir(hashlib)

?

@baubi
Copy link
Author

baubi commented Nov 13, 2018

ls -l /opt/lib/libssl.*
lrwxrwxrwx 1 admin administ 15 Nov 13 01:54 /opt/lib/libssl.so -> libssl.so.1.0.0
lrwxrwxrwx 1 admin administ 15 Nov 13 01:54 /opt/lib/libssl.so.0 -> libssl.so.1.0.0
-rw-r--r-- 1 admin administ 319788 Nov 11 19:49 /opt/lib/libssl.so.1.0.0

and

python2.7
Python 2.7.3 (default, Apr 12 2012, 12:17:48)
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import haslib
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named haslib
import hashlib
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1

dir(hashlib)
['all', 'builtins', 'doc', 'file', '__get_builtin_constructor', 'name', 'package', 'algorithms', 'logging', 'new', 'sha224', 'sha256', 'sha384', 'sha512']

@GammaC0de
Copy link
Member

Install this:
openssl_1.0.1a-2_arm.zip

@baubi
Copy link
Author

baubi commented Nov 13, 2018

ok :
ipkg install cd /opt/openssl_1.0.1a-2_arm/openssl_1.0.1a-2_arm.ipk
Installing openssl (1.0.1a-2) to root...
Configuring openssl
Successfully terminated.
Collected errors:
Cannot find package cd.
Check the spelling or perhaps run 'ipkg update'

but pyload doesn't start :
python2.7 /opt/pyload-stable/pyload-stable/pyLoadCore.py
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
Traceback (most recent call last):
File "/opt/pyload-stable/pyload-stable/pyLoadCore.py", line 54, in
from module.database import DatabaseBackend, FileHandler
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/database/init.py", line 5, in
from UserDatabase import UserMethods
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/database/UserDatabase.py", line 19, in
from hashlib import sha1
ImportError: cannot import name sha1

@GammaC0de
Copy link
Member

Install this:
openssl_1.0.1a-3_arm.zip

@baubi
Copy link
Author

baubi commented Nov 13, 2018

ipkg install cd /opt/openssl_1.0.1a-2_arm/openssl_1.0.1a-3_arm.ipk
Upgrading openssl on root from 1.0.1a-2 to 1.0.1a-3...
Configuring openssl
Successfully terminated.
Collected errors:
Cannot find package cd.
Check the spelling or perhaps run 'ipkg update'
[~] # python2.7 /opt/pyload-stable/pyload-stable/pyLoadCore.py
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = __get_hash(__func_name)
File "/opt/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
Traceback (most recent call last):
File "/opt/pyload-stable/pyload-stable/pyLoadCore.py", line 54, in
from module.database import DatabaseBackend, FileHandler
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/database/init.py", line 5, in
from UserDatabase import UserMethods
File "/share/HDA_DATA/.qpkg/Optware/pyload-stable/pyload-stable/module/database/UserDatabase.py", line 19, in
from hashlib import sha1
ImportError: cannot import name sha1

@GammaC0de
Copy link
Member

Output of:

 python2.7
 import _hashlib
 dir(_hashlib)

?

@baubi
Copy link
Author

baubi commented Nov 14, 2018

[K[] # 
[
] # python2.7
Python 2.7.3 (default, Apr 12 2012, 12:17:48) 
[GCC 3.4.3 (release) (CodeSourcery ARM Q1B 2005)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

 import _hashlib
Traceback (most recent call last):
  File "", line 1, in 
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

 dir(_hashlib)
Traceback (most recent call last):
  File "", line 1, in 
NameError: name '_hashlib' is not defined
 

@GammaC0de
Copy link
Member

Install this:
python27_2.7.3-2_arm.zip

@baubi
Copy link
Author

baubi commented Nov 14, 2018

WHAAAAA !!! 👍
Respect !!
Thanks a lot !

image

@GammaC0de
Copy link
Member

Great 👍 👍 👍

Now I recommend you to switch to the pyplex web interface.

@GammaC0de GammaC0de removed the feedback wanted User attention is needed label Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants