Category : module

When I upload to PyPi, the extension folder wasn’t added, only the outer python files were. File Structure: Main Project Folder └──Actual Module Folder └──__init__.py └──file1.py └──extension └──__init__.py └──file2 └──file3 └──file4 └──.gitignore └──setup.py Contents of Actual Module Folder__init__.py from .file1 import * from extension import * Contents of Actual Module Folderextension__init__.py from file2 import * ..

Read more

Hi I wrote a ROS Node in python which imports pyaudio for processing audio. I am using virtulenv with all python modules installed. I can run my Node in Pycharm however when i use rosrun mic_pkg mic_app.py. I’m getting following error AttributeError: ‘module’ object has no attribute ‘PyAudio’ Here is my node to run. #!/usr/bin/env ..

Read more

hi so I’m trying to import geopandas into my script import pandas as pd import geopandas as gpd from shapely.geometry import Point #handling txt #remove ‘lat=’ and ‘long=’ then type change from object to float to make point. df = pd.read_csv(‘latlong.txt’, header=None, names = [‘lat’,’long’, ‘name’,’description’]) df[‘lat’] = df[‘lat’].str.replace(‘lat=’, ”) df[‘long’] = df[‘long’].str.replace(‘long=’, ”) df[‘lat’] ..

Read more

i work with: Atom as a text editor GitBash as a terminal i’ve been trying to work with the numpy module but, even though i installed it via conda command on my terminal, it still gives me the ModuleNotFoundError when i run my code on the terminal For example, here’s some code: https://i.stack.imgur.com/GL4JP.png and here ..

Read more

I want to use Matplotlib on my virtual environement in Python but the module seem to require admin access to work, I installed it with sudo and it’s on my pip list but when I use venv I get a ModuleNotFoundError, Venv Error When I launch outside of venv, it work well. I gave access ..

Read more

So I’m new to the isochrones environment (I’m doing an astrophysics project) and I was just trying out some simple code: from isochrones.mist import MISTIsochroneGrid grid = MISTIsochroneGrid() print(len(grid.df)) grid.df.head() It ran fine at first but then suddenly it shows this error! I’m using the same environment and the same console, Jupyter Notebook. I feel ..

Read more