Skip to content

Commit

Permalink
Fix the mp socket addresses conflicts in python>=3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnmy committed Jan 10, 2024
1 parent d1326ec commit f6ad165
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ tmux*.log
!.gitignore
build
dist
*.egg-info
*.egg-info
**/*.bak
2 changes: 1 addition & 1 deletion ribodetector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
Accurate and rapid RiboRNA sequences Detector based on deep learning.
"""

__version__ = "0.3.0"
__version__ = "0.3.1"
__author__ = 'ZL Deng'
3 changes: 3 additions & 0 deletions ribodetector/detect_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import numpy as np
from tqdm import tqdm
import multiprocessing as mp
import multiprocessing.util
from collections import defaultdict
from ribodetector import __version__

Expand All @@ -28,6 +29,8 @@
# Get the directory of the program
cd = os.path.dirname(os.path.abspath(__file__))

## makes the socket addresses extremely random again to esure no address conflicts
multiprocessing.util.abstract_sockets_supported = False

class Predictor:
"""
Expand Down
1 change: 0 additions & 1 deletion ribodetector/utils/__version__.py

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

setup(
name="ribodetector",
version="0.3.0",
python_requires=">=3.8, <=3.10",
version="0.3.1",
python_requires=">=3.8, <=3.12",
author="Z-L Deng",
author_email="[email protected]",
description="Accurate and rapid RiboRNA sequences Detector based on deep learning.",
Expand Down

0 comments on commit f6ad165

Please sign in to comment.