Unfortunately there are some issues when I try to install the tool.

When I use the command "sudo pip install pysftp" I'll receive the following 
text:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pysftp in 
/usr/local/lib/python2.7/dist-packages (0.2.9)
Requirement already satisfied: paramiko>=1.17 in 
/usr/local/lib/python2.7/dist-packages (from pysftp) (2.4.2)
Requirement already satisfied: cryptography>=1.5 in 
/usr/lib/python2.7/dist-packages (from paramiko>=1.17->pysftp) (2.6.1)
Requirement already satisfied: bcrypt>=3.1.3 in 
/usr/local/lib/python2.7/dist-packages (from paramiko>=1.17->pysftp) (3.1.6)
Collecting pyasn1>=0.1.7 (from paramiko>=1.17->pysftp)
Using cached 
https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl
Requirement already satisfied: pynacl>=1.0.1 in 
/usr/local/lib/python2.7/dist-packages (from paramiko>=1.17->pysftp) (1.3.0)
Requirement already satisfied: cffi>=1.1 in 
/usr/local/lib/python2.7/dist-packages (from 
bcrypt>=3.1.3->paramiko>=1.17->pysftp) (1.12.2)
Requirement already satisfied: six>=1.4.1 in 
/usr/lib/python2.7/dist-packages (from 
bcrypt>=3.1.3->paramiko>=1.17->pysftp) (1.12.0)
Requirement already satisfied: pycparser in 
/usr/local/lib/python2.7/dist-packages (from 
cffi>=1.1->bcrypt>=3.1.3->paramiko>=1.17->pysftp) (2.19)
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", 
line 143, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/_internal/commands/install.py", 
line 369, in run
self._warn_about_conflicts(to_install)
File "/usr/lib/python2.7/dist-packages/pip/_internal/commands/install.py", 
line 495, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "/usr/lib/python2.7/dist-packages/pip/_internal/operations/check.py", 
line 103, in check_install_conflicts
whitelist = _create_whitelist(would_be_installed, package_set)
File "/usr/lib/python2.7/dist-packages/pip/_internal/operations/check.py", 
line 144, in _create_whitelist
if canonicalize_name(req.name) in packages_affected:
AttributeError: Requirement instance has no attribute 'name'

Using this command: "sudo pip3 install pysftp":

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pysftp in 
/usr/local/lib/python3.7/dist-packages (0.2.9)
Requirement already satisfied: paramiko>=1.17 in 
/usr/local/lib/python3.7/dist-packages (from pysftp) (2.7.1)
Requirement already satisfied: bcrypt>=3.1.3 in 
/usr/local/lib/python3.7/dist-packages (from paramiko>=1.17->pysftp) (3.1.7)
Requirement already satisfied: cryptography>=2.5 in 
/usr/lib/python3/dist-packages (from paramiko>=1.17->pysftp) (2.6.1)
Requirement already satisfied: pynacl>=1.0.1 in 
/usr/local/lib/python3.7/dist-packages (from paramiko>=1.17->pysftp) (1.3.0)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages 
(from bcrypt>=3.1.3->paramiko>=1.17->pysftp) (1.12.0)
Requirement already satisfied: cffi>=1.1 in 
/usr/local/lib/python3.7/dist-packages (from 
bcrypt>=3.1.3->paramiko>=1.17->pysftp) (1.14.0)
Requirement already satisfied: pycparser in 
/usr/local/lib/python3.7/dist-packages (from 
cffi>=1.1->bcrypt>=3.1.3->paramiko>=1.17->pysftp) (2.20)

And sudo service weewx status -1 tells me:

● weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (running) since Tue 2020-04-28 12:44:14 CEST; 20min ago
Docs: man:systemd-sysv-generator(8)
Process: 2152 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)
Tasks: 6 (limit: 2191)
Memory: 27.0M
CGroup: /system.slice/weewx.service
└─2167 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid 
/etc/weewx/weewx.conf

Apr 28 13:00:24 raspberrypi weewx[2167]: copygenerator: copied 0 files to 
/var/www/html/weewx
Apr 28 13:00:24 raspberrypi weewx[2167]: copygenerator: copied 0 files to 
/var/www/html/weewx/steel
Apr 28 13:00:24 raspberrypi weewx[2167]: cheetahgenerator: Generated 2 
files for report SteelSeries in 0.22 seconds
Apr 28 13:00:25 raspberrypi weewx[2167]: imagegenerator: Generated 11 
images for SteelSeries in 0.95 seconds
Apr 28 13:00:25 raspberrypi weewx[2167]: sftpgenerator: upload not 
possible: cannot import name util

Sometimes also

Apr 28 12:45:31 raspberrypi weewx[2167]: sftpgenerator: upload not 
possible: No module named pyasn1.type.univ

Can anyone help me please or any idea for solving that issue?

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c738a329-56e0-4179-bf7d-63c0ccd34ad5%40googlegroups.com.

Reply via email to