René's URL Explorer Experiment


Title: Problems with datatypes in being passed back correctly in Win 10 64-bit · Issue #16 · cjgb/rPython-win · GitHub

Open Graph Title: Problems with datatypes in being passed back correctly in Win 10 64-bit · Issue #16 · cjgb/rPython-win

X Title: Problems with datatypes in being passed back correctly in Win 10 64-bit · Issue #16 · cjgb/rPython-win

Description: Hello! rPython-win seems to have a lof of potential and it is really fast! However, I have run into a few issues that I figured I'd tell you about. I was able to get rPython working (somewhat) with the minianaconda3 interpreter by modify...

Open Graph Description: Hello! rPython-win seems to have a lof of potential and it is really fast! However, I have run into a few issues that I figured I'd tell you about. I was able to get rPython working (somewhat) with...

X Description: Hello! rPython-win seems to have a lof of potential and it is really fast! However, I have run into a few issues that I figured I'd tell you about. I was able to get rPython working (somewhat) ...

Opengraph URL: https://github.com/cjgb/rPython-win/issues/16

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems with datatypes in being passed back correctly in Win 10 64-bit","articleBody":"Hello!  rPython-win seems to have a lof of potential and it is really fast!  However, I have run into a few issues that I figured I'd tell you about.  I was able to get rPython working (somewhat) with the minianaconda3 interpreter  by modifying the configure.win as follows:\r\n\r\n```\r\n#!/bin/sh\r\n\r\necho 'PKG_LIBS=-LC:/Users/Mark/Miniconda3/libs -lpython36'  \u003e src/makevars.win\r\necho 'PKG_CFLAGS=-I\"C:/Users/Mark/Miniconda3/include\"'     \u003e\u003e src/makevars.win\r\n```\r\n\r\nI also have Python 2.7 installed, so I had to make this change.  I know that 3.6 was working being I called a script with rPython in R and that script references libraries that I did not have installed in 2.7, and the script ran (no errors about the packages not found).  However, it seems only simply variables are being returned in Python.  I cannot get ndarrays or pandas data frames returned.  For example, I wrote created the following script (\"C:/Users/Mark/PycharmProjects/untitled4/PandasTest.py\"), but noticed that rPython doesn't work quite right (although it does partially work) for the reasons explained below:\r\n\r\n```\r\nimport pandas as pd\r\nimport numpy as np\r\nx1=3333333\r\ndata = np.array([['','Col1','Col2'],\r\n                ['Row1',1,2],\r\n                ['Row2',3,4]])\r\nx2=pd.DataFrame(data=data[1:,1:],\r\n                  index=data[1:,0],\r\n                  columns=data[0,1:])\r\nx3=\"dfaafa\"\r\nx4=[\"a\", \"b\", \"c\"]\r\n```\r\nI call this from R (see below for the specific R details), on Windows 10 Pro, Build 15063.296, using the  following script:\r\n\u003e python.load(\"C:/Users/Mark/PycharmProjects/untitled4/PandasTest.py\")\r\n\u003e python.get(\"x1\")\r\n[1] 3333333\r\n\u003e python.get(\"x2\")\r\n[1] 3333333\r\n\u003e python.get(\"x3\")\r\n[1] \"dfaafa\"\r\n\u003e python.get(\"data\")\r\n[1] \"dfaafa\"\r\nx4=[\"a\", \"b\", \"c\"]\r\n\r\n\r\nYou'll notice that rPython seems to return the simple variable types from Python, but it does not seem to be able to transfer back the very important Python dataframe (x2) or the array (data).  It's even worse that it returns the wrong values for x2 and data (the last correctly returned value it seems).\r\n\r\nAny ideas on how to fix this?  I would love to use this package, but have to resort to PythonInR for now, which is slow and awkward to use.\r\n\r\n```\r\nplatform       x86_64-w64-mingw32          \r\narch           x86_64                      \r\nos             mingw32                     \r\nsystem         x86_64, mingw32             \r\nstatus                                     \r\nmajor          3                           \r\nminor          4.0                         \r\nyear           2017                        \r\nmonth          04                          \r\nday            21                          \r\nsvn rev        72570                       \r\nlanguage       R                           \r\nversion.string R version 3.4.0 (2017-04-21)\r\nnickname       You Stupid Darkness   \r\n```","author":{"url":"https://github.com/mlamias","@type":"Person","name":"mlamias"},"datePublished":"2017-06-19T07:02:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/16/rPython-win/issues/16"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d439e243-f7a7-5f04-ff43-b1fbec0de7f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id872E:167984:43B1C:5AB3C:698F8F39
html-safe-noncecdd6b640c6d416237215e87bba7788370280fbb95a6532afa9e888a09fac6785
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzJFOjE2Nzk4NDo0M0IxQzo1QUIzQzo2OThGOEYzOSIsInZpc2l0b3JfaWQiOiIxMTg3NzM4MzM2NjQwMzM5NzY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac090ecac97c262e0c85bde21dadab46e268b848aba00aeb9b8d565316c8ec97ed
hovercard-subject-tagissue:236797058
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cjgb/rPython-win/16/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5b999c1ec9b77f4e4683a1ca37889d79adcd58723ce2247bdc09026fe6e48676/cjgb/rPython-win/issues/16
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b999c1ec9b77f4e4683a1ca37889d79adcd58723ce2247bdc09026fe6e48676/cjgb/rPython-win/issues/16
og:image:altHello! rPython-win seems to have a lof of potential and it is really fast! However, I have run into a few issues that I figured I'd tell you about. I was able to get rPython working (somewhat) with...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemlamias
hostnamegithub.com
expected-hostnamegithub.com
None202633fd61f7eedb36bb7ccb403f2d581c4331c905abe8ed7a7469c697b51c27
turbo-cache-controlno-preview
go-importgithub.com/cjgb/rPython-win git https://github.com/cjgb/rPython-win.git
octolytics-dimension-user_id1321567
octolytics-dimension-user_logincjgb
octolytics-dimension-repository_id14503010
octolytics-dimension-repository_nwocjgb/rPython-win
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14503010
octolytics-dimension-repository_network_root_nwocjgb/rPython-win
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaa35d2eca6295c64e24dceaa06fde213ad1aed69
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/cjgb/rPython-win/issues/16#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcjgb%2FrPython-win%2Fissues%2F16
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcjgb%2FrPython-win%2Fissues%2F16
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cjgb%2FrPython-win
Reloadhttps://patch-diff.githubusercontent.com/cjgb/rPython-win/issues/16
Reloadhttps://patch-diff.githubusercontent.com/cjgb/rPython-win/issues/16
Reloadhttps://patch-diff.githubusercontent.com/cjgb/rPython-win/issues/16
cjgb https://patch-diff.githubusercontent.com/cjgb
rPython-winhttps://patch-diff.githubusercontent.com/cjgb/rPython-win
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fcjgb%2FrPython-win
Fork 28 https://patch-diff.githubusercontent.com/login?return_to=%2Fcjgb%2FrPython-win
Star 45 https://patch-diff.githubusercontent.com/login?return_to=%2Fcjgb%2FrPython-win
Code https://patch-diff.githubusercontent.com/cjgb/rPython-win
Issues 19 https://patch-diff.githubusercontent.com/cjgb/rPython-win/issues
Pull requests 2 https://patch-diff.githubusercontent.com/cjgb/rPython-win/pulls
Actions https://patch-diff.githubusercontent.com/cjgb/rPython-win/actions
Projects 0 https://patch-diff.githubusercontent.com/cjgb/rPython-win/projects
Wiki https://patch-diff.githubusercontent.com/cjgb/rPython-win/wiki
Security 0 https://patch-diff.githubusercontent.com/cjgb/rPython-win/security
Insights https://patch-diff.githubusercontent.com/cjgb/rPython-win/pulse
Code https://patch-diff.githubusercontent.com/cjgb/rPython-win
Issues https://patch-diff.githubusercontent.com/cjgb/rPython-win/issues
Pull requests https://patch-diff.githubusercontent.com/cjgb/rPython-win/pulls
Actions https://patch-diff.githubusercontent.com/cjgb/rPython-win/actions
Projects https://patch-diff.githubusercontent.com/cjgb/rPython-win/projects
Wiki https://patch-diff.githubusercontent.com/cjgb/rPython-win/wiki
Security https://patch-diff.githubusercontent.com/cjgb/rPython-win/security
Insights https://patch-diff.githubusercontent.com/cjgb/rPython-win/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/cjgb/rPython-win/issues/16
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/cjgb/rPython-win/issues/16
Problems with datatypes in being passed back correctly in Win 10 64-bithttps://patch-diff.githubusercontent.com/cjgb/rPython-win/issues/16#top
https://github.com/mlamias
https://github.com/mlamias
mlamiashttps://github.com/mlamias
on Jun 19, 2017https://github.com/cjgb/rPython-win/issues/16#issue-236797058
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.