View: 1773|Reply: 6

Webserver dont start

[Copy link]

3

Threads

7

Posts

41

Credits

Newbie

Rank: 1

Credits
41
Post time 2022-1-30 11:30:54 | Show all posts |Read mode
Edited by 1643512123 at 2022-1-30 11:34 AM

I can login via SSH but nothing work if I run setup.py there are a a problem with opencv also



pi@raspberrypi:~ $ sudo python3 adeept_rasptank/server/webServer.py
Traceback (most recent call last):
  File "/home/pi/adeept_rasptank/server/webServer.py", line 26, in <module>
    import app
  File "/home/pi/adeept_rasptank/server/app.py", line 8, in <module>
    from camera_opencv import Camera
  File "/home/pi/adeept_rasptank/server/camera_opencv.py", line 2, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'

Raspbian version is → bullseye, raspberry model is model 3 B.

I buy my rasptank this week and I just end to asemble It so I dont have experience with the debug of the rasptank, simply It dont work.
Reply

Use magic Report

3

Threads

7

Posts

41

Credits

Newbie

Rank: 1

Credits
41
 Author| Post time 2022-1-30 21:54:20 | Show all posts
Edited by 1643512123 at 2022-1-30 09:55 PM

I also try donwload buster image and burn on sdccard and there are messages of errors when run setup.py.

Anyone have an image that work correctly specific for this robot ?

I cant put errors messages maybe is too long to put here when I try appear a message in mandarin and I dont have any idea What means.
I'm use  Debian on my pcs.

Thanks
Reply

Use magic Report

3

Threads

7

Posts

41

Credits

Newbie

Rank: 1

Credits
41
 Author| Post time 2022-1-30 23:43:36 | Show all posts
I cant figure how to solve the problems with python, so I will return to rewrite on Sd card the bullseye image, and in future if any here suggest any support I will try all suggest answers.

At this point I dont have any idea if  I buy a completely obsolete robot or not I cant figure if there are any program alternative to manage It.

My robot is Rasptank Raspberry Pi and the setup.py prvided by github dont install properly the programs that the robot needs I think.

Thanks.
Reply

Use magic Report

4

Threads

7

Posts

52

Credits

Registered member

Rank: 2

Credits
52
Post time 2022-2-1 00:14:56 | Show all posts
Have you tried their pre-configured img file? I haven't needed it but it might work.

https://www.adeept.com/video/sta ... %20image%20file.pdf
Reply

Use magic Report

3

Threads

7

Posts

41

Credits

Newbie

Rank: 1

Credits
41
 Author| Post time 2022-2-1 05:38:45 | Show all posts
Edited by 1643512123 at 2022-2-1 06:18 AM

Try to run webserver by ssh →

sudo python3 adeept_rasptank/server/webServer.py
Traceback (most recent call last):
  File "/home/pi/adeept_rasptank/server/webServer.py", line 14, in <module>
    import RPIservo
  File "/home/pi/adeept_rasptank/server/RPIservo.py", line 17, in <module>
    pwm = Adafruit_PCA9685.PCA9685()
  File "/usr/local/lib/python3.9/dist-packages/Adafruit_PCA9685-1.0.1-py3.9.egg/Adafruit_PCA9685/PCA9685.py", line 74, in __init__
  File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO-1.0.4-py3.9.egg/Adafruit_GPIO/I2C.py", line 66, in get_i2c_device
  File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO-1.0.4-py3.9.egg/Adafruit_GPIO/I2C.py", line 98, in __init__
ModuleNotFoundError: No module named 'Adafruit_PureIO'

Try to install adafruit →

$ sudo pip install Adafruit-PureIO
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/commands/install.py", line 339, in run
    requirement_set = resolver.resolve(
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
    result = self._result = resolver.resolve(
  File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
    if not criterion.candidates:
  File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__
    return bool(self._sequence)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
    return any(self)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 44, in _iter_built
    for version, func in infos:
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/resolution/resolvelib/factory.py", line 294, in iter_index_candidate_infos
    result = self._finder.find_best_candidate(
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/package_finder.py", line 868, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/package_finder.py", line 809, in find_all_candidates
    page_candidates = list(page_candidates_it)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/sources.py", line 134, in page_candidates
    yield from self._candidates_from_page(self._link)
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/package_finder.py", line 773, in process_project_url
    page_links = list(parse_links(html_page, self._use_deprecated_html5lib))
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/collector.py", line 310, in wrapper_wrapper
    return list(fn(page, use_deprecated_html5lib))
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/collector.py", line 350, in parse_links
    parser.feed(page.content.decode(encoding))
  File "/usr/lib/python3.9/html/parser.py", line 110, in feed
    self.goahead(0)
  File "/usr/lib/python3.9/html/parser.py", line 178, in goahead
    k = self.parse_html_declaration(i)
  File "/usr/lib/python3.9/html/parser.py", line 269, in parse_html_declaration
    self.handle_decl(rawdata[i+2:gtpos])
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/collector.py", line 405, in handle_decl
    self._raise_error()
  File "/usr/local/lib/python3.9/dist-packages/pip/_internal/index/collector.py", line 426, in _raise_error
    raise ValueError(
ValueError: HTML doctype missing or incorrect. Expected <!DOCTYPE html>.

If you believe this error to be incorrect, try passing the command line option --use-deprecated=html5lib and please leave a comment on the pip issue at https://github.com/pypa/pip/issues/10825.


Reply

Use magic Report

0

Threads

2

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2022-2-7 18:04:54 | Show all posts
Hi,
i've got the same mistake.
for i uninstall/install numpy and opencv.
Pip3 uninstall numpy
Pip3 uninstall opencv
Pip3 install numpy
pip3 install opencv-python
Reply

Use magic Report

0

Threads

53

Posts

201

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
201
Post time 2022-5-5 18:18:09 | Show all posts
It may be that the Raspberry Pi version compatibility problem causes the dependent library to fail to be installed successfully. Please download and install Raspberry Pi OS (Legacy).
Raspberry Pi OS (Legacy) download address: https://www.raspberrypi.com/software/operating-systems/
You need to find Raspberry Pi OS (Legacy) in the link and download the image file.
Raspberry Pi official description of the Raspberry Pi OS (Legacy):
https://www.raspberrypi.com/news ... berry-pi-os-legacy/
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules