package

Why from utils impost fs_data_dir doesn't work?

Why from utils impost fs_data_dir doesn't work? Question: I’m studying about the searchline analysis from BrainIAK. But the code from utils import fs_data_dir, results_path print(‘data dir = %s’ % (fs_data_dir)) I ran it on google colab but it doesn’t work. I’ve searched for the utils package in python but I didn’t find anything about fs_data_dir! …

Total answers: 1

ROS2: Troubleshooting 'colcon build' for python packages?

ROS2: Troubleshooting 'colcon build' for python packages? Question: I’m working in a ROS2 workspace ‘home_ws’ with 5 of my packages: home_core home_devices home_extras home_launch home_ui All packages are python, all built following the same example from the ROS2 doc. After ‘colcon_build’ I only see 3 of the 5 packages. Output of ros2 pkg list: … …

Total answers: 1

How to download packages in Pycharm using anaconda as it's interpreter?

How to download packages in Pycharm using anaconda as it's interpreter? Question: I have a problem. I am running python 3.10 and Anaconda 3.9 on the same machine. When I use Anaconda 3.9 as my interpreter in Pycharm, and download a package, it will install the package on python 3.10 If put in the terminal …

Total answers: 1

Python package not installing submodules

Python package not installing submodules Question: I have created a package with the following structure in the dev branch (not merging to main until I verify the package installs correctly): mypackage | |– __init__.py |– setup.py |– requirements.txt |– module.py |– subpackage_one | |– __init__.py |– module_ab.py |– class_aba |– class_abb |– module_ac.py |– function_aca …

Total answers: 1

ERROR HTTPError: 400 Bad Request when building PyPi package

ERROR HTTPError: 400 Bad Request when building PyPi package Question: I’m trying to build my PyPi package and after I ran this command python3 -m twine upload –verbose –repository testpypi dist/* it gave me this error: Response from https://test.pypi.org/legacy/: 400 ‘0+untagged.2.g592d0aa’ is an invalid value for Version. Error: Can’t use PEP 440 local versions. See …

Total answers: 1

Turn PyCharm package back to a directory in Project Tool Window

Turn PyCharm package back to a directory in Project Tool Window Question: I don’t know how it happened, but a normal PyCharm directory turned into a package that doesn’t contain __init__.py I have tried to import functions from that directory before, could this have caused the problem? (Now I don’t import anything from that directory, …

Total answers: 1

PyPI: Problems uploading a module

PyPI: Problems uploading a module Question: I am trying to upload a python module to PyPI using setuptools and twine. My module can be seen at https://pypi.org/project/mousecontroller/. If you try installing the module using pip install mousecontroller, you will encounter an error: Collecting mousecontroller Using cached mousecontroller-1.0.2.tar.gz (1.4 kB) Preparing metadata (setup.py) … done Requirement …

Total answers: 1

Running unittest with modules that must import other modules

Running unittest with modules that must import other modules Question: Our Python 3.10 unit tests are breaking when the modules being tested need to import other modules. When we use the packaging techniques recommended by other posts and articles, either the unit tests fail to import modules, or the direct calls to run the app …

Total answers: 3

LInk github repo with package on Pypi

LInk github repo with package on Pypi Question: I uploaded a python package on Pypi, but I’d also like to upload it to Github, so it can be opensource and anyone can contribute. Is is possible to link the github repo with the already uploaded package on Pypi, so whenever I push something to the …

Total answers: 2

Import Modules to Pyscript

Import Modules to Pyscript Question: When we are coding python code, we typically use packages and modules that we import. For example, when we are coding we may write: import numpy import requests from bs4 import BeautifulSoup When we are trying to integrate python with html with Pyscript (https://pyscript.net/), it just says that it doesn’t …

Total answers: 2