Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3 issues. #1

Open
eprifti opened this issue Mar 15, 2017 · 4 comments
Open

python 3 issues. #1

eprifti opened this issue Mar 15, 2017 · 4 comments

Comments

@eprifti
Copy link

eprifti commented Mar 15, 2017

Hello,
First of all thanks for this great project. I was trying it out and I have the following configuration:

  • Python 3.6.0 |Anaconda 4.3.0 (x86_64)| (default, Dec 23 2016, 13:19:00)

After compilation and building, I can not run encode.py. The following error occurs:

python dna-fountain/encode.py --file_in info_to_code.tar.gz --size 32 -m 3 --gc 0.05 --rs 2 --delta 0.001 --c_dist 0.025 --out info_to_code.tar.gz.dna --stop 72000
Traceback (most recent call last):
  File "dna-fountain/encode.py", line 9, in <module>
    from fountain import DNAFountain
  File "fountain.pyx", line 5, in init fountain (fountain.c:3663)
    from droplet import Droplet
  File "droplet.pyx", line 5, in init droplet (droplet.c:2294)
    from utils import int_to_four, four_to_dna
  File "utils.pyx", line 5, in init utils (utils.c:10448)
    from string import maketrans   # Required to call maketrans function.
ImportError: cannot import name maketrans

It looks like maketrans and python 3 are not going along well together (http://stackoverflow.com/questions/27539884/maketrans-not-working-for-petl-with-python3-4/27540139)

Could you propose any workarounds?

Thanks
Edi

@erlichya
Copy link

Hi Edi,

Thanks for letting us know. We tested the code with Python 2. Can you simply switch to this version?

@merkys
Copy link

merkys commented Jul 16, 2019

Python 2 is reaching its end-of-life in 2020, so it's better to switch to Python 3.

@HrishiDhondge
Copy link

For the moment, the addition of a file for all requirements would be useful to create a virtual environment using conda or pip.

requirements.txt

@jdbrody
Copy link

jdbrody commented Jun 15, 2022

A couple of students at Franklin and Marshall College have ported the code to Python3. I've done some basic testing and it seems to work:
https://github.com/jdbrody/dna-fountain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants