Error while importing panda, but I already installed - pandas

I am getting the following error while trying to execute a python code trough a php one using Symfony:
I've already tried executing in the spyder environment, in sublime and in windows command prompt, and it works, only when I run the php code it return the error.
in import pandas as pd File "D:\Anaconda\lib\site-packages\pandas\__init__.py", line 19, in "Missing required dependencies {0}".format(missing_dependencies)) ImportError: Missing required dependencies ['numpy']

Related

rqt_graph pyqt binding of qt_gui_cpp library

I am using ROS-melodic in ubuntu 18.04 LTS. I am getting this error:
Could not import "pyqt" bindings of qt_gui_cpp library - so C++ plugins will not be available:
Traceback (most recent call last):
File "/opt/ros/melodic/lib/python2.7/dist-packages/qt_gui_cpp/cpp_binding_helper.py", line 43, in <module>
from . import libqt_gui_cpp_sip
ImportError: dynamic module does not define module export function (PyInit_libqt_gui_cpp_sip)
however I have installed pyqt5 and pydot manually, rqt_graph shows up but with this warning. I want to know what can I do to get it right? Is this going to be problem in future? Now rqt_graph is loading but I don't know if this will mess up/create lacking in the graph?
Try uninstalling double packages if any using
pip3 uninstall PyQt5-sip PyQt5
Then try importing it in python3 to check if any other version is there.
If the import is successful then try running the command again
rosrun rqt_graph rqt_graph
if still some error exists install
pip3 install PyQt5==5.12

How to fix 'cannot import etree' error while executing rosrun "file

I wanted to run a python file in which I imported Lxml, but I got this error although I installed the Lxml package:
ImportError: cannot import name 'etree'
Is there a way to fix this please?

Unable to install Pandas, I get multiple errors

I get errors when I try to install pandas in Windows 10, several errors the last one is in red:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\User1\AppData\Local\Temp\pip-build-07bztlx0\pandas\
try with:
In python executable file-
import pip
pip.main(["install","pandas"])

Object Detection API error: "ImportError: cannot import name anchor_generator_pb2"

I'm trying to get Tensorflow's new Object Detection API working. I've followed the installation instructions, but when running the command
python object_detection/builders/model_builder_test.py
I get the following error
from object_detection.protos import anchor_generator_pb2
ImportError: cannot import name anchor_generator_pb2
I've looked inside object_detection.protos, and there doesn't seem to be anything named anchor_generator_pb2. Has anyone else managed to get this command to run, or solved this issue?
Missed a step in the installation instructions, where the following needs to be run from models/research:
protoc object_detection/protos/*.proto --python_out=.
You need to rerun the below command after that:
pip install .
This worked for me
Run it from your models/research
python setup.py
protoc -I=./ --python_out=./ ./object_detection/protos/*.proto
export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim

py2exe 1 missing modules, readline

I have problems in py2exe. I simply want to "convert" a .py file into a .exe file, which i can easiely run on my PC, but if i run py2exe a error message appears:
Here is my setup.py:
from distutils.core import setup
import py2exe, sys, os
setup(console=['filename.py'])
And the error message it the following:
1 missing Modules
? readline imported from cmd, code, pdb
Building 'dist\filename.exe'.
error: [Errno 2] No such file or directory: 'C:\\Users\\Name\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\py2exe\\run_w-py3.5-win32.exe'
I hope you guys can help me ;)
greetz
May you should install readline package first.
This package dones't work in Windows by default.
If you are in Windows,You should use pyreadline instead of readline
pip install pyreadline
It works to me.