Interceptor empty queue

265 views
Skip to first unread message

Marco Biner

unread,
Jan 31, 2020, 7:05:34 AM1/31/20
to weewx-user
Hi weewx-freaks
I am usung the interceptor for colecting weather data from a Renkforce WH2600, workes fine.
Then I added the electrcity service to display the values of a solar panel on the same site, works fine.
The WH2600 triggered the electricty script to have the values time synchronized.
Actually the weatherstation stopped sending data, as the placement of the installation is up in the mountains and only reachable by mountaneering I wanted just to monitor the electricity data.
Does anybody have a hint, how to let weewx generate the graphics with an empty queue in the interceptor?
I tried, rearanging under engine the services, but no succes.

Regards
Marco

Marco Biner

unread,
Feb 14, 2020, 7:24:59 AM2/14/20
to weewx-user
Hi everyone
Problem solved, copied an old record sent from WH2600 into a bash script and with a cronjob every 5 minutes sending this record into the interceptor, weewx fetches all electricty and adds into the data base and updates an old weather record.
Feel free to ask for the bash script.
Regards
Marco

goo...@effsec.nl

unread,
Dec 3, 2022, 12:59:27 PM12/3/22
to weewx-user
Hi, I have got the same issueL user.interceptor: empty queue. Probably cannot install "pip install pypcap". how can I install python pypcap?

