How can I import visuals as vs? - python

When I try to import supplementary visualizations code I got the following:
import visuals as vs
**ModuleNotFoundError: No module named 'visuals'**
I tried to install VPython via the link: https://vpython.org/presentation2018/install.html
and then:
conda install -c vpython vpython
but I got error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/vpython/win-64/current_repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://conda.anaconda.org/vpython/win-64'
I tried again and again but it did not work.
My second try was:
pip install vpython
but I got 'ERROR: No matching distribution found for vpython.'
Do you have any advise how can I import visuals as vs?
Thanks,

If it's python version 3.8, try using pip3 install vpython

Related

I'm having trouble running the python-telegram-bot Library sample code

I'm trying to use the example codes from the repository's beginners guide and the ready-made examples:
wiki&
examples
I can't run them because of some classes that can't be imported. I'm using Visual Studio and when debugging, find the following error
from telegram.ext import (
Application,
CallbackContext,
CommandHandler,
ConversationHandler,
MessageHandler,
filters,
)
gives this error
cannot import name 'Application' from 'telegram.ext'
Was it my mistake? I uninstalled and installed using pip, the error keeps showing up
I think you haven't installed it correctly .
try installing it with setup.py in order to do that just follow these steps
1- git clone "repository link"
2- cd python-telegram-bot
3- py setup.py install or python setup.py install
Your code has no problem.
if you encountered and error while doing this please do comment.
You are installing the alpha version which has a lot of changes.
To fix this issue:
Uninstall PTB v20
Install latest PTB stable version (which is version 13) using: pip install python-telegram-bot
use this version of documentation for a tutorial on how to write your first bot.

trouble installing os_sys package recieving os_sys has invalid wheel error

I'm running this command to install os_sys package:
pip3 install os_sys
but receiving this error:
ERROR: os-sys has an invalid wheel, could not read
'os_sys-1.9.3.dist-info/WHEEL' file: KeyError("There is no item named
'os_sys-1.9.3.dist-info/WHEEL' in the archive")
I already installed Wheel.
Thank you for any help.
Just ran into same issue. Actually, this package is already included in Python.
So, just use
import os
import sys
in your py script and this should work.
If this is still not working for you, try to make sure that you have installed only one version of Python, I ran into the same issue, and any os method I tried to use was not working for me at all.
What I have done: I deinstalled all the other versions, and then I made only one clean installation, also removed the Path entries related to the deinstalled older versions. Then it finally worked!

3D point cloud in python

I am kind of new here :) Try to be concise,
I am trying to pip install packages required for point cloud processing but I get these errors:
ERROR: Could not find a version that satisfies the requirement pclpy (from versions: none)
ERROR: No matching distribution found for pclpy
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Although I updated the pip I got the warning as well. Thanks
Hello and welcome to Stack Overflow!
As you can see in the pclpy official site, currently it does not work with Linux. Assuming you're using Linux, that explains the error you encountered.
For point cloud processing library in Python, you might want to have a look at Open3D. To install it, you just have to type pip install open3d in your terminal.
To read point cloud data in and write it out, you can just use a few line of codes:
import open3d as o3d
pcd = o3d.io.read_point_cloud('./input.pcd')
o3d.io.write_point_cloud('output.ply', pcd)
It's very easy to use and contains very good tutorial. Hope it helps!

Using Stacks in Python

Hi I am new to using python and was learning how to use stacks in python. I found some web examples that use this command:
from pythonds.basic.stack import Stack
But when I tried using this command, I get this error message back:
ImportError: No module named pythonds.basic.stack
I tried google searching where to get this module installed from but can't seem to find it. Any help in identifying where I can get this from or any other way to use stack will be appreciated!
You'll need to install it with pip, like so
pip install pythonds
or you can download the tarball and install it yourself, which you can find on PyPi
This worked for me to fix that error:
sudo pip3 install pythonds

Error while creating a new project using Scrapy

I installed Scrapy on Fedora 20 and when I tried to create a new project it gives me the following error:
/usr/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-linux-x86_64.egg/twisted/internet/_sslverify.py:184: UserWarning: You do not have the service_identity module installed. Please install it from <https://pypi.python.org/pypi/service_identity>. Without the service_identity module and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimentary TLS client hostnameverification. Many valid certificate/hostname mappings may be rejected.
I tried searching for the module service_identity but in vain!
Could anyone help me in this regard.
Thanks in advance
Try pip install service_identity to resolve this issue.

Categories