python

  1. L

    Solved lldb python scripting

    Hi there, I'm currently experimenting with lldb and wanted to try out its python-API. So, I followed the tutorial on the lldb website. However, when trying to import the script into the python interpreter, I'm getting an error message: >>> import tree_utils [string "buffer"]:1: syntax error...
  2. E

    python libraries conflict

    I'm trying to update mail/mailman3 port to 3.3.5 It requires updating a few ports it depends on, including mail/py-aiosmtpd and www/py-falcon. After updating py-falcon to 3.0.1 and running make install I get: pkg-static: py38-falcon-3.0.1 conflicts with py38-aiosmtpd-1.2_1 (installs files...
  3. Nick-6

    Solved How to properly install and use python modules in FreeBSD?

    Hello, I'm a newbie in both FreeBSD and programming. I'm now taking CS50 and trying to write code in VSCode. I would like to know how to properly install python modules. pip install <python-module> or doas pkg install py38-<python-module> And in case if there is no pkg version, what should I...
  4. M

    Another reason not to use python?

    This could possibly go in the scripting topic. According to these folks (jfrog.com) and to quote: https://jfrog.com/blog/malicious-pypi-packages-stealing-credit-cards-injecting-code/ This is an on-going issue with repositories (and has been since Perl years ago) and languages that are based...
  5. M

    Ansible error py37-supervisor have been found in the repositories

    My ansible role looks like this: --- - name: Download supervisord pkgng: name: - py37-supervisor state: present After executing this role, it returns fatal: [1.2.3.4]: FAILED! => {"changed": false, "msg": "failed to install py37-supervisor: ", "stderr": "pkg: No packages...
  6. Alain De Vos

    Python37 / Python38 hell.

    I ended up in a python37/python38 hell. Dependencies on one removes the other and vice-verse. My poudriere blacklist-file. net/samba412 lang/python2 lang/python27 lang/python37 www/qt5-webengine My make.conf DEFAULT_VERSIONS+=python=3.8 DEFAULT_VERSIONS+=python3=3.8 Should i revert to python...
  7. nerozero

    Solved Upgrading python3.7 -> 3.8 case no python on the system at all

    hello, According to /usr/ports/UPDATING the method to upgrade python described as: portmaster -o lang/python38 python37 REINSTALL="$(pkg info -o "*py37*" | awk '{printf "%s ", $2}')" pkg delete -f "*py37*" portmaster $REINSTALL REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py38 |...
  8. C

    Solved Correct way of handling python flavors in port dependencies?

    I'm struggling to understand what the "correct" way for handling python flavors is. I'm attempting to port some software that depends on py-qt5; on amd64, there's a binary packages for py37-qt5 only at the moment. So, I figured I'll make my port USE=python:3.7. However, I hit a snag when I...
  9. F

    Solved Using rc.d script with /usr/sbin/daemon to start and stop a script

    I am trying to write an rc.d script to start and stop a (Python) script. Starting the command seems to be working, but stopping it is not yet the way I want. My goal is to ensure the script receives a SIGTERM signal when it should shut down; that seems not to be the case; I think only the...
  10. E

    Solved Issues with py37 packages from the 2020Q3 ports tree on 12.1

    Recently updated to 2020Q3. I seem to be having issues with Python ports as I upgrade. # portmaster -D -G -g --no-confirm comms/py-pyserial (Snip) ===> Creating unique files: Move MAN files needing SUFFIX ===> Creating unique files: Move files needing SUFFIX Move: bin/miniterm.py -->...
  11. scotia

    Updating Perl fails because of Python sphinx

    I'm upgrading Perl as advised in UPDATING using the following: portmaster -bdgyf `pkg shlib -qR libperl.so.5.28` which re-builds net-snmp which re-builds mysql which re-builds cmake which requires python which requires py37-sphinx I have python2.7 installed already (and therefore sphinx)...
  12. J

    Service runs with su, not with daemon

    Greetings, Hopefully I am posting in the right place, if not please let me know! The goal is to run a python framework (odoo) as a service via daemon inside a jail. The topology is as follows: [Internet] --> [Host] -- (pf)--> [Jail with HAProxy] --> [Jail with Odoo] For reference, I am using...
  13. akkornel

    Solved Python-based CLI command, how to avoid conflicts in /usr/local/bin?

    Hello! I would like some advice on how to port a command-line program that is written in Python. I have a program that runs on the command-line, and is written entirely in Python. It can be built against Python 2.7 or 3.4+ with no problems. It is distributed via PyPi, so I have started...
  14. H

    Solved Trying to port python-vlc : trouble during the build phase

    Hello everyone, I am trying to port python-vlc to FreeBSD (in order to port castero, a nice TUI podcast client). Here is my Makefile. # $FreeBSD$ PORTNAME= vlc PORTVERSION= 3.0.6108 CATEGORIES= python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}...
  15. F

    matplotlib in python 2.7 virtualenv on FreeBSD 11

    Hi Forum I am trying to install matplotlib in a Python 2.7.15 virtualenv (created using virtualenvwrapper) on FreeBSD 11-RELEASE system. It seems that I am running in a somewhat known problem with the installation of numpy (cf. the edit in post #3 of "Matplotlib python3 anyone?" [1]). After a...
  16. F

    Other Writing an rc script for gunicorn & django

    Hello all, I'm looking to deploy a Django application onto a FreeBSD 11.1 server, I've read a number of articles about using www/py36-gunicorn to provide the communications between www/nginx and Django, and brief trials appear successful. I'm now looking to make a service that I can service...
  17. T

    Python rc.d with daemon(8), python and virtualenv

    Hi, I'd like to create an rc.d script that uses daemon(8) to manage a python(3) script with dependencies from virtualenv (daemonization, logging and be automatically restarted on exit). I am not sure what's the right way to approach this. My initial version used the script as command...
  18. Drahos Madar

    getting IP and MAC of all peripherals

    Hey guys I'm new @ BSD and this forum - so sorry if my question is duplicated or somehow not in line with rules of this web (as far as I have investigated none of those apply) I was asked to write a program (python preff) which will return IP and MAC of all peripherals connected to server...
  19. A

    Samba error : Undefined symbol "yp_match"

    Hello to all I have an error with running samba-tool after installation. My os is FreeBSD 10.1. I use all method to installing the samba ( installing by pkg, making port and download and compile the source code) but in the all of them some errors was accrued. Could somebody help me to resolve...
  20. Daniel Hilst

    Solved python SysLogHandler no working?

    Hi, I'm trying to use syslog handler at one of my python scripts. Above there is a script that should print hello world to syslog, but it doesn't. The same code on Linux works. What I'm missing? # mylog.py from platform import system import logging from logging.handlers import SysLogHandler...
Back
Top