get following errors:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Collecting pypcap

  Using cached pypcap-1.3.0.tar.gz (140 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_c17ebc76d45448b2a39660169e0dc2c9/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_c17ebc76d45448b2a39660169e0dc2c9/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-4d2qd0mn

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_c17ebc76d45448b2a39660169e0dc2c9/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/db/4f/419ad9b163f3e86c32ae3b1e2937709520e24dce589897a26fb875189520/pypcap-1.3.0.tar.gz#sha256=669976786b2b4c43869c0ecf6228cbbb70336d1d8eb8d4fe2a3a81df395f45b5 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.2.3.tar.gz (136 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_0224211279bf4fa4963265118a1c8a1a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_0224211279bf4fa4963265118a1c8a1a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-vk1glric

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_0224211279bf4fa4963265118a1c8a1a/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/12/71/a689ca8c6ef4570e105efdc6b46d4ac16cdef7af36a8fbfaff0f6fa2b754/pypcap-1.2.3.tar.gz#sha256=ad87fa22fe05f46b5dc602724958f1025af82ba3116694eddf5cb3035f3ab1f0 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.2.2.tar.gz (130 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_40b1ee8549bd4b7bb8f94404b89d40f9/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_40b1ee8549bd4b7bb8f94404b89d40f9/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-emuqrc7c

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_40b1ee8549bd4b7bb8f94404b89d40f9/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/33/21/d1f24d8a93e4e11bf604d77e04080c05ecb0308a5606936a051bd2b2b5da/pypcap-1.2.2.tar.gz#sha256=a32322f45d63ff6196e33004c568b9f5019202a40aa2b16008b7f94e7e119c1f (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.2.1.tar.gz (130 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_b4c02ca27cdb45368a01966d6e0265ab/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_b4c02ca27cdb45368a01966d6e0265ab/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ph9rnz_q

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_b4c02ca27cdb45368a01966d6e0265ab/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/cd/b5/8b5ff59d1702c10a9a4ebbf61b8ae3185435b222f1efd1419b178d68bbe9/pypcap-1.2.1.tar.gz#sha256=9ca9f79ca839fdc8fd37393509e2cb06be70f8db03f8cfe1857ca40cac1149f0 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.2.0.tar.gz (123 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_a2ee8dd2bf724050bd281d2992a62c5f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_a2ee8dd2bf724050bd281d2992a62c5f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-4_nstu3p

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_a2ee8dd2bf724050bd281d2992a62c5f/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/5e/d2/dd63a41409a3a308dc8d0e64794996950ca79a1ea6df2cfedfb0a44f5e50/pypcap-1.2.0.tar.gz#sha256=6981b95a975cb964806899735319ca71cfd0b5a4e9f9a45970b558f49eec0158 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.6.tar.gz (50 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_5587881536ca4483815ac68a8b734c58/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_5587881536ca4483815ac68a8b734c58/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-kq8cjrf8

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_5587881536ca4483815ac68a8b734c58/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/ba/60/e724203144e2afbbc921f62152ece8bff792a173fd8104ff003ff571a4ce/pypcap-1.1.6.tar.gz#sha256=d1eb3194a2e242ff782666d18620c8b3a1053ea7758e897e792129c141c5a7b3 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.5.tar.gz (44 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_66b014d5e1944a66ba38710977a3a5dd/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_66b014d5e1944a66ba38710977a3a5dd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-mpf6jbf0

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_66b014d5e1944a66ba38710977a3a5dd/

    Complete output (6 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-p7zsp4jr/pypcap_66b014d5e1944a66ba38710977a3a5dd/setup.py", line 36

        print "Found pcap headers in %s" % pcap_h

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Found pcap headers in %s" % pcap_h)?

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/83/25/dab6b3fda95a5699503c91bf722abf9d9a5c960a4480208e4bad8747dd0c/pypcap-1.1.5.tar.gz#sha256=4b60d331e83c5bff3e25c7d99e902ea0910027fe9ce7986f0eecf5e0af6e8274 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.4.1.tar.gz (41 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_b2f58eb6aa82438688da201d1a364691/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_b2f58eb6aa82438688da201d1a364691/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-7eqxwy6c

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_b2f58eb6aa82438688da201d1a364691/

    Complete output (1 lines):

    pcap.h not found

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/bc/0b/3f0e81c19566f0cdf21f649ac22aeb4037ce87454c1f98b20be2df3797a3/pypcap-1.1.4.1.tar.gz#sha256=dbe24ecbaa5d684f91e59c78c2a2ee28b4ff082032c192ebbecdd34c53138244 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.4.tar.gz (41 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_af122f2d3ea74cb98a3ca09e4256b385/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_af122f2d3ea74cb98a3ca09e4256b385/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3t3domoc

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_af122f2d3ea74cb98a3ca09e4256b385/

    Complete output (6 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-p7zsp4jr/pypcap_af122f2d3ea74cb98a3ca09e4256b385/setup.py", line 37

        print "Found pcap headers in %s" % pcap_h

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Found pcap headers in %s" % pcap_h)?

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/05/db/cebe323a8fed23f191460f61582ab3e42dffc709ea13d6433b2dea87e61f/pypcap-1.1.4.tar.gz#sha256=294d92a36ece9a09369b9b9dc1bfb81fdd4a9d3b38cf96fb4638ca52f7f0c647 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.3.tar.gz (44 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_c7ce7698943d49f7bde6149d62fd48ed/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_c7ce7698943d49f7bde6149d62fd48ed/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-04_pkgja

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_c7ce7698943d49f7bde6149d62fd48ed/

    Complete output (6 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-p7zsp4jr/pypcap_c7ce7698943d49f7bde6149d62fd48ed/setup.py", line 40

        print "Found pcap headers in %s" % pcap_h

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Found pcap headers in %s" % pcap_h)?

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/f2/7a/150d4a9eff36433e0f61524286fd30f9b734ecd0bf7ea0758175df7b958b/pypcap-1.1.3.tar.gz#sha256=cc0786efd527f16c5f0d08accf3cbd9ff8971ddc284a445cdabf2e47b458a377 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.2.tar.gz (44 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_16ea6c6f003c44b5b119a1b0aa0489f1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_16ea6c6f003c44b5b119a1b0aa0489f1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3fnxth53

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_16ea6c6f003c44b5b119a1b0aa0489f1/

    Complete output (6 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-p7zsp4jr/pypcap_16ea6c6f003c44b5b119a1b0aa0489f1/setup.py", line 40

        print "Found pcap headers in %s" % pcap_h

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Found pcap headers in %s" % pcap_h)?

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/f3/2d/5569e041903c452a6d83e0ca6058682a5539612e02b7fe01f83900b26155/pypcap-1.1.2.tar.gz#sha256=4401737fbbfbe06edaeeeab43287987af27b97d367d42e882c091d887f78f3b0 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.1.tar.gz (44 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_66d4c33b0a374c319d3ec49e910e920f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_66d4c33b0a374c319d3ec49e910e920f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-oysk3135

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_66d4c33b0a374c319d3ec49e910e920f/

    Complete output (6 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-p7zsp4jr/pypcap_66d4c33b0a374c319d3ec49e910e920f/setup.py", line 39

        print "Found pcap headers in %s" % pcap_h

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Found pcap headers in %s" % pcap_h)?

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/c0/3d/27291dbe583eee995a4b3f07ce7615b7fd1851eceae1d69635bb5b02519b/pypcap-1.1.1.tar.gz#sha256=b310d5af36f5d68ef4217fda68086ffce56345b415eaac15ad618f94057b017b (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

  Using cached pypcap-1.1.tar.gz (8.7 kB)

    ERROR: Command errored out with exit status 1:

     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7zsp4jr/pypcap_9ff3718bb4a94fb788e5a9d5859bc8a6/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p7zsp4jr/pypcap_9ff3718bb4a94fb788e5a9d5859bc8a6/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-eo86699l

         cwd: /tmp/pip-install-p7zsp4jr/pypcap_9ff3718bb4a94fb788e5a9d5859bc8a6/

    Complete output (6 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-p7zsp4jr/pypcap_9ff3718bb4a94fb788e5a9d5859bc8a6/setup.py", line 59

        print "No pcap-int.h found"

              ^

    SyntaxError: Missing parentheses in call to 'print'. Did you mean print("No pcap-int.h found")?

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/44/18/2400db640fb5a52bdb3f2ad5790ec823f198b5a5fad15814fe676ee11260/pypcap-1.1.tar.gz#sha256=888494c9291abbeece104870723fac68db5740e3cd91a72f1317b86009e5cff0 (from https://pypi.org/simple/pypcap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ERROR: Could not find a version that satisfies the requirement pypcap

ERROR: No matching distribution found for pypcap


Op vrijdag 14 februari 2020 om 13:24:59 UTC+1 schreef Marco Biner:

vince

unread,
Dec 3, 2022, 2:22:26 PM12/3/22
to weewx-user
On Saturday, December 3, 2022 at 9:59:27 AM UTC-8 goo...@effsec.nl wrote:
Hi, I have got the same issueL user.interceptor: empty queue. Probably cannot install "pip install pypcap". how can I install python pypcap?

We need to know what os and version you are running.

On a current Raspi it works....

pi@pi4jr:~/pyenv $ python3 -m venv py_venv
pi@pi4jr:~/pyenv $ source ./py_venv/bin/activate
(py_venv) pi@pi4jr:~/pyenv $ python3 -m pip install pypcap

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pypcap
  Downloading https://www.piwheels.org/simple/pypcap/pypcap-1.3.0-cp39-cp39-linux_armv7l.whl (418 kB)
     |████████████████████████████████| 418 kB 216 kB/s
Installing collected packages: pypcap
Successfully installed pypcap-1.3.0
(py_venv) pi@pi4jr:~/pyenv $ pip3 list
Package       Version
------------- -------
pip           20.3.4
pkg-resources 0.0.0
pypcap        1.3.0
setuptools    44.1.1


 
Reply all
Reply to author
Forward
0 new messages