Git Product home page Git Product logo

Comments (7)

bsrdjan avatar bsrdjan commented on July 17, 2024

I am testing on ubuntu and never had such issue. Just tested again with Python 3.5.2:

git clone https://github.com/SAP/PyRFC.git
python3 setup.py install --user
cd tests
python3
from pyrfc import *

Eventually a python(s) path/environment issue, in this direction: scikit-learn/scikit-learn#7542 ?

from pyrfc.

bsrdjan avatar bsrdjan commented on July 17, 2024

Is this issue still open?

from pyrfc.

elohmeier avatar elohmeier commented on July 17, 2024

I still have to test this on ubuntu, tried on Debian the last time. As I'm on vacation right now, I'll close the issue. I'll open a new one if the error persists. Thanks :)

from pyrfc.

warp3r avatar warp3r commented on July 17, 2024

Hi there,

I've been checking and conclussions are that PyRFC is not working for RHEL systems (Centos included)

[root@ip-172-31-2-170 tmp]# python
Python 2.7.5 (default, Aug  2 2016, 04:20:16) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyrfc import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/pyrfc-1.9.4-py2.7-linux-x86_64.egg/pyrfc/__init__.py", line 22, in <module>
    from pyrfc._pyrfc import get_nwrfclib_version, Connection, TypeDescription, FunctionDescription, Server
ImportError: /usr/lib/python2.7/site-packages/pyrfc-1.9.4-py2.7-linux-x86_64.egg/pyrfc/_pyrfc.so: undefined symbol: PyFPE_jbuf

Same configuration on a SuSE box:

ip-172-31-6-59:/usr/sap/nwrfcsdk # python
Python 2.7.9 (default, Dec 21 2014, 11:02:59) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyrfc import *
>>> exit()

To be transparent, we use this provisioning script (very simple):

#!/bin/bash
sudo zypper -n in python-setuptools
sudo cp /tmp/SAPCAR /usr/local/bin/SAPCAR
sudo chmod +x /usr/local/bin/SAPCAR
sudo mkdir -p /usr/sap
cd /
sudo tar zxvf /tmp/nwrfcsdk.tgz
sudo echo "/usr/sap/nwrfcsdk/lib" > /etc/ld.so.conf.d/nwrfcsdk.conf
sudo ldconfig 
cd /tmp
sudo easy_install pyrfc-1.9.4-py2.7-linux-x86_64.egg

from pyrfc.

warp3r avatar warp3r commented on July 17, 2024

Hi there,

I've been able to build an egg that works for centos and redhat 7.

from pyrfc.

bsrdjan avatar bsrdjan commented on July 17, 2024

Hi,

glad to hear it works on centos and redhat. I see 1.9.4 version is used and just to mention that 1.9.6 is also available, with few bugs fixed.

from pyrfc.

pawel1392 avatar pawel1392 commented on July 17, 2024

Hi warp3r. Could you please let me know how to build an egg to be working on Centos 7 ? I am facing the same issue :/

from pyrfc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.