package

Installation of midaspy packages

Installation of midaspy packages Question: How do I import packages not on pypi with pip? I am having trouble importing the package "midaspy" to my spider ide. Even though i used pip install and i can see the packages in the anaconda environment, it still cannot be imported in the ide console. I am new …

Total answers: 1

How to import class from a Python package directly

How to import class from a Python package directly Question: My current package looks something like this: package_repo/ package/ __init__.py module_one.py module_two.py tests/ setup.py Inside the module_one.py I have ClassOne,and inside the module_two.py I have ClassTwo. Now, if I want to import ClassOne into some other module, I write from package.module_one import ClassOne. Is it …

Total answers: 1

Can Anaconda tell you Conda-Forge url of an installed package?

Can Anaconda tell you Conda-Forge url of an installed package? Question: I’m trying to build a dependency tree for a series of python package installs, and I’d like to include the conda-forge url for each package. Is there a way to find the url of an installed package using the command line interface? Asked By: …

Total answers: 1

ModuleNotFoundError: No module named 'A given module in package' when running the code

ModuleNotFoundError: No module named 'A given module in package' when running the code Question: Here is the entire code: MyApp/ * mypkg/ * __init__.py * mod1.py * mod2.py * Demo.py I am trying to run this app from Demo.py mod1.py : class Person: def __init__(self,name,age,address): self.name = name self.age = age self.address = address def …

Total answers: 1

Python IDE autocomplete missing some methods from AppDaemon plugin class

Python IDE autocomplete missing some methods from AppDaemon plugin class Question: I’m trying to use autocomplete for the Hass class from the Python AppDaemon package. Autocomplete is showing some of the inherited methods from the superclass such as get_state(), but some methods are missing, such as log() and get_entity(). This behavior is the same in …

Total answers: 2

Problem importing nested package in Python

Problem importing nested package in Python Question: Based from a project with the following structure: . └── src/ ├── main.py ├── PackageA/ │ ├── __init__.py │ ├── logic.py │ ├── SubPackageA1/ │ │ ├── __init__.py │ │ └── util.py │ └── SubPackageA2/ │ ├── __init__.py │ └── otherUtil.py └── PackageB/ ├── __init__.py └── helpers.py Project …

Total answers: 1

Installed custom package from setup.py, but it doesn't show up in Conda List

Installed custom package from setup.py, but it doesn't show up in Conda List Question: I was trying to get rid of the ImportError: attempted relative import with no known parent package And followed the instructions here, which basically say to create a setup.py file with the following: from setuptools import setup, find_packages setup(name = ‘practice01’, …

Total answers: 1

Unable to install fastquant in new virtualenv conda

Unable to install fastquant in new virtualenv conda Question: In base environment I have already installed fastquant package but after creating and activating new conda environment I am not able to install the fastquant package. I already have pandas 1.5.2 but when I install fastquant it is trying to install pandas 1.1.5 as it is …

Total answers: 1

Python package naming convention

Python package naming convention Question: I want to create some python packages and deploy them in my company, not on PyPi. I stumbled over the problem that one package name already existed. So instead of mypackage from our repo I installed a PyPi package. The obvious solution is to change the name of the package. …

Total answers: 1

ImportError: cannot import name 'PdfReader' from 'PyPDF2'

ImportError: cannot import name 'PdfReader' from 'PyPDF2' Question: I installed the PyPDF2 package using pip and got the following message after the installation: !pip install PyPDF2 Collecting PyPDF2 Downloading PyPDF2-2.11.1-py3-none-any.whl (220 kB) ————————————– 220.4/220.4 kB 2.7 MB/s eta 0:00:00 Requirement already satisfied: typing-extensions>=3.10.0.0 in c:usersdellappdatalocalprogramspythonpython37libsite-packages (from PyPDF2) (3.10.0.2) Installing collected packages: PyPDF2 Successfully installed PyPDF2-2.11.1 …

Total answers: 1