Bitcoin Forum
December 14, 2019, 10:05:40 PM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: AutoReply v1.0  (Read 501 times)
LoyceV
Legendary
*
Offline Offline

Activity: 1694
Merit: 5330


ArtIst > AI rtst


View Profile WWW
August 05, 2019, 01:33:10 PM
 #21

What's the output when you run pip3 install -r requirements.txt ?
pip3:
Code:
pip3 install -r requirements.txt
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'

pip:
Code:
pip install -r requirements.txt
Collecting requests-html==0.10.0 (from -r requirements.txt (line 1))
  ERROR: Could not find a version that satisfies the requirement requests-html==0.10.0 (from -r requirements.txt (line 1)) (from versions: 0.0.1, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.4.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6)
ERROR: No matching distribution found for requests-html==0.10.0 (from -r requirements.txt (line 1))

Quote
That's the only thing I ran and it worked.
I'm trying to run it on my VP (Ubuntu 16.04.6 LTS).

1576361140
Hero Member
*
Offline Offline

Posts: 1576361140

View Profile Personal Message (Offline)

Ignore
1576361140
Reply with quote  #2

1576361140
Report to moderator
1576361140
Hero Member
*
Offline Offline

Posts: 1576361140

View Profile Personal Message (Offline)

Ignore
1576361140
Reply with quote  #2

1576361140
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1576361140
Hero Member
*
Offline Offline

Posts: 1576361140

View Profile Personal Message (Offline)

Ignore
1576361140
Reply with quote  #2

1576361140
Report to moderator
TryNinja
Legendary
*
Offline Offline

Activity: 1218
Merit: 1692



View Profile
August 05, 2019, 01:36:47 PM
 #22

pip3:
Code:
pip3 install -r requirements.txt
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'
Looks like an Issue with pip3. It's running an error when you try to use it to download the requirements.

Try:
Code:
python3 -m pip install requests-html==0.10.0

bob123
Legendary
*
Offline Offline

Activity: 1106
Merit: 1580



View Profile WWW
August 05, 2019, 01:38:20 PM
 #23

What's the output when you run pip3 install -r requirements.txt ?
pip3:
Code:
pip3 install -r requirements.txt
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'

Did you upgrade pip3 outside of your distributions package manager (i.e. using pip3 --upgrade) ?
That's not really recommended.

If you however still want to use the up-do-date (and not supported by your OS) version of pip, try it with the following command:
Code:
python3 -m pip install -r requirements.txt

LoyceV
Legendary
*
Offline Offline

Activity: 1694
Merit: 5330


ArtIst > AI rtst


View Profile WWW
August 05, 2019, 01:56:05 PM
 #24

Try:
Code:
python3 -m pip install requests-html==0.10.0
Code:
python3 -m pip install requests-html==0.10.0
Collecting requests-html==0.10.0
  ERROR: Could not find a version that satisfies the requirement requests-html==0.10.0 (from versions: 0.0.1, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.4.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6)
ERROR: No matching distribution found for requests-html==0.10.0

Did you upgrade pip3 outside of your distributions package manager (i.e. using pip3 --upgrade) ?
That's not really recommended.
That's what it told me to do, and indeed I did that.

Quote
If you however still want to use the up-do-date (and not supported by your OS) version of pip, try it with the following command:
Code:
python3 -m pip install -r requirements.txt
Code:
python3 -m pip install -r requirements.txt
Collecting requests-html==0.10.0 (from -r requirements.txt (line 1))
  ERROR: Could not find a version that satisfies the requirement requests-html==0.10.0 (from -r requirements.txt (line 1)) (from versions: 0.0.1, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.4.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6)
ERROR: No matching distribution found for requests-html==0.10.0 (from -r requirements.txt (line 1))

I didn't intend to do it outside my package manager though.

bob123
Legendary
*
Offline Offline

Activity: 1106
Merit: 1580



View Profile WWW
August 06, 2019, 07:22:29 AM
 #25

That's what it told me to do, and indeed I did that.

Usually it is not recommended to do that.

Such problems can appear when mixing distribution manager (apt-get) and other tools to update software (in this case pip itself).

Did it say that there is a new version and you should update or that it is mandatory ?


Anyway, i would try to uninstall it and reinstall the package-manager version of pip, and then try it again without updating pip:
Code:
sudo python3 -m pip uninstall pip && sudo apt-get install python3-pip --reinstall

Using python3 -m pip install -r requirements.txt should work afterwards.


By the way, which version of python3 and pip are you using?
Code:
python3 --version && pip3 --version

Aero Blue
Full Member
***
Offline Offline

Activity: 154
Merit: 117


View Profile
August 06, 2019, 02:42:10 PM
 #26

That's what it told me to do, and indeed I did that.

Usually it is not recommended to do that.

Such problems can appear when mixing distribution manager (apt-get) and other tools to update software (in this case pip itself).

Did it say that there is a new version and you should update or that it is mandatory ?


Anyway, i would try to uninstall it and reinstall the package-manager version of pip, and then try it again without updating pip:
Code:
sudo python3 -m pip uninstall pip && sudo apt-get install python3-pip --reinstall

Using python3 -m pip install -r requirements.txt should work afterwards.


By the way, which version of python3 and pip are you using?
Code:
python3 --version && pip3 --version

Do you have Python 3.6? I completely forgot it was only available for that specific version of Python

My Legacy #NoPaidSig BTC: 14EQ2GvKbfkwU8JZ8PdWoAqDUWByzRAn4E
LoyceV
Legendary
*
Offline Offline

Activity: 1694
Merit: 5330


ArtIst > AI rtst


View Profile WWW
August 10, 2019, 11:44:46 AM
Last edit: August 10, 2019, 11:56:43 AM by LoyceV
 #27

Anyway, i would try to uninstall it and reinstall the package-manager version of pip, and then try it again without updating pip:
Code:
sudo python3 -m pip uninstall pip && sudo apt-get install python3-pip --reinstall

Using python3 -m pip install -r requirements.txt should work afterwards.
It fails here:
Code:
Collecting websockets (from pyppeteer>=0.0.14->requests-html==0.10.0->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/79/78/17e97a159dc55308b1468a638c7267f19765281f6205ec9c15253c154022/websockets-8.0.2.tar.gz (57kB)
    100% |################################| 61kB 12.8MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-9fhjti3j/websockets/setup.py", line 27, in <module>
        raise Exception("websockets requires Python >= 3.6.")
    Exception: websockets requires Python >= 3.6.
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9fhjti3j/websockets/
You are using pip version 8.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Quote
By the way, which version of python3 and pip are you using?
Code:
python3 --version && pip3 --version
Code:
Python 3.5.2
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)

Do you have Python 3.6? I completely forgot it was only available for that specific version of Python
My Python version older Sad

I give up for now, I've been busy fixing other stuff, but this VPS turns out to be too unstable for any serious use so I'll continue this when I have a better VPS.

Sohyun Park
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
August 22, 2019, 09:50:19 AM
 #28

I might be misunderstanding all of it but have a query in mind. The forum is for learning from others posts and comment and contributing if we can right? If we make a bot post some content then how can we get all of the knowledge?

bob123
Legendary
*
Offline Offline

Activity: 1106
Merit: 1580



View Profile WWW
August 22, 2019, 02:23:26 PM
 #29

I might be misunderstanding all of it but have a query in mind. The forum is for learning from others posts and comment and contributing if we can right? If we make a bot post some content then how can we get all of the knowledge?

"AutoReply" might be not the best suited name.

What the script actually does is to check the threads you provide and bump them if the requirements allow it (i.e. 24 hours have passed).
This is not meant to be used to participate in discussions or to spam random topics, but to bump your own topics (e.g. offering service) for more visibility while not breaking the forum rules and having the least amount of work.

It is more an "AutoBump" script, than "AutoReply".

Sohyun Park
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
August 23, 2019, 06:30:56 AM
 #30

I might be misunderstanding all of it but have a query in mind. The forum is for learning from others posts and comment and contributing if we can right? If we make a bot post some content then how can we get all of the knowledge?

"AutoReply" might be not the best suited name.

What the script actually does is to check the threads you provide and bump them if the requirements allow it (i.e. 24 hours have passed).
This is not meant to be used to participate in discussions or to spam random topics, but to bump your own topics (e.g. offering service) for more visibility while not breaking the forum rules and having the least amount of work.

It is more an "AutoBump" script, than "AutoReply".

Thanks for the informative reply. Smiley Got it.

Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!