Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • M m2crypto
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 82
    • Issues 82
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • m2crypto
  • m2crypto
  • Issues
  • #114
Closed
Open
Issue created Apr 01, 2016 by Thierry Parmentelat@parmentelatDeveloper

M2Crypto and python3

Hi there

This is a question more than an issue, sorry if this is not the right channel, please redirect me if it's not.

We run an application that depends on m2crypto, and we're moving to python3. I am quite surprised by the number of issues that I am running into when trying to install M2Crypto for python3.

Starting with fedora23 that is our first target, what I saw when dealing with this in a naive way is that

  • as far as the mainstream fedora repo is concerned, there's only one rpm available and it is for python2
  • so in an attempt to avoid building from sources I attempted to pip3 install; long story short, the outcome after installing quite a few extra build dependencies was this: ImportError: /usr/lib64/python3.4/site-packages/M2Crypto/__m2crypto.cpython-34m.so: undefined symbol: PyFile_Check; which after some googling lead me to understand that swig was the culprit here; and at first sight it sounded like a dead end as far as python3.
  • Then I checked the pypi page about M2Crypto which indeed only mentions python2.

So I have to admit that I am a little confused here, and would greatly appreciate to know whether python3 is actually supported, and if so what is the recommended version/installation method.

Many thanks in advance

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